<?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/"
	>

<channel>
	<title>blog.flam</title>
	<atom:link href="http://blog.flam-w.jp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flam-w.jp</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 May 2011 17:29:02 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPressのサブページで親ページのID毎に条件分岐させる方法</title>
		<link>http://blog.flam-w.jp/blog/2010/07/06/wordpress%e3%81%ae%e3%82%b5%e3%83%96%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e8%a6%aa%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%aeid%e6%af%8e%e3%81%ab%e6%9d%a1%e4%bb%b6%e5%88%86%e5%b2%90%e3%81%95%e3%81%9b%e3%82%8b/</link>
		<comments>http://blog.flam-w.jp/blog/2010/07/06/wordpress%e3%81%ae%e3%82%b5%e3%83%96%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e8%a6%aa%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%aeid%e6%af%8e%e3%81%ab%e6%9d%a1%e4%bb%b6%e5%88%86%e5%b2%90%e3%81%95%e3%81%9b%e3%82%8b/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 10:28:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[カスタム]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=183</guid>
		<description><![CDATA[WordPressのサブページにおいて、指定している親ページ毎に条件分岐させる方法をご紹介します。

&#60;?php
/*最上位の親のページIDを取得*/
$ancestor = array_pop( get_post [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressのサブページにおいて、指定している親ページ毎に条件分岐させる方法をご紹介します。<br />
<span id="more-183"></span></p>
<pre class="brush: php;">&lt;?php
/*最上位の親のページIDを取得*/
$ancestor = array_pop( get_post_ancestors( $post-&gt;ID ) );

/*親のページIDが4の時に実行*/
if ($ancestor == 1) { ?&gt;
&lt;p&gt;親ページのIDは1です。&lt;/p&gt;
&lt;?php
 }

/*親のページIDが2の時に実行*/
else if ($ancestor == 2) { ?&gt;
&lt;p&gt;親ページのIDは2です。&lt;/p&gt;
&lt;?php
 }

/*親のページIDが3の時に実行*/
else if ($ancestor == 3) { ?&gt;
&lt;p&gt;親ページのIDは3です。&lt;/p&gt;
&lt;?php
 }

/*親のページIDが4の時に実行*/
else if
($ancestor == 4) { ?&gt;
&lt;p&gt;親ページのIDは4です。&lt;/p&gt;
&lt;?php
 }
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/07/06/wordpress%e3%81%ae%e3%82%b5%e3%83%96%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e8%a6%aa%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%aeid%e6%af%8e%e3%81%ab%e6%9d%a1%e4%bb%b6%e5%88%86%e5%b2%90%e3%81%95%e3%81%9b%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressのサブページナビゲーションを動的に生成する方法</title>
		<link>http://blog.flam-w.jp/blog/2010/06/30/wordpress%e3%81%ae%e3%82%b5%e3%83%96%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%8a%e3%83%93%e3%82%b2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e5%8b%95%e7%9a%84%e3%81%ab%e7%94%9f%e6%88%90%e3%81%99%e3%82%8b/</link>
		<comments>http://blog.flam-w.jp/blog/2010/06/30/wordpress%e3%81%ae%e3%82%b5%e3%83%96%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%8a%e3%83%93%e3%82%b2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e5%8b%95%e7%9a%84%e3%81%ab%e7%94%9f%e6%88%90%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 10:36:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[カスタム]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=152</guid>
		<description><![CDATA[WordPressの記事の投稿の方法にはブログの記事のように時系列にそって書き足していくようなものに向いている「投稿」と、比較的静的な内容のものを書くのに向いている「ページ」があります。
サイトの内容をすべて「投稿」で書 [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressの記事の投稿の方法にはブログの記事のように時系列にそって書き足していくようなものに向いている「投稿」と、比較的静的な内容のものを書くのに向いている「ページ」があります。</p>
<p>サイトの内容をすべて「投稿」で書いて、カテゴリーやタグを利用して分類する手もありますが、後々の更新・管理のことも考慮すると静的なコンテンツは「ページ」で作成しておきたいものです。</p>
<p>「ぺージ」もカテゴリーと同様に階層構造を持たせることができ、親ページの下にサブページを作成することができます。そして、テンプレートタグ</p>
<pre class="brush: php;">&lt;?php wp_list_pages('title_li=&amp;depth=1'); ?&gt;
</pre>
<p>を使っていろいろな方法で表示できますが、サブページの取り扱いが十分ではないので、今回はサブページがある時とない時を判定し、サブページがある時はサブページナビゲーションを表示する方法をご紹介します。<br />
<span id="more-152"></span></p>
<pre class="brush: php;">&lt;?php
global $wp_query;
if( empty($wp_query-&gt;post-&gt;post_parent) ) {
$parent = $wp_query-&gt;post-&gt;ID;
} else {
$parent = $wp_query-&gt;post-&gt;post_parent;
}
$ul_top_title = get_the_title($parent);
$ul_top_url = get_permalink($parent);
?&gt;
&lt;?php if(wp_list_pages("title_li=&amp;child_of=$parent&amp;echo=0" )): ?&gt;
&lt;h2&gt;&lt;a href="&lt;?php echo $ul_top_url; ?&gt;"&gt;&lt;?php echo $ul_top_title; ?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;?php
$children = wp_list_pages('title_li=&amp;sort_column=menu_order&amp;child_of='.$parent.'&amp;echo=0');
echo $children;
?&gt;
&lt;/ul&gt;
&lt;?php endif; ?&gt;
</pre>
<p>簡単に上記のソースを説明するとまず、現在のページが親ページを持っているか否か確認し、親ページがない場合は、現在のページIDを「親」に指定します。次に、サブページがあるか否かをチェックし、サブページがある場合は、h2に親ページのページ名を挿入し、リストを表示させます。子ページがなければ何も表示されません。</p>
<h2>参考サイト</h2>
<p><a class="link" href="http://iwatakenichi.blogspot.com/2008/06/active-sub-page-navigation-on-wordpress.html" target="_blank">WordPressのサブページナビゲーションを動的にする方法</a><a class="link" href="http://jp.blogherald.com/2007/07/27/wordpress-dynamic-sub-page-navigation/" target="_blank">WordPress のサブページの一覧を自動的に表示する方法 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/06/30/wordpress%e3%81%ae%e3%82%b5%e3%83%96%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%8a%e3%83%93%e3%82%b2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e5%8b%95%e7%9a%84%e3%81%ab%e7%94%9f%e6%88%90%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>プラグインの互換性をチェックできるプラグイン「Better Plugin Compatibility Control」</title>
		<link>http://blog.flam-w.jp/blog/2010/06/27/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%ba%92%e6%8f%9b%e6%80%a7%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/</link>
		<comments>http://blog.flam-w.jp/blog/2010/06/27/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%ba%92%e6%8f%9b%e6%80%a7%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 09:37:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=122</guid>
		<description><![CDATA[WoredPressのバージョンアップ時に気をつけなければいけないのが、現在使用しているプラグインが引き続き使えるかどうかをチェックすることです。ただ、バージョンアップの度に使用している全部のプラグインページに行って、い [...]]]></description>
			<content:encoded><![CDATA[<p>WoredPressのバージョンアップ時に気をつけなければいけないのが、現在使用しているプラグインが引き続き使えるかどうかをチェックすることです。ただ、バージョンアップの度に使用している全部のプラグインページに行って、いちいち確認するのは面倒臭いですね。</p>
<p>そこで簡単にチェックできるようにしてくれるのが、使用しているプラグインの対応バージョンを表示してくれる「Better Plugin Compatibility Control」です。<br />
<span id="more-122"></span></p>
<h2>1.ダウンロード・インストール</h2>
<p>下記からプラグインをダウンロードします。<br />
<a class="link" href="http://wordpress.org/extend/plugins/better-plugin-compatibility-control/" target="_blank">http://wordpress.org/extend/plugins/better-plugin-compatibility-control/</a><br />
ダウンロードしたファイルを解凍すると、フォルダがごと<br />
WordPressの「wp-content」→「plugins」ディレクトリにアップロードします。<br />
そして、WordPressにログインして、プラグインを有効化します。<br />
有効化するだけでいいので、難しい設定は一切必要ありません。</p>
<h2>2.互換性をチェック</h2>
<p>管理画面→プラグインへ進むと、各プラグイン名の下に小さく2.5 – 2.8などという文字が表示されていると思いますが、これが対応しているWordPressのバージョンになります。</p>
<p>表示された文字の上にマウスカーソルを乗せると意味が表示されます。<br />
大体の意味はこんな感じです。</p>
<p>・2.5 – 2.8 : プラグイン作成者が定める対応バージョン<br />
・2.0.11 – i2.7 : 現在のバージョンには対応していないプラグイン<br />
・N/A – N/A : ほぼ全てのバージョンで互換性あり<br />
・No readme.txt found : バージョン情報なし（日本人作成プラグインはこの表示が多い）</p>
<p>有効化していないプラグインの対応バージョンも表示されます。対応していないバージョンと表示されていても、実際には普通に稼動する場合がほとんどですが、バージョンアップ版がリリースされているならアップデートした方が無難です。</p>
<p>WordPressのバージョンアップをしたら、大事なプラグインが動かなくなったということが無いよう、このBetter Plugin Compatibility Controlを導入して事前にチェックしてみて下さい。なお、最終的な確認はプラグイン本体のぺージできっちりとチェックをした方が安全です。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/06/27/%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%ba%92%e6%8f%9b%e6%80%a7%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>カテゴリー毎に個別記事のテンプレートを変更する方法</title>
		<link>http://blog.flam-w.jp/blog/2010/06/19/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e6%af%8e%e3%81%ab%e5%80%8b%e5%88%a5%e8%a8%98%e4%ba%8b%e3%81%ae%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99/</link>
		<comments>http://blog.flam-w.jp/blog/2010/06/19/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e6%af%8e%e3%81%ab%e5%80%8b%e5%88%a5%e8%a8%98%e4%ba%8b%e3%81%ae%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 08:17:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[カスタム]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=110</guid>
		<description><![CDATA[WordPressでカテゴリー毎に個別記事のテンプレートを変更する方法をご紹介します。

カテゴリーにはそれぞれにカテゴリーIDが割り振ってあるのでそのカテゴリーIDで条件分岐させます。
下記を参考にsingle.php [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressでカテゴリー毎に個別記事のテンプレートを変更する方法をご紹介します。<br />
<span id="more-110"></span><br />
カテゴリーにはそれぞれにカテゴリーIDが割り振ってあるのでそのカテゴリーIDで条件分岐させます。<br />
下記を参考にsingle.phpを作成して下さい。</p>
<pre class="brush: php;">&lt;?php
$post = $wp_query-&gt;post;

/*カテゴリーIDが6ならsingle-6.phpを読み込む*/
if(in_category('6')){
	include(TEMPLATEPATH . '/single-6.php');

/*カテゴリーIDが6ならsingle-7.phpを読み込む*/
}elseif(in_category('7')){
	include(TEMPLATEPATH . '/single-7.php');

/*カテゴリーIDが6ならsingle-8.phpを読み込む*/
}elseif(in_category('8')){
	include(TEMPLATEPATH . '/single-8.php');

/*カテゴリーIDが6ならsingle-9.phpを読み込む*/
}elseif(in_category('9')){
	include(TEMPLATEPATH . '/single-9.php');

/*カテゴリーIDが上記以外ならsingle-base.phpを読み込む*/
}else{
	include(TEMPLATEPATH .'/single-base.php');
}
?&gt;
</pre>
<p>まず if(in_category(&#8216;カテゴリーID&#8217;)) でどのカテゴリーに属するかを判断し、<br />
indclude(TEMPLATEPATH ,&#8217;/single-○.php&#8217;); で読み込ませます。<br />
この時カテゴリーIDとsingle-○.phpの○の値は同じにしておくと、後で迷わずすみます。</p>
<p>そして最後にどのカテゴリーにも属さない場合は single-base.php（※テンプレート名は任意） を読み込ませます。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/06/19/%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e6%af%8e%e3%81%ab%e5%80%8b%e5%88%a5%e8%a8%98%e4%ba%8b%e3%81%ae%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>moreタグのアンカーリンクを消去できるプラグイン「MoreLink#Remove」</title>
		<link>http://blog.flam-w.jp/blog/2010/06/12/more%e3%82%bf%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%b3%e3%82%ab%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e6%b6%88%e5%8e%bb%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/</link>
		<comments>http://blog.flam-w.jp/blog/2010/06/12/more%e3%82%bf%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%b3%e3%82%ab%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e6%b6%88%e5%8e%bb%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 07:42:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=98</guid>
		<description><![CDATA[WordPressでmoreタグを使用すると標準ではリンク先が、下記のようになりページの途中部分に遷移することになります。
&#60;a href="http://blog.flam-w.jp/123#more-123"&#038; [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressでmoreタグを使用すると標準ではリンク先が、下記のようになりページの途中部分に遷移することになります。</p>
<pre class="brush: html;">&lt;a href="http://blog.flam-w.jp/123#more-123"&gt;続きを読む&lt;/a&gt;</pre>
<p>アンカーリンクを使用したくない場合はこのプラグインをインストールすると簡単に削除することができます。<br />
コアファイルもいじっていないので、WordPressのアップグレードも容易にできます。<br />
下記のサイトからプラグインをダウンロードしご利用下さい。</p>
<h2>プラグインの制作者・参考サイト</h2>
<p><a href="http://debeso.com/blog/2008/12/wordpress/morelinksharpremove/" target="_blank" class="link">WordPress のmoreタグを変更するプラグイン</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/06/12/more%e3%82%bf%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%b3%e3%82%ab%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e6%b6%88%e5%8e%bb%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>カテゴリーページで記事をアルファベット順・50音順でソートする方法</title>
		<link>http://blog.flam-w.jp/blog/2010/06/05/%e8%a8%98%e4%ba%8b%e3%82%92%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%83%99%e3%83%83%e3%83%88%e9%a0%86%e3%83%bb50%e9%9f%b3%e9%a0%86%e3%81%a7%e3%82%bd%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.flam-w.jp/blog/2010/06/05/%e8%a8%98%e4%ba%8b%e3%82%92%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%83%99%e3%83%83%e3%83%88%e9%a0%86%e3%83%bb50%e9%9f%b3%e9%a0%86%e3%81%a7%e3%82%bd%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 04:51:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[カスタム]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=78</guid>
		<description><![CDATA[WordPressは標準ですと投稿日時が新しい順でソートされます。
そこでアルファベット順・50音順でソートする方法をご紹介いたします。

WordPress の機能として、ページを表示させるときの URL に orde [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressは標準ですと投稿日時が新しい順でソートされます。<br />
そこでアルファベット順・50音順でソートする方法をご紹介いたします。<br />
<span id="more-78"></span><br />
WordPress の機能として、ページを表示させるときの URL に orderby=title&amp;oder=asc と付けると所望の動作になります。これを常に実現させるためには posts_orderby フィルターを利用します。<br />
利用しているテーマの functions.php もしくは my-hacks.php に以下のコードを追加してください。<br />
※ functions.php や my-hacks.php がなければ、 で囲んで新規ファイルとして作成して下さい</p>
<p>特定のカテゴリーだけ対象にするならば、is_category() のかっこの中に対象とするカテゴリーの ID を入れれば OK です。</p>
<pre class="brush: php;">function wp_order_by_title($orderby) {
	if (is_category()) {
		global $wpdb;
		$orderby = "$wpdb-&gt;posts.post_title ASC";
	}
	return $orderby;
}
add_filter('posts_orderby', 'wp_order_by_title');</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/06/05/%e8%a8%98%e4%ba%8b%e3%82%92%e3%82%a2%e3%83%ab%e3%83%95%e3%82%a1%e3%83%99%e3%83%83%e3%83%88%e9%a0%86%e3%83%bb50%e9%9f%b3%e9%a0%86%e3%81%a7%e3%82%bd%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>任意のカーテゴリーのアーカイブリストを作成できるプラグイン「Archives for a category」</title>
		<link>http://blog.flam-w.jp/blog/2010/05/27/%e4%bb%bb%e6%84%8f%e3%81%ae%e3%82%ab%e3%83%bc%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%81%ae%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90%e3%81%a7/</link>
		<comments>http://blog.flam-w.jp/blog/2010/05/27/%e4%bb%bb%e6%84%8f%e3%81%ae%e3%82%ab%e3%83%bc%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%81%ae%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90%e3%81%a7/#comments</comments>
		<pubDate>Thu, 27 May 2010 03:42:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=52</guid>
		<description><![CDATA[アーカイブリストを表示するテンプレートタグ「wp_get_archives」にはカテゴリーを指定する引数がありません。そこで「Archives for a category」を使用して表示するカテゴリーを指定します。

 [...]]]></description>
			<content:encoded><![CDATA[<p>アーカイブリストを表示するテンプレートタグ「wp_get_archives」にはカテゴリーを指定する引数がありません。そこで「Archives for a category」を使用して表示するカテゴリーを指定します。<br />
<span id="more-52"></span></p>
<h2>1.ダウンロード・インストール</h2>
<p>下記からプラグインをダウンロードします。<br />
<a class="link" href="http://kwebble.com/blog/2007_08_15/archives_for_a_category" target="_blank">http://kwebble.com/blog/2007_08_15/archives_for_a_category</a><br />
ダウンロードしたファイルを解凍し、「kwebble_archives_by_cat」というフォルダができます。<br />
このフォルダを、WordPressの「wp-content」→「plugins」ディレクトリにアップロードします。<br />
そして、WordPressにログインして、プラグインを有効化します。</p>
<h2>2.テンプレートの「wp_get_archives」を編集する</h2>
<p>下記のように使用することで、wp_get_archivesがもつ通常のパラメーターにcatが追加できるようになります。</p>
<pre class="brush: php;">/*デフォルトの月別アーカイブでカテゴリーIDの1を指定*/
&lt;?php wp_get_archives('cat=1'); ?&gt;

/*カテゴリーIDの1と3を指定*/
&lt;?php wp_get_archives('cat=1,3'); ?&gt;

/*カテゴリーIDの2のみを除く*/
&lt;?php wp_get_archives('cat=-2'); ?&gt;

/*カテゴリーIDの2と8を除く*/
&lt;?php wp_get_archives('cat=-2,-8'); ?&gt;

/*ドロップダウンでカテゴリーIDの1を表示*/
&lt;?php wp_get_archives('format=option&amp;cat=1'); ?&gt;

/*年別でカテゴリーIDの1を表示*/
&lt;?php wp_get_archives('type=yearly&amp;cat=1'); ?&gt;</pre>
<h2>プラグイン制作者のサイト</h2>
<p><a class="link" href="http://kwebble.com/blog/2007_08_15/archives_for_a_category" target="_blank">http://kwebble.com/blog/2007_08_15/archives_for_a_category</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/05/27/%e4%bb%bb%e6%84%8f%e3%81%ae%e3%82%ab%e3%83%bc%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e3%81%ae%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e4%bd%9c%e6%88%90%e3%81%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>カスタムフィールドのHTMLが記事に挿入可能になるプラグイン「InsertMetaShortCode」</title>
		<link>http://blog.flam-w.jp/blog/2010/05/20/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%aehtml%e3%82%92%e8%a8%98%e4%ba%8b%e3%81%ab%e6%8c%bf%e5%85%a5%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0/</link>
		<comments>http://blog.flam-w.jp/blog/2010/05/20/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%aehtml%e3%82%92%e8%a8%98%e4%ba%8b%e3%81%ab%e6%8c%bf%e5%85%a5%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0/#comments</comments>
		<pubDate>Thu, 20 May 2010 06:57:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://blog.flam-w.jp/?p=32</guid>
		<description><![CDATA[WordPressの管理画面からJavaScriptやFlashのタグを記述してもautop機能で自動変換されます。
それを回避する為にカスタムフィールドを利用して、JavaScriptやFlashのタグを挿入可能にする [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressの管理画面からJavaScriptやFlashのタグを記述してもautop機能で自動変換されます。<br />
それを回避する為にカスタムフィールドを利用して、JavaScriptやFlashのタグを挿入可能にするプラグインです。<br />
<span id="more-32"></span></p>
<h2>1.ダウンロード・インストール</h2>
<p>下記からプラグインをダウンロードします。<br />
<a class="link" href="http://www.h-fj.com/wp_plugin/InsertMetaShortCode_1_00.zip">InsertMetaShortCode_1_00.zip</a></p>
<p>ダウンロードしたファイルを解凍すると、「InsertMetaShortCode」というフォルダができます。<br />
このフォルダを、WordPressの「wp-content」→「plugins」ディレクトリにアップロードします。<br />
そして、WordPressにログインして、プラグインを有効化します。</p>
<h2>2.カスタムフィールドの値を記事に挿入する</h2>
<p>このプラグインを追加すると、「insert_meta」というショートコードが追加されます。<br />
記事の中に以下のようなショートコードを入れると、その部分がカスタムフィールドの値に置き換えられて出力されます。</p>
<p>[insert_meta key="カスタムフィールドのキー名"]</p>
<p>例えば、記事に「foo」というキーのカスタムフィールドを作ってあるとします。<br />
この場合、記事の中に以下のショートコードを入れると、その部分で「foo」カスタムフィールドの値に置き換えられて出力されます。</p>
<p>[insert_meta key="foo"]</p>
<p>また、カスタムフィールドの値は、autopの処理が終わった後に挿入されます。<br />
そのため、autopの影響を受けず、カスタムフィールドに入力した通りの値を出力することができます。</p>
<h2>プラグインの制作者・参考サイト</h2>
<p><a class="link" href="http://www.h-fj.com/blog/archives/2009/02/10-095426.php" target="_blank">カスタムフィールドのHTMLを記事に挿入するプラグイン・ショートコード版</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flam-w.jp/blog/2010/05/20/%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%83%89%e3%81%aehtml%e3%82%92%e8%a8%98%e4%ba%8b%e3%81%ab%e6%8c%bf%e5%85%a5%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

