<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Labrid WP &#187; Wordpress</title>
	<atom:link href="http://labrid.jp/wp/cat/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://labrid.jp/wp</link>
	<description>Wordpress 検証・実験サイト on Wordpress</description>
	<lastBuildDate>Thu, 26 Apr 2012 10:43:48 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/cat/wp/feed/" />
		<item>
		<title>RSS Grafitti (facebook) 試用中</title>
		<link>http://labrid.jp/wp/archives/1397/</link>
		<comments>http://labrid.jp/wp/archives/1397/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 10:40:22 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1397</guid>
		<description><![CDATA[facebookでRSSを読み込んでウォールに最新記事を表示させる事ができるfacebookアプリ RSS Grafitti を試用中でございます。 サムネイルも読み込めるのかな・・・ とりあえず反映できるか投稿テストで]]></description>
			<content:encoded><![CDATA[<p><a title="RSS Graffiti" href="http://beta.rssgraffiti.com"><img src="http://labrid.jp/wp/wp-content/uploads/RSS-Graffiti.gif" alt="" title="RSS Graffiti" width="462" height="196" class="alignnone size-full wp-image-1401" /></a></p>
<p>facebookでRSSを読み込んでウォールに最新記事を表示させる事ができるfacebookアプリ</p>
<p><a href="http://apps.facebook.com/rssgraffiti/">RSS Grafitti</a></p>
<p>を試用中でございます。</p>
<p>サムネイルも読み込めるのかな・・・</p>
<p>とりあえず反映できるか投稿テストです。</p>
<p>（追記）</p>
<p><a href="http://www.facebook.com/pages/Labrid-LLC/146281552111031">→反映できました。</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1397/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1397/" />
	</item>
		<item>
		<title>[WP] 現在表示中のカテゴリの「月別アーカイブ」「最新の投稿」を表示</title>
		<link>http://labrid.jp/wp/archives/1385/</link>
		<comments>http://labrid.jp/wp/archives/1385/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 01:57:32 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1385</guid>
		<description><![CDATA[そんな要望もあろうかと準備しておった。抜かりはないわ。フハハ まず、カテゴリ一覧、記事詳細ページで現在のカテゴリIDを取得。 &#60;?php if (is_category() &#124;&#124; is_single()) { if]]></description>
			<content:encoded><![CDATA[<p>そんな要望もあろうかと準備しておった。抜かりはないわ。フハハ</p>
<p>まず、カテゴリ一覧、記事詳細ページで現在のカテゴリIDを取得。</p>
<blockquote><p>&lt;?php if (is_category() || is_single()) {<br />
if (is_category()) {<br />
$cat_now = get_category(get_query_var(&#8216;cat&#8217;));<br />
}<br />
elseif (is_single()) {<br />
$cat_now = get_the_category();<br />
$cat_now = $cat_now[0];<br />
}<br />
$cat_id = $cat_now-&gt;cat_ID;<br />
} ?&gt;</p></blockquote>
<h3>月別アーカイブ表示</h3>
<blockquote><p>&lt;?php if (is_category() || is_single()) {<br />
wp_get_archives( &#8216;cat=&#8217;.$cat_id );<br />
} else {<br />
wp_get_archives( &#8216;type=monthly&#8217; );<br />
} ?&gt;</p></blockquote>
<h3>最新記事表示</h3>
<blockquote><p>&lt;?php if (is_category() || is_single()) {<br />
$lastposts = get_posts(&#8216;category=&#8217;.$cat_id.&#8217;&amp;numberposts=5&#8242;);<br />
} else {<br />
$lastposts = get_posts(&#8216;numberposts=5&#8242;);<br />
}<br />
foreach($lastposts as $post) : setup_postdata($post);<br />
?&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php endforeach; ?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1385/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1385/" />
	</item>
		<item>
		<title>[wp] WordPress 3.3 にアップグレード</title>
		<link>http://labrid.jp/wp/archives/1356/</link>
		<comments>http://labrid.jp/wp/archives/1356/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 00:51:51 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1356</guid>
		<description><![CDATA[WordPress 3.3 の日本語版がついにリリース！ 早速アップグレードしましたが（管理画面の自動更新からサクっと）今のところ全く問題ありません。 プラグインも同様にサクッと自動更新しましたが、不具合の発生しているも]]></description>
			<content:encoded><![CDATA[<p>WordPress 3.3 の日本語版がついにリリース！</p>
<p>早速アップグレードしましたが（管理画面の自動更新からサクっと）今のところ全く問題ありません。<br />
プラグインも同様にサクッと自動更新しましたが、不具合の発生しているものは無い模様。</p>
<p>大幅にカスタマイズしているショッピングカートプラグインWelcart がこけたら…が恐怖でしたが大丈夫でした。</p>
<p>マルチサイト化しているWordpressもアップグレードしましたが、これも無問題。</p>
<p>Ktai styleもだいじょうぶ☆</p>
<p>管理画面もだいぶ強化されてます。</p>
<p>この辺り↓の新機能が便利そう <img src='http://labrid.jp/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div>
<div>
<blockquote>
<h4>柔軟なパーマリンク</h4>
<p>パーマリンク構造をより自由に設定できるようになりました。日付情報をなくしたりカテゴリースラッグ追加したりしてもパフォーマンスが低下しなくなりました。</p></blockquote>
</div>
<blockquote>
<div>
<h4>投稿スラッグ: すっきりとした表示</h4>
<p>投稿タイトルの変わった文字 (例えばワープロからコピーした変わった引用符) が投稿スラッグでも文字化けしなくなりました。</p>
</div>
<div>
<h4>jQuery と jQuery UI</h4>
<p>WordPress には jQuery UI スタックがすべて含まれています。jQuery の最新バージョンは 1.7.1 です。</p>
</div>
</blockquote>
</div>
<div>
<blockquote>
<div>
<h4>is_main_query()</h4>
<p>この便利なメソッドは <code>WP_Query</code> オブジェクトがメインの WordPress クエリーなのか2番目のクエリーなのかを教えてくれます。</p>
</div>
<div>
<h4>WP_Screen API</h4>
<p>WordPress には管理画面を操作する新しい API があります。リッチな画面の作成、ヘルプドキュメンテーションの追加、画面コンテクストへの対応などを行えます。</p>
</div>
</blockquote>
<div>
<blockquote>
<h4>エディタ API の改良</h4>
<p>新しいエディタ API は、自動的に便利な JavaScript や CSS をすべて自動的に取り込みます。一つのページ上での複数のエディタにも対応しています。</p></blockquote>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1356/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1356/" />
	</item>
		<item>
		<title>YouTube動画へのリンクをサムネイル画像付きで埋め込むショートコード</title>
		<link>http://labrid.jp/wp/archives/1341/</link>
		<comments>http://labrid.jp/wp/archives/1341/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 09:28:52 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ショートコード]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1341</guid>
		<description><![CDATA[そんな仕様が求められる場合もあると思うんですよ。 はい、困った時のショートコードー。 今回はYouTubeサムネイルリンク埋め込み版です。 サムネイル画像はytimg.comから取得。 サイズ処理はHTMLタグ側で無理や]]></description>
			<content:encoded><![CDATA[<p>そんな仕様が求められる場合もあると思うんですよ。</p>
<p>はい、困った時のショートコードー。<br />
今回はYouTubeサムネイルリンク埋め込み版です。</p>
<p>サムネイル画像はytimg.comから取得。<br />
サイズ処理はHTMLタグ側で無理やり、です。<br />
CSSによってはうまく調整できないので style属性にでも書き換えましょう。</p>
<h4>functions</h4>
<p><code>function youtube($atts) {<br />
extract(shortcode_atts(array(<br />
"value" =&gt; '',<br />
"width" =&gt; '480',<br />
"height" =&gt; '360',<br />
"title" =&gt; ''<br />
), $atts));<br />
return '&lt;div class="ytthum"&gt;&lt;a href="http://www.youtube.com/watch?v='.$value.'"&gt;&lt;img src="http://i.ytimg.com/vi/'.$value.'/0.jpg" width="'.$width.'" height="'.$height.'" alt="'.$title.'" /&gt;&lt;/a&gt;&lt;br /&gt;'.$title.'&lt;/div&gt;';<br />
}<br />
add_shortcode("youtube", "youtube");</code></p>
<h4>Shortcord</h4>
<p><code>［youtube value="emAzdSUkkM8"］</code></p>
<h4>Sample</h4>
<p class="ythumlink"><a href="http://www.youtube.com/watch?v=emAzdSUkkM8"><img src="http://i.ytimg.com/vi/emAzdSUkkM8/0.jpg" width="120" height="90" alt="" /></a></p>
<h4>参考にさせていただきました</h4>
<p><a href="http://kachibito.net/wordpress/youtube-tips.html">WordPressで運営しているサイトでYoutubeを使う際に知っておくと得するっぽいTips</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1341/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1341/" />
	</item>
		<item>
		<title>[wp]指定カテゴリの記事一覧表示に記事が無い場合の表示をプラス</title>
		<link>http://labrid.jp/wp/archives/1335/</link>
		<comments>http://labrid.jp/wp/archives/1335/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 09:24:15 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1335</guid>
		<description><![CDATA[これまで指定カテゴリの記事一覧はこんなコードで表示してました。 &#60;div&#62; &#60;h2&#62;&#60;a href="&#60;?php echo get_category_link('1'); ?&#62;"]]></description>
			<content:encoded><![CDATA[<p>これまで指定カテゴリの記事一覧はこんなコードで表示してました。<br />
<code><br />
&lt;div&gt;<br />
&lt;h2&gt;&lt;a href="&lt;?php echo get_category_link('1'); ?&gt;"&gt;&lt;?php echo get_the_category_by_ID('1') ?&gt;&lt;/a&gt;&lt;/h2&gt;<br />
&lt;dl&gt;<br />
&lt;?php<br />
$lastposts = get_posts('category=1&amp;numberposts=5');<br />
foreach($lastposts as $post) : setup_postdata($post);<br />
?&gt;<br />
&lt;dt&gt;&lt;?php the_time('Y/n/j'); ?&gt;&lt;/dt&gt;<br />
&lt;dd&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title_attribute(); ?&gt;&lt;/a&gt;&lt;/dd&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/dl&gt;<br />
&lt;/div&gt;</code></p>
<p>これだと、該当カテゴリに記事が無い場合は何も表示されず素っ気ない感じがします。</p>
<p>そこで、記事がない場合に「ごめんね」コピーを表示します。<br />
ついでにタイトルクリックで一覧ページにジャンプの仕様を、一覧ボタン表示に変え、これも記事が無い場合は表示しないようにします。</p>
<p>その改良版コードがこれ。<br />
大したカスタマイズじゃないですけど…メモメモ。</p>
<p><code>&lt;?php $lastposts = get_posts('category=1&amp;numberposts=5'); ?&gt;<br />
&lt;div class="topnews"&gt;<br />
&lt;div?class="cat-title"&gt;<br />
&lt;h2&gt;&lt;?php echo get_the_category_by_ID('1') ?&gt;&lt;/h2&gt;<br />
&lt;?php if($lastposts): ?&gt;<br />
&lt;a href="&lt;?php echo get_category_link('1'); ?&gt;"?class="bt-catidx"&gt;一覧はこちら&lt;/a&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php if($lastposts): ?&gt;<br />
&lt;dl&gt;<br />
&lt;?php foreach($lastposts as $post) : setup_postdata($post); ?&gt;<br />
&lt;dt&gt;&lt;?php the_time('Y/n/j'); ?&gt;&lt;/dt&gt;<br />
&lt;dd&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title_attribute(); ?&gt;&lt;/a&gt;&lt;/dd&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/dl&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;p&gt;ただいま準備中です。&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/div&gt;</code></p>
<h3>追記：カテゴリーIDの指定が・・・</h3>
<p>上記例だとカテゴリーIDの指定が何度も必要で<del>面倒</del>ミスの元になりそう！<br />
エクスポート→インポートでIDが変わったりすることもあるし。<br />
というわけで、カテゴリースラッグからIDを取得してゴニョることにしました。</p>
<p><code>&lt;?php $lastposts = get_posts('category=1&amp;numberposts=5'); ?&gt;<br />
&lt;div&gt;<br />
&lt;div?class="cat-title"&gt;<br />
&lt;h2&gt;&lt;?php echo get_the_category_by_ID('1') ?&gt;&lt;/h2&gt;<br />
&lt;?php if($lastposts): ?&gt;<br />
&lt;a href="&lt;?php echo get_category_link('1'); ?&gt;"?class="bt-catidx"&gt;一覧はこちら&lt;/a&gt;</code></p>
<p>これを</p>
<p><code>&lt;?php $term_id = get_category_by_slug('xxxxx')-&gt;term_id;<br />
$lastposts = get_posts('category='.$term_id.'&amp;numberposts=5'); ?&gt;<br />
&lt;div&gt;<br />
&lt;div?class="cat-title"&gt;<br />
&lt;h2&gt;&lt;?php echo get_the_category_by_ID($term_id) ?&gt;&lt;/h2&gt;<br />
&lt;?php if($lastposts): ?&gt;<br />
&lt;a href="&lt;?php echo get_category_link($term_id); ?&gt;"?class="bt-catidx"&gt;一覧はこちら&lt;/a&gt;</code><code></code></p>
<p>こう。</p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1335/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1335/" />
	</item>
		<item>
		<title>[wp]タイトルを画像にしてみる 2011</title>
		<link>http://labrid.jp/wp/archives/1322/</link>
		<comments>http://labrid.jp/wp/archives/1322/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 16:32:49 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[カスタマイズ]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1322</guid>
		<description><![CDATA[デザインポリシーによっては、Wordpressの各ページのタイトル画像にしたい場合があります。 今回は、よくある以下の仕様のタイトル画像をテンプレートカスタムとCSSで実現させます。 固定ページでは全ページのタイトルを画]]></description>
			<content:encoded><![CDATA[<p>デザインポリシーによっては、Wordpressの各ページのタイトル画像にしたい場合があります。<br />
今回は、よくある以下の仕様のタイトル画像をテンプレートカスタムとCSSで実現させます。</p>
<ol>
<li>固定ページでは全ページのタイトルを画像に。</li>
<li>投稿系では一覧・詳細共に共通でカテゴリー名をタイトル画像に。<br />
（記事が属するカテゴリは一つだけとする）</li>
</ol>
<p>これを実現するためには、タイトル要素をCSSで指定できるようにすればいい。<br />
Wordpressは body のクラスに自動でページIDや投稿IDをつけてくれているのですが、これをフックにする場合、以下の問題が・・・</p>
<ul>
<li>ページや投稿記事を作成するまでIDが何になるかわからない</li>
<li>投稿記事のbodyには属するカテゴリについての情報を出力しない</li>
</ul>
<p>そこで、タイトル要素の親要素のクラスに</p>
<ol>
<li>固定ページでは、ページスラッグ</li>
<li>投稿記事一覧・詳細では、カテゴリースラッグ</li>
</ol>
<p>を出力するようにカスタマイズします。</p>
<h3>1. ページスラッグの出力カスタマイズ例（page.php）</h3>
<p><code>&lt;div id="content" class="pgslug-&lt;?php echo get_page_uri($post-&gt;ID);?&gt;" role="main"&gt;</code></p>
<h3>第3階層以下は全て第2階層のタイトル画像を使用する （2011/11/01追記）</h3>
<ul>
<li>商品紹介
<ul>
<li>商品その1</li>
<li>商品その2
<ul>
<li>商品その2のバリエーションその1</li>
<li>商品その2のバリエーションその2</li>
</ul>
</li>
<li>・・・</li>
</ul>
</li>
</ul>
<p>というような階層構造をWordpressで作成している場合、タイトル画像は商品紹介以下全ページで「商品画像」としたい、という場合が多いかと。<br />
そんな場合はこれで。</p>
<p><code>&lt;?php<br />
$top_post = get_post($post-&gt;ID);<br />
while ($top_post-&gt;post_parent) { $top_post = get_post($top_post-&gt;post_parent); }<br />
$top_slug = get_page_uri($top_post-&gt;ID);<br />
?&gt;<br />
&lt;div id="content" class="pgslug-&lt;?php echo $top_slug;?&gt;" role="main"&gt;</code></p>
<h3>2. カテゴリースラッグの出力カスタマイズ例（single.php, category.php）</h3>
<p><code>&lt;?php<br />
$cat = get_the_category();<br />
$catslug = $cat[0]-&gt;category_nicename;<br />
?&gt;<br />
&lt;div id="content" class="pgslug-&lt;?php echo $catslug; ?&gt;" role="main"&gt;</code></p>
<h3>その他のコンテンツでは…</h3>
<p>アーカイブや検索系では body に対応するクラスが付いているので、それをフックにします。</p>
<ul>
<li>アーカイブ：archive</li>
<li>タグ：tag</li>
<li>検索系共通：search
<ul>
<li>検索結果一覧：search-results</li>
<li>検索で見つからない：search-no-results</li>
</ul>
</li>
<li>Not found：error404</li>
</ul>
<p>あとはこれら全てのクラスに対して</p>
<p><code>.pgslug-xxxx #page-title {<br />
width: 100%;<br />
height: 35px;<br />
overflow: hidden;<br />
text-indent: -999em;<br />
background: url(画像のパス) no-repeat;<br />
}</code></p>
<p>のように背景画像を設定すればいいかと。</p>
<p>できればプレーンテキストでハマるデザインで提案しておきたいところですが…どうしてもって場合もあるので、備えあれば憂いなし。</p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1322/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1322/" />
	</item>
		<item>
		<title>[wp]フォントサイズ変更プラグイン</title>
		<link>http://labrid.jp/wp/archives/1313/</link>
		<comments>http://labrid.jp/wp/archives/1313/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 02:03:49 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fontsize]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1313</guid>
		<description><![CDATA[ユーザビリティ向上のため、フォントサイズを変更できるようにするプラグインです。 font-resizer テンプレート埋め込みタグ &#60;?php if(function_exists('fontResizer_pla]]></description>
			<content:encoded><![CDATA[<p>ユーザビリティ向上のため、フォントサイズを変更できるようにするプラグインです。</p>
<p><a href="http://wordpress.org/extend/plugins/font-resizer/" target="_blank">font-resizer</a></p>
<h3>テンプレート埋め込みタグ</h3>
<p><code>&lt;?php if(function_exists('fontResizer_place')) { fontResizer_place(); } ?&gt;</code></p>
<h3>出力タグ</h3>
<p><code>&lt;li class="fontResizer" style="text-align: center; font-weight: bold;"&gt;<br />
&lt;a style="font-size: 0.7em;" title="Decrease font size"&gt;A&lt;/a&gt;<br />
&lt;a title="Reset font size"&gt;A&lt;/a&gt;<br />
&lt;a style="font-size: 1.2em;" title="Increase font size"&gt;A&lt;/a&gt;<br />
&lt;input id="fontResizer_value" type="hidden" value="ownid" /&gt;<br />
&lt;input id="fontResizer_ownid" type="hidden" value="content" /&gt;<br />
&lt;input id="fontResizer_ownelement" type="hidden" value="" /&gt;<br />
&lt;input id="fontResizer_resizeSteps" type="hidden" value="1.6" /&gt;<br />
&lt;input id="fontResizer_cookieTime" type="hidden" value="31" /&gt;<br />
&lt;/li&gt;</code></p>
<p>クラス付けしてくれているのでデザインはCSSでどうとでもなります。</p>
<p>汎用的に使えるかもしれないサンプルはこちら</p>
<h3>テンプレート</h3>
<p><code>&lt;div id="font_select"&gt;<br />
&lt;ul&gt;<br />
&lt;li id="fselectTtl"&gt;文字サイズ：&lt;/li&gt;<br />
&lt;?php if(function_exists('fontResizer_place')) { fontResizer_place(); } ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</code></p>
<h3>CSS</h3>
<p><code>/* font-resizer */<br />
#font_select {<br />
letter-spacing: -0.31em;<br />
*letter-spacing: normal;<br />
word-spacing: -0.43em;<br />
text-align:right;<br />
padding-right:0.5em;<br />
line-height:20px;<br />
}<br />
#font_select ul {<br />
list-style: none outside none;<br />
margin:0 0 1em 0;<br />
padding:0;<br />
}<br />
#font_select ul li,<br />
#font_select ul li a {<br />
display: inline-block;<br />
zoom: 1; *display: inline;<br />
vertical-align: middle;<br />
white-space:nowrap;<br />
}<br />
#font_select ul li#fselectTtl {<br />
letter-spacing: normal;<br />
word-spacing: normal;<br />
width:auto;<br />
}<br />
#font_select ul li.fontResizer {<br />
}<br />
.fontResizer a {<br />
letter-spacing: normal;<br />
word-spacing: normal;<br />
width:20px;<br />
hright:20px;<br />
margin-right:2px;<br />
}<br />
.fontResizer a:hover {}<br />
a.fontResizer_minus {}<br />
a.fontResizer_reset {}<br />
a.fontResizer_add {}</code></p>
<p>フロートはあまり好きじゃないので inline-block。<br />
リサイズボタンにマイナスインデント＋背景画像で。<br />
そういえばマイナスインデントでリンクテキストをhiddenするテクニックがSEO的にマイナスっていう都市伝説はホントのところどうなんでしょうね？<br />
どなたか知ってたら教えてくださーい。</p>
<p>追記：<br />
JS組込みの手間を惜しまないのであれば、より汎用的でHTMLの制限のないこちらの方がいいかも。（未検証）</p>
<p><a href="http://trevordavis.net/blog/simple-jquery-text-resizer/" target="_blank">Simple jQuery Text Resizer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1313/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1313/" />
	</item>
		<item>
		<title>Contact Form 7 にパラメータを渡す方法</title>
		<link>http://labrid.jp/wp/archives/1194/</link>
		<comments>http://labrid.jp/wp/archives/1194/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 13:02:21 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1194</guid>
		<description><![CDATA[Contact Form 7 にパラメータを渡す方法メモ functions.php に以下を追加して function my_form_tag_filter($tag){ if ( ! is_array( $tag )]]></description>
			<content:encoded><![CDATA[<p>Contact Form 7 にパラメータを渡す方法メモ</p>
<p>functions.php に以下を追加して</p>
<p><code>function my_form_tag_filter($tag){<br />
if ( ! is_array( $tag ) )<br />
return $tag;<br />
if(isset($_GET['goods'])){<br />
$name = $tag['name'];<br />
if($name == 'your-goods') $tag['values'] = (array) $_GET['goods'];<br />
}<br />
return $tag;<br />
} add_filter('wpcf7_form_tag', 'my_form_tag_filter', 11);</code></p>
<p>Contact Form 7 で例えば</p>
<p><code>&lt;p&gt;商品名&lt;br /&gt; [text your-goods] &lt;/p&gt;</code></p>
<p>のような商品名欄を作成し、ボタンのリンク先を</p>
<p><code>http://example.com/contact?goods=商品1</code></p>
<p>みたいにすると、ソノような動きをします。</p>
<p><a href="http://ja.contactform7.com/faq/" target="_blank">Contact Form 7&#8242;s FAQ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1194/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1194/" />
	</item>
		<item>
		<title>[WP] wp_list_pagesをショートコード化してくれるプラグイン</title>
		<link>http://labrid.jp/wp/archives/1183/</link>
		<comments>http://labrid.jp/wp/archives/1183/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 01:48:54 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1183</guid>
		<description><![CDATA[Page-list. wp_list_pagesをページ内に埋め込みたいという要望はかなり多いはず。 ただそのたびに個別テンプレートを用意したり、条件分岐を設定するのも面倒。 気づいたらloop_page.phpがグチャ]]></description>
			<content:encoded><![CDATA[<p><a href="http://web-profile.com.ua/wordpress/plugins/page-list/" target="_blank" rel="nofollow">Page-list</a>.</p>
<p>wp_list_pagesをページ内に埋め込みたいという要望はかなり多いはず。</p>
<p>ただそのたびに個別テンプレートを用意したり、条件分岐を設定するのも面倒。<br />
気づいたらloop_page.phpがグチャグチャに…なんてことにも。</p>
<p>このプラグインを入れると、以下のショートコードが使えるようになるらしいです。<br />
これから検証するのですが、ショートコードを忘れないようにメモメモφ(｀д´)</p>
<ul>
<li>[pagelist]　基本。wp_list_pages(‘title_li=’)</li>
<li>[subpages]　現在の子ページ。[pagelist child_of="current"]でも可。</li>
<li>[siblings]　共通の親を持つ子ページ。[pagelist child_of="parent"]でも可。</li>
<li>depth ? means how many levels in the hierarchy of pages are to be  included in the list, by default depth is unlimited (depth=0), but you  can specify it like this: <code>[pagelist depth="3"]</code>;</li>
<li>if you want to show flat list of pages (not hierarchical tree) you can use this shortcode: <code>[pagelist depth="-1"]</code>;</li>
<li>if you want to show subpages of the specific page you can use this shortcode: <code>[pagelist child_of="4"]</code> where <code>4</code> is the ID of the specific page;</li>
<li>if you want to exclude some pages from the list you can use this shortcode: <code>[pagelist exclude="6,7,8"]</code> where <code>exclude</code> parameter accepts comma-separated list of Page IDs;</li>
<li>if you want to exclude the tree of pages from the list you can use this shortcode: <code>[pagelist exclude_tree="7,10"]</code> where <code>exclude_tree</code> parameter accepts comma-separated list of Page IDs (all this pages and their subpages will be excluded);</li>
<li>if you want to include certain pages into the list of pages you can use this shortcode: <code>[pagelist include="6,7,8"]</code> where <code>include</code> parameter accepts comma-separated list of Page IDs;</li>
<li>if you want to specify the title of the list of pages you can use this shortcode: <code>[pagelist title_li="&lt;h2&gt;List of pages&lt;/h2&gt;"]</code>; by default there is no title (title_li=”&#8221;);</li>
<li>if you want to specify the number of pages to be included into list of pages you can use this shortcode: <code>[pagelist number="10"]</code>; by default the number is unlimited (number=”&#8221;);</li>
<li>if you want to pass over (or displace) some pages you can use this shortcode: <code>[pagelist offset="5"]</code>; by default there is no offset (offset=”&#8221;);</li>
<li>if you want to include the pages that have this Custom Field Key you can use this shortcode: <code>[pagelist meta_key="metakey" meta_value="metaval"]</code>;</li>
<li>if you want to show the date of the page you can use this shortcode: <code>[pagelist show_date="created"]</code>; you can use this values for <code>show_date</code> parameter: created, modified, updated;</li>
<li>if you want to specify the column by what to sort you can use this shortcode: <code>[pagelist sort_column="menu_order"]</code>; by default order columns are <code>menu_order</code> and <code>post_title</code> (sort_column=”menu_order, post_title”); you can use this values for <code>sort_column</code> parameter: post_title, menu_order, post_date (sort by creation time),  post_modified (sort by last modified time), ID, post_author (sort by the  page author’s numeric ID), post_name (sort by page slug);</li>
<li>if you want to change the sort order of the list of pages (either ascending or descending) you can use this shortcode: <code>[pagelist sort_order="desc"]</code>; by default sort_order is <code>asc</code> (sort_order=”asc”); you can use this values for <code>sort_order</code> parameter: asc, desc;</li>
<li>if you want to specify the text or html that precedes the link text inside the link tag you can use this shortcode: <code>[pagelist link_before="&lt;span&gt;"]</code>; you may specify html tags only in the <code>HTML</code> tab in your Rich-text editor;</li>
<li>if you want to specify the text or html that follows the link text inside the link tag you can use this shortcode: <code>[pagelist link_after="&lt;/span&gt;"]</code>; you may specify html tags only in the <code>HTML</code> tab in your Rich-text editor;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1183/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1183/" />
	</item>
		<item>
		<title>[wp] wp_list_pagesのexclude_treeの複数指定のバグ対策</title>
		<link>http://labrid.jp/wp/archives/1167/</link>
		<comments>http://labrid.jp/wp/archives/1167/#comments</comments>
		<pubDate>Fri, 27 May 2011 01:42:15 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1167</guid>
		<description><![CDATA[こちらの記事でバグ修正方法を紹介されていましたが、 コアファイルを変更するのでWordpressのバージョンアップのたびに適用する必要が。 それも面倒、というか忘れそうなので、テンプレートに対策を直接記述する 以下のバグ]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://www.mee77.com/2010/02/73/" target="_blank">こちらの記事</a>でバグ修正方法を紹介されていましたが、<br />
コアファイルを変更するのでWordpressのバージョンアップのたびに適用する必要が。</p>
<p>それも面倒、というか忘れそうなので、テンプレートに対策を直接記述する<br />
以下のバグ対策を施すことにしました。</p>
<p>例えば</p>
<blockquote><p>wp_list_pages(&#8216;exclude_tree=29,32,36,39&amp;sort_column=menu_order&amp;depth=2&amp;title_li=&#8217; );</p></blockquote>
<p>という記述は、</p>
<blockquote><p>$parent_pages_to_exclude = array(29,32,36,39);<br />
foreach($parent_pages_to_exclude as $parent_page_to_exclude) {<br />
if ($page_exclusions) { $page_exclusions .= &#8216;,&#8217; . $parent_page_to_exclude; }<br />
else { $page_exclusions = $parent_page_to_exclude; }<br />
$descendants = get_pages(&#8216;child_of=&#8217; . $parent_page_to_exclude);<br />
foreach($descendants as $descendant) {<br />
$page_exclusions .= &#8216;,&#8217; . $descendant-&gt;ID;<br />
}<br />
}<br />
wp_list_pages(&#8216;title_li=&amp;sort_column=menu_order&amp;depth=2&amp;exclude=&#8217; . $page_exclusions);</p></blockquote>
<p>で想定通りの動作をさせられます。</p>
<p>参考：<a href="http://wordpress.org/support/topic/excluding-multiple-pages-with-exclude_tree" target="_blank" class="nofollow">http://wordpress.org/support/topic/excluding-multiple-pages-with-exclude_tree</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1167/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1167/" />
	</item>
		<item>
		<title>[WP] WordPress 全ページにメインビジュアル画像（タイトル画像）をつけるカスタマイズ</title>
		<link>http://labrid.jp/wp/archives/1150/</link>
		<comments>http://labrid.jp/wp/archives/1150/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 01:43:03 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[技術メモ]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1150</guid>
		<description><![CDATA[WordPress のテンプレートカスタマイズメモ： 全ページにメインビジュアル画像（タイトル画像）をつけるカスタマイズ WordPress 3.0〜 の新しい機能としてカスタムヘッダーという機能がある。 これは以下のよ]]></description>
			<content:encoded><![CDATA[<h3>WordPress のテンプレートカスタマイズメモ：<br />
全ページにメインビジュアル画像（タイトル画像）をつけるカスタマイズ</h3>
<p>WordPress 3.0〜 の新しい機能としてカスタムヘッダーという機能がある。<br />
これは以下のような機能をもったもの。</p>
<ul>
<li>管理画面で全ページ共通で表示されるヘッダーイメージを選択できる</li>
<li>固定ページ、投稿ページごとに投稿画面からヘッダーイメージをアップできる</li>
</ul>
<p>しかし、これではカテゴリー一覧や検索関連では個別設定できないので、この機能を使って「タイトル画像」を各ページにセットする、という使い方はできない。</p>
<p>そこで、一つのテンプレートファイル（header.php）をカスタマイズして、以下のような仕様のヘッダーイメージを全ページに設定する方法を考えてみた。</p>
<ul>
<li>トップページには大きめのメインビジュアル画像</li>
<li>カテゴリー一覧・個別投稿ページではカテゴリータイトル画像</li>
<li>固定ページには個別のタイトル画像</li>
</ul>
<p>条件分岐は、いつもの if 文で。</p>
<h4>トップページにメインビジュアル画像</h4>
<p>普通に固定で。</p>
<p>&lt;img src=&#8221;&lt;?php bloginfo( &#8216;template_url&#8217; ); ?&gt;/images/main.jpg&#8221; alt=&#8221;" /&gt;</p>
<p>もしくはカスタムヘッダーを使う。（管理画面から差替え可能）</p>
<p>&lt;img src=&#8221;&lt;?php header_image(); ?&gt;&#8221; width=&#8221;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&#8221; height=&#8221;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&#8221; alt=&#8221;" /&gt;</p>
<h4>カテゴリー一覧・個別投稿ページではカテゴリータイトル画像</h4>
<p>カテゴリースラッグを抜き出して画像ファイル名を<br />
｛カテゴリースラッグ｝_ttl.jpg<br />
としてテンプレートの画像ディレクトリに用意。<br />
これを以下のように読み出す。</p>
<p>&lt;?php $cat = get_the_category(); $cat = $cat[0]; {<br />
echo &#8216;&lt;img src=&#8221;&#8216; . get_bloginfo(&#8220;template_url&#8221;) . &#8216;/images/&#8217; . $cat-&gt;category_nicename . &#8216;_ttl.jpg&#8221; alt=&#8221;&#8216; . $cat-&gt;cat_name . &#8216;&#8221; /&gt;&#8217;;<br />
} ?&gt;</p>
<h4>固定ページには個別のタイトル画像</h4>
<p>カスタムフィールドを使い 「ttl」のような key に セットした値を使って<br />
｛カスタムフィールド：ttlの値｝_ttl.jpg<br />
という名前の画像ファイルをテンプレートの画像ディレクトリに用意。<br />
これを以下のように読み出す。</p>
<p>&lt;img src=&#8221;&lt;?php bloginfo( &#8216;template_url&#8217; ); ?&gt;/images/&lt;?php echo get_post_meta($post-&gt;ID,&#8217;ttl&#8217;,true); ?&gt;_ttl.jpg&#8221; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221; /&gt;</p>
<p>全ページ・全カテゴリ分のテンプレートファイルを個別に用意するのに比べればかなり楽にタイトル画像を実現できたかと思います <img src='http://labrid.jp/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1150/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1150/" />
	</item>
		<item>
		<title>[WP] WordPress 3.01 にバージョンアップ完了</title>
		<link>http://labrid.jp/wp/archives/1108/</link>
		<comments>http://labrid.jp/wp/archives/1108/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 10:15:26 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1108</guid>
		<description><![CDATA[当サイトのWordpressのバージョンを最新（3.01）にアップしました。 今回は2.9.xからのバージョンアップ。 念のためにバックアップをきっちりとってから、管理画面のバージョンアップボタンをポチりましたが、問題な]]></description>
			<content:encoded><![CDATA[<p>当サイトのWordpressのバージョンを最新（3.01）にアップしました。</p>
<p>今回は2.9.xからのバージョンアップ。<br />
念のためにバックアップをきっちりとってから、管理画面のバージョンアップボタンをポチりましたが、問題なく全て自動でバージョンアップできました。</p>
<p>多くの新機能が備わったようで、検証が楽しみです。</p>
<p>この記事を書いている目的の一つに、リビジョンの時差についての検証があります。</p>
<p><a rel="nofollow" href="http://ja.forums.wordpress.org/topic/4395" target="_blank">＞Wordpress.org：フォーラム：時刻設定</a></p>
<p><strong>結論：Wordpress 3.01 では、リビジョンの時差は治っています。</strong></p>
<p>※SSL絡みの au端末で発生する無限リダイレクト問題は治っていない模様。</p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1108/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1108/" />
	</item>
		<item>
		<title>[WP] ContactForm7 で AjaxZip2 を使う</title>
		<link>http://labrid.jp/wp/archives/1092/</link>
		<comments>http://labrid.jp/wp/archives/1092/#comments</comments>
		<pubDate>Mon, 31 May 2010 10:03:43 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1092</guid>
		<description><![CDATA[【問題点】 ContactForm7では、AjaxZip2の「onKeyUp=&#8221;〜&#8221;」を input タグに組み込めない。 【解決策】 ライブラリを読み込む際に、以下を記述しておく。 ※郵便番号 ]]></description>
			<content:encoded><![CDATA[<p>【問題点】<br />
ContactForm7では、AjaxZip2の「onKeyUp=&#8221;〜&#8221;」を input タグに組み込めない。</p>
<p>【解決策】<br />
ライブラリを読み込む際に、以下を記述しておく。<br />
※郵便番号 input : id=&#8221;zip&#8221;<br />
※都道府県 input : id=&#8221;pref&#8221;<br />
※住所 input : id=&#8221;addr&#8221;</p>
<pre name="code" class="javascript">
<script type="text/javascript">
//< ![CDATA[
jQuery(function(){
AjaxZip2.JSONDATA = '<?php bloginfo("template_directory") ?>/js/ajaxzip2/data';
jQuery('#zip').keyup(function(event){
AjaxZip2.zip2addr(this,'pref','addr');
})
})
//]]&gt;
</script>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1092/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1092/" />
	</item>
		<item>
		<title>[WP] WordPress で jQuery を使ったらエラーが；；</title>
		<link>http://labrid.jp/wp/archives/1090/</link>
		<comments>http://labrid.jp/wp/archives/1090/#comments</comments>
		<pubDate>Mon, 31 May 2010 09:59:03 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1090</guid>
		<description><![CDATA[WordPressプラグイン化されていないjQueryライブラリを使おうとすると、エラーが出ますよね。 ググったところ、これは、他のライブラリとの干渉を防ぐためにのWordoress仕様のjQueryの親心だそうな。 解]]></description>
			<content:encoded><![CDATA[<p>WordPressプラグイン化されていないjQueryライブラリを使おうとすると、エラーが出ますよね。</p>
<p>ググったところ、これは、他のライブラリとの干渉を防ぐためにのWordoress仕様のjQueryの親心だそうな。</p>
<p>解決策としては、JSの「$()」を「jQuery()」にすればOK。</p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1090/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1090/" />
	</item>
		<item>
		<title>WordPress 2.9.2 にアップグレード</title>
		<link>http://labrid.jp/wp/archives/1086/</link>
		<comments>http://labrid.jp/wp/archives/1086/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 18:53:47 +0000</pubDate>
		<dc:creator>YAMADA</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://labrid.jp/wp/?p=1086</guid>
		<description><![CDATA[更新頻度が遅くてすみません！ 今回もあまり役立つ情報ではなく、報告でございます。 ようやく重い腰を上げて、当サイトのWordpressのバージョンを2.8.xから最新の2.9.2にアップグレードしました！ 及び腰だったの]]></description>
			<content:encoded><![CDATA[<p>更新頻度が遅くてすみません！<br />
今回もあまり役立つ情報ではなく、報告でございます。</p>
<p>ようやく重い腰を上げて、当サイトのWordpressのバージョンを2.8.xから最新の2.9.2にアップグレードしました！</p>
<p>及び腰だったのは、使っているサーバ（sakura）のMySQLのバージョンが4.0で、2.9.xからMySQLのバージョンが5.0以上が必須になったからなのでした。<br />
バージョンアップ自体はサーバのコンパネからの操作で簡単にできるのですが、DBのバックアップ→リストアといういかにも不測の事態が起こりそうな作業が必要なのです。</p>
<p>念のため、<a href="http://bamboostudio.tank.jp/archives/1692">先達のバージョンアップ報告</a>をチェックしつつおそるおそる作業を始めたわけですが・・・・予想通りトラブル発生。</p>
<p>#1007 ? Can’t create database ‘データベース名’; database exists<br />
というエラーメッセージが出てインポートできません。</p>
<p>よくよく先の<a href="http://bamboostudio.tank.jp/archives/1692">先達のバージョンアップ報告</a>を見ると、コメントに同様の報告がされていました。<br />
よく見ておけば・・・<br />
がしかし、報告されている解決手順では解決できず・・・・・</p>
<p>真っ青になりつつも、念のためにWordpressのプラグイン「WP-DBManager」でバックアップしておいたデータをあててみたところ、無事インポート成功！復活しました。<br />
備えあれば憂いなし。<br />
バックアップって、本当に大事ですね。</p>
<p>ちなみに、データベースが空の状態でWordpressにアクセスすると初期セットアップの画面になり、ここでセットアップ→DBプラグイン有効化→バックアップデータのリストア、の手順でリストアしたところ、Wordpressが管理側・表示側ともに真っ白になってしまいました。<br />
ではと、データベースを一旦まるごと削除して作り直し、バックアップデータをphpmyadminの画面からインポートしたところ、無事成功、というなんとも冷や汗ものな作業工程でありました。</p>
<p>WordPress 自体のバージョンアップは、そんな苦労がアホらしくなるほどあっさり簡単に成功しました。やれやれ。</p>
]]></content:encoded>
			<wfw:commentRss>http://labrid.jp/wp/archives/1086/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labrid.jp/wp/archives/1086/" />
	</item>
	</channel>
</rss>

