<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/redtaxi/">
    <title>redtaxi @ ウィキ</title>
    <link>http://w.atwiki.jp/redtaxi/</link>
    <atom:link href="https://w.atwiki.jp/redtaxi/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>redtaxi @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2010-11-10T00:27:47+09:00</dc:date>
    <utime>1289316467</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/18.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/17.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/redtaxi/pages/13.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/23.html">
    <title>移転に伴うデータベースの扱い</title>
    <link>https://w.atwiki.jp/redtaxi/pages/23.html</link>
    <description>
      [[wordpress]]においてドメインの移動（ローカル-&gt;サーバのアップも）などの移転にともうなうデータベースのエクスポートとインポートには以下の注意点あり。

まず、移転に必要なものは
-wordpressで使用しているカスタマイズしたテンプレート群(index.phpを初めとする）。
-&quot;wp-content/uploads/&quot;にアップした（デフォルトでは）メディア
-導入したプラグイン
以上が、DB(MySQL)以外にバックアップが必要なもの。

ここからが本題。DBのバックアップ。手順は
１、phpMyAdminでエクスポート。オプションは皆バラバラに推奨してるwが、
&gt;DROP TABLE / VIEW / PROCEDURE / FUNCTIONを追加
&gt;IF NOT EXISTSを追加
&gt;AUTO_INCREMENT 値を追加する
&gt;テーブル名やフィールド名を逆クォートで囲む

&gt;完全な INSERT 文を作成する
&gt;長い INSERT 文を作成する
&gt;BLOBに16進数表記を利用する
って感じでしょうか。
※&quot;wp_options&quot;,&quot;wp_users&quot;, &quot;wp_usermeta&quot;あたりは、エクスポートしないほうが良いらしいが、、、&quot;wp_options&quot;は管理画面の設定値で、&quot;wp_users&quot;と&quot;wp_usermeta&quot;はユーザー管理に関することなので、共に移転元と同じ状況（プラグインやアカウントやパス）を再現できればインポートしても問題ないかも。

２、次は移転先でwordpressをインストールした後にphpMyAdminでインポートする。
※sqlファイルをテキストエディタで開き、最初のほうにあるデータベース名を移転先のデータベース名に変更。

３、メディアへのパスなど、絶対パスが含まれているデータベースなどをSQLで置換する。
※テーブル接頭辞を&quot;wp_&quot;から変更している場合は以下のコマンドを適宜置き換え。
&gt;update wp_posts set post_content=replace(post_content,&#039;古いURL&#039;,&#039;新しいURL&#039;)
&gt;update wp_posts set guid=replace(guid,&#039;古いURL&#039;,&#039;新しいURL&#039;)
&gt;update    </description>
    <dc:date>2010-11-10T00:27:47+09:00</dc:date>
    <utime>1289316467</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/22.html">
    <title>表示設定</title>
    <link>https://w.atwiki.jp/redtaxi/pages/22.html</link>
    <description>
      表示設定で「最新の投稿」を選択した場合と、「固定ページ」を選択した場合とではテンプレート階層の適用のされ方が若干違ってくる。

デフォルトの「最新の投稿」の場合は、サイトのトップページが投稿（つまりブログの記事の最新のもの）の表示になり、このとき使用されるテンプレートは&quot;index.php&quot;。

「固定ページ」で、フロントページで選んだ静的ページ（管理画面ページで作成した）は、&quot;front-page.php&quot;で表示され、ブログ投稿記事で選んだ静的ページは&quot;index.php&quot;で表示される。
つまり、「固定ページ」を選択した際はTOPページがブログの顔である記事以外であるため、各静的ページを割り当てることとなる。

&amp;bold(){[[参考&gt;http://wpdocs.sourceforge.jp/Template_Hierarchy]]}    </description>
    <dc:date>2010-11-08T23:35:39+09:00</dc:date>
    <utime>1289226939</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/21.html">
    <title>子テーマのルートパス</title>
    <link>https://w.atwiki.jp/redtaxi/pages/21.html</link>
    <description>
      子テーマを使用しているときに、&lt;head&gt;内などで子テーマで変更した[[javascript]]などを読み込ませたい時に、子テーマのルートパスが知りたくなる。

以下でOk
&gt;get_bloginfo(&#039;stylesheet_directory&#039;);

[[参考&gt;http://me.beginsprite.com/archives/608]]    </description>
    <dc:date>2010-11-06T12:17:28+09:00</dc:date>
    <utime>1289013448</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/20.html">
    <title>子テーマのインクルード</title>
    <link>https://w.atwiki.jp/redtaxi/pages/20.html</link>
    <description>
      子テーマで同名のファイル名でオーバーライドされるためには、
&quot;get_template_part&quot;で親が実装されている必要がありそう（確認してないw）。

[[ここらあたりが参考になる&gt;http://me.beginsprite.com/archives/661]]    </description>
    <dc:date>2010-11-06T12:10:26+09:00</dc:date>
    <utime>1289013026</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/19.html">
    <title>子テーマとカスタムポスト</title>
    <link>https://w.atwiki.jp/redtaxi/pages/19.html</link>
    <description>
      ver3.0になって、より実用的になったカスタムポストとOOP的な子テーマの扱いのさわり。
[[参考&gt;http://web.mt-systems.jp/archives/680]]    </description>
    <dc:date>2010-11-03T20:00:29+09:00</dc:date>
    <utime>1288782029</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/18.html">
    <title>portfoliumのバグ</title>
    <link>https://w.atwiki.jp/redtaxi/pages/18.html</link>
    <description>
      wordpressのフリーテーマ「&amp;bold(){[[portfolium&gt;http://wpshower.com/free-wordpress-themes/portfolium-free-wordpress-theme/]]}」ですが、
ver1.1(2011/11/3)では、多少バグがあります。

問題の箇所は、blogのソーシャルメディアへのポスト機能&quot;Share this post&quot;をクリックすると
出てくるFacebookやTwitterへのメニューがでてきません。※demoページは正常動作しています。

原因は、jQueryのcycleプラグインを使用（portfolioページで写真をF.I, F.Oしているところで使用）を設定しているscript.jsファイルです。

正常動作しているdemoサイトではなぜか、このcycle部分が外部ファイル（script.js）では無く&lt;head&gt;に読み込まれていて尚かつ記述が若干ちがいます。
以下、解決方法。

script.js内のcycleに関する記述箇所を一番最後に。
&amp;bold(){元の記述}
 (function($) {
    $(function() {
 
        // Dropdown Menu
 
        var timeout    = 100;
        var closetimer = 0;
        var ddmenuitem = 0;
 
        function jsddm_open() {
            jsddm_canceltimer();
            jsddm_close();
            ddmenuitem = $(this).find(&#039;ul&#039;).css(&#039;visibility&#039;, &#039;visible&#039;).parent().addClass(&#039;jsddm_hover&#039;).end();
        }
        function jsddm_close() {
            if(ddmenuitem) ddmenuitem.css(&#039;visibility&#039;, &#039;hidden&#039;).parent().removeClass(    </description>
    <dc:date>2010-11-03T13:22:25+09:00</dc:date>
    <utime>1288758145</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/17.html">
    <title>aタグのhrefにjavascript:void(0)</title>
    <link>https://w.atwiki.jp/redtaxi/pages/17.html</link>
    <description>
      こういうコード
&gt;a href=&quot;[[javascript]]:void(0);&quot;
は、リンク無効にする為だそーな。

[[参考サイト&gt;http://jamz.jp/tech/2008/02/javascript_void_0_and_return_false.html]]    </description>
    <dc:date>2010-11-03T11:23:44+09:00</dc:date>
    <utime>1288751024</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/16.html">
    <title>javascript</title>
    <link>https://w.atwiki.jp/redtaxi/pages/16.html</link>
    <description>
      -[[aタグのhrefにjavascript:void(0)]]    </description>
    <dc:date>2010-11-03T11:22:06+09:00</dc:date>
    <utime>1288750926</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/14.html">
    <title>jQueryの使用</title>
    <link>https://w.atwiki.jp/redtaxi/pages/14.html</link>
    <description>
      Wordpress3.0.1(2010.11.2時点）では、デフォルトで組み込み済み。&lt;head&gt;&lt;/head&gt;間に
&gt;&lt;?php wp_head(); ?&gt;
がある場合は、ブラウザへjQueryへの
&gt;&lt;script src=&quot;http://xxx.co.jp/xxx/wp-includes/js/jqueryjquery.js?ver=1.4.2&quot; type=&quot;text/[[javascript]]&quot;&gt;&lt;/script&gt;
読み込みが自動的に吐き出されます。

但し、[[wordpress]]は他のライブラリ（例えばprototype.js）とのコンフリクトを避ける為に、&quot;$&quot;でのセレクターは使用できない。かわりに&quot;jQuery&quot;を使用。

以下、sample
&amp;bold(){通常のjQuery表記}
&gt;$(function(){
&gt;   $(&#039;.roundedbox&#039;).corner();
&gt;});

&amp;bold(){wordpress内での表記}
&gt;jQuery(function(){
&gt;    jQuery(&#039;.roundedbox&#039;).corner();
&gt;});    </description>
    <dc:date>2010-11-02T18:03:33+09:00</dc:date>
    <utime>1288688613</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/redtaxi/pages/13.html">
    <title>wordpress</title>
    <link>https://w.atwiki.jp/redtaxi/pages/13.html</link>
    <description>
      -[[jQueryの使用]]
-[[portfoliumのバグ]]
-[[子テーマとカスタムポスト]]
-[[子テーマのインクルード]]
-[[子テーマのルートパス]]
-[[表示設定]]
-[[移転に伴うデータベースの扱い]]    </description>
    <dc:date>2010-11-09T23:58:06+09:00</dc:date>
    <utime>1289314686</utime>
  </item>
  </rdf:RDF>
