<?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/13.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/2.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 wp_options set option_value=replace(option_value,&#039;古いURL&#039;,&#039;新しいURL&#039;)

※カスタムフィールドを使用している場合は、
&gt;update wp_postmeta set meta_value=replace(meta_value,&#039;古いURL&#039;,&#039;新しいURL&#039;)
も変更が必要。

※データベースのテーブル接頭辞をデフォルト&quot;wp_&quot;より変更しいる場合は、
&gt;update wp_options set option_name=replace(option_name,&#039;古い接頭辞&#039;,&#039;新しい接頭辞&#039;)
&gt;update wp_usermeta set meta_key=replace(meta_key,&#039;古い接頭辞&#039;,&#039;新しい接頭辞&#039;)    </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/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>
    <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(&#039;jsddm_hover&#039;);
        }
        function jsddm_timer() {
            closetimer = window.setTimeout(jsddm_close, timeout);
        }
        function jsddm_canceltimer() {
            if(closetimer) {
                window.clearTimeout(closetimer);
                closetimer = null;
            }
        }
 
        $(&#039;.jsddm &gt; li&#039;).bind(&#039;mouseover&#039;, jsddm_open);
        $(&#039;.jsddm &gt; li&#039;).bind(&#039;mouseout&#039;,  jsddm_timer);
        document.onclick = jsddm_close;
 
        $(&#039;#show&#039;).after(&#039;&lt;div id=&quot;show_nav&quot;&gt;&#039;).cycle({
            fx:     &#039;fade&#039;,
            speed:  500,
            next: &#039;#show&#039;,
            timeout: 0,
            pager:  &#039;#show_nav&#039;
        });
         
        $(&#039;.thumb img&#039;).after(&#039;&lt;span&gt;&lt;/span&gt;&#039;);
        $(&#039;.thumb span&#039;).css(&#039;opacity&#039;,&#039;0&#039;);
        $(&#039;.post_home a:first-child&#039;).hover(function(){
            $(this).find(&#039;span&#039;).stop().animate({opacity: 0.45}, 200);
            $(this).nextAll().find(&#039;a&#039;).css(&#039;color&#039;, &#039;#fff18f&#039;);
        }, function(){
            $(this).find(&#039;span&#039;).stop().animate({opacity: 0}, 200);
            $(this).nextAll().find(&#039;a&#039;).removeAttr(&#039;style&#039;);
        }); 
        
        $(&#039;.thumb img, .post_content img&#039;).lazyload({ 
            effect : &quot;fadeIn&quot;
        });
 
        $(&#039;.l_col .post_text p:last&#039;).css(&#039;margin-bottom&#039;,&#039;0&#039;);
 
        var focus = $(&#039;.focus&#039;);
        focus.focusin(function(){
            $(this).css({
                &#039;color&#039;: &#039;#fff18f&#039;,
                &#039;border-bottom&#039;: &#039;1px solid #fff18f&#039;
            });
        });
        focus.focusout(function(){
            $(this).removeAttr(&#039;style&#039;);
        });
 
        $(&#039;.sharethis&#039;).click(function(){
            $(this).next(&#039;.sharelist&#039;).slideToggle(&#039;fast&#039;);
        });
 
    });
 })(jQuery);


&amp;bold(){修正後の記述}
 jQuery.noConflict();
 (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(&#039;jsddm_hover&#039;);
        }
        function jsddm_timer() {
            closetimer = window.setTimeout(jsddm_close, timeout);
        }
        function jsddm_canceltimer() {
            if(closetimer) {
                window.clearTimeout(closetimer);
                closetimer = null;
            }
        }
 
        $(&#039;.jsddm &gt; li&#039;).bind(&#039;mouseover&#039;, jsddm_open);
        $(&#039;.jsddm &gt; li&#039;).bind(&#039;mouseout&#039;,  jsddm_timer);
        document.onclick = jsddm_close;
 
 		
        
        $(&#039;.thumb img&#039;).after(&#039;&lt;span&gt;&lt;/span&gt;&#039;);
        $(&#039;.thumb span&#039;).css(&#039;opacity&#039;,&#039;0&#039;);
        $(&#039;.post_home a:first-child&#039;).hover(function(){
            $(this).find(&#039;span&#039;).stop().animate({opacity: 0.45}, 200);
            $(this).nextAll().find(&#039;a&#039;).css(&#039;color&#039;, &#039;#fff18f&#039;);
        }, function(){
            $(this).find(&#039;span&#039;).stop().animate({opacity: 0}, 200);
            $(this).nextAll().find(&#039;a&#039;).removeAttr(&#039;style&#039;);
        }); 
        
        $(&#039;.thumb img, .post_content img&#039;).lazyload({ 
            effect : &quot;fadeIn&quot;
        });
 
        $(&#039;.l_col .post_text p:last&#039;).css(&#039;margin-bottom&#039;,&#039;0&#039;);
 
        var focus = $(&#039;.focus&#039;);
        focus.focusin(function(){
            $(this).css({
                &#039;color&#039;: &#039;#fff18f&#039;,
                &#039;border-bottom&#039;: &#039;1px solid #fff18f&#039;
            });
        });
        focus.focusout(function(){
            $(this).removeAttr(&#039;style&#039;);
        });
 
        $(&#039;.sharethis&#039;).click(function(){
            $(this).next(&#039;.sharelist&#039;).slideToggle(&#039;fast&#039;);
        });
 		
        $(&#039;#show&#039;).after(&#039;&lt;div id=&quot;show_nav&quot;&gt;&#039;).cycle({
            fx:     &#039;fade&#039;,
            speed:  500,
            next: &#039;#show&#039;,
            timeout: 0,
            pager:  &#039;#show_nav&#039;
        });
 
    });
 })(jQuery);    </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/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/redtaxi/pages/2.html</link>
    <description>
      **メニュー
-[[トップページ]]
-[[プラグイン紹介&gt;プラグイン]]
-[[まとめサイト作成支援ツール]]
-[[メニュー]]
-[[メニュー2]]
-[[wordpress]]
-[[javascript]]

----

**リンク
-[[@wiki&gt;&gt;http://atwiki.jp]]
-[[@wikiご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]

**他のサービス
-[[無料ホームページ作成&gt;&gt;http://atpages.jp]]
-[[無料ブログ作成&gt;&gt;http://atword.jp]]
-[[2ch型掲示板レンタル&gt;&gt;http://atchs.jp]]
-[[無料掲示板レンタル&gt;&gt;http://atbbs.jp]]
-[[お絵かきレンタル&gt;&gt;http://atpaint.jp/]]
-[[無料ソーシャルプロフ&gt;&gt;http://sns.atfb.jp/]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)

&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2010-11-03T11:19:17+09:00</dc:date>
    <utime>1288750757</utime>
  </item>
  </rdf:RDF>
