<?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>lab.琉結 &#187; WordPress</title>
	<atom:link href="http://lab.ryu-yui.com/archives/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://lab.ryu-yui.com</link>
	<description>昨日より今日、今日より明日の一歩</description>
	<lastBuildDate>Fri, 30 Jul 2010 08:50:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/category/wordpress/feed" />
		<item>
		<title>WordPress 記事一覧で class に odd とeven</title>
		<link>http://lab.ryu-yui.com/archives/122.html</link>
		<comments>http://lab.ryu-yui.com/archives/122.html#comments</comments>
		<pubDate>Fri, 14 May 2010 03:47:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=122</guid>
		<description><![CDATA[				久しぶりの投稿！
				件名について、前にも同じようなことをしたような…
				忘れちゃってて少し苦労したのでメモ。
				もっと簡単な方法があったような気がするので、こんなすれば簡単だよっていう方コメント [...]]]></description>
			<content:encoded><![CDATA[				<p>久しぶりの投稿！<br />
				件名について、前にも同じようなことをしたような…</p>
				<p>忘れちゃってて少し苦労したのでメモ。<br />
				もっと簡単な方法があったような気がするので、こんなすれば簡単だよっていう方コメント下さい。</p>
				<p>件名にもある通り、WordPressのアーカイブページでそれぞれの記事をくくっているdivのclassへ<br />
				奇数の記事なら odd<br />
				偶数の記事ならeven</p>
				<p>を追加したい。</p>
				<p><a href="http://www.o-theme.com/features/easy-odd-or-even-class/" target="_blank">http://www.o-theme.com/features/easy-odd-or-even-class/</a></p>
				<p>上記の記事を参考に作業すると問題なくできました。</p>
				<p>1. 下記のコードループ内のdivに追加<br />
				<code>&lt;?php echo $odd_or_even; $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?&gt;</code><br />
				追加すると感じ↓<br />
				<code>&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
				&lt;div class="posts &lt;?php echo $odd_or_even; $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?&gt;"&gt;</code></p>
				<p>2. function.phpへコード追加<br />
				使用中テンプレートディレクトリーのfunction.phpへ下記のコード追加<br />
				<code>$odd_or_even = 'odd';</code></p>
				<p>これで問題なくOK！<br />
				その他、簡単な方法など分かる方はコメントでご教授下さい。m(_ _)m</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/122.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/122.html" />
	</item>
		<item>
		<title>WordPress 　メール　スパム防止関数があるみたい</title>
		<link>http://lab.ryu-yui.com/archives/107.html</link>
		<comments>http://lab.ryu-yui.com/archives/107.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 02:33:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=107</guid>
		<description><![CDATA[				よく忘れるのでメモ。
				WordPressでget_the_author_email() 関数でメールを表示することがありますが、普通にメールを公開すると確実にスパムの餌食になります。調べてみると、Word [...]]]></description>
			<content:encoded><![CDATA[				<p>よく忘れるのでメモ。<br />
				WordPressでget_the_author_email() 関数でメールを表示することがありますが、普通にメールを公開すると確実にスパムの餌食になります。調べてみると、WordPressの標準でスパム防止の関数が用意されてるみたい。</p>
				<p>php antispambot()</p>
				<p>使い方としてはこんな感じ。</p>
				<blockquote><p>
				&lt;?php echo antispambot(get_the_author_email()); ?&gt;
				</p></blockquote>
				<p>
				HTML character entityとかなんとかを使用しているらしい。<br />
				ただこれで確実に防止できるわけではなく、最近のスパムロボットはそれも解読できるのもあるらしいです。<br />
				とりあえずないよりはやってた方がいいかな。</p>
				<p>参照↓<br />
				<a href="http://codex.wordpress.org/Protection_From_Harvesters" target="_blank">http://codex.wordpress.org/Protection_From_Harvesters</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/107.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/107.html" />
	</item>
		<item>
		<title>WordPress　管理画面　右枠にセンターがかぶる</title>
		<link>http://lab.ryu-yui.com/archives/84.html</link>
		<comments>http://lab.ryu-yui.com/archives/84.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:44:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-Plugin]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=84</guid>
		<description><![CDATA[				最近のディスプレイはサイズも大きくなっているので自分は気づかなかったのですが、お客さんの指摘があったのでメモ…
				ディスプレイサイズが小さいPCでWordPressの管理画面から投稿しようとすると、右の枠（ [...]]]></description>
			<content:encoded><![CDATA[				<p>最近のディスプレイはサイズも大きくなっているので自分は気づかなかったのですが、お客さんの指摘があったのでメモ…</p>
				<p>ディスプレイサイズが小さいPCでWordPressの管理画面から投稿しようとすると、右の枠（カテゴリーや公開、投稿のタグetc…）がセンターにかぶって、思うように使えない。</p>
				<p>公開、納品後の指摘だったのでかなり焦りましたが、<a href="http://wordpress.org/extend/plugins/tinymce-advanced/">TinyMCE Advanced</a>のプラグインを使って回避する方法があるそうです。ホッ…</p>
				<p><a title="WordPress 管理画面で右エリアがセンターエリアにかぶる" href="http://ja.forums.wordpress.org/topic/1686" target="_blank">http://ja.forums.wordpress.org/topic/1686</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/84.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/84.html" />
	</item>
		<item>
		<title>WordPress ウィジェット機能の利用　Part1</title>
		<link>http://lab.ryu-yui.com/archives/76.html</link>
		<comments>http://lab.ryu-yui.com/archives/76.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:18:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=76</guid>
		<description><![CDATA[				ウィジェット機能で少しメモ
				これまではほとんどウィジェット機能は使用しない仕様で制作していましたが、あると便利と思い少し勉強 しました
				まずウィジェット機能を適用させる基本的。
				sideb [...]]]></description>
			<content:encoded><![CDATA[				<p>ウィジェット機能で少しメモ<br />
				これまではほとんどウィジェット機能は使用しない仕様で制作していましたが、あると便利と思い少し勉強 しました</p>
				<p>まずウィジェット機能を適用させる基本的。</p>
				<p><strong>sidebar.php</strong></p>
				<blockquote><p>&lt;ul id=&#8221;sidebar&#8221;&gt;<br />
				&lt;?php if (!function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar()); ?&gt;<br />
				&lt;li id=&#8221;about&#8221;&gt;<br />
				&lt;h2&gt;About&lt;/h2&gt;<br />
				&lt;p&gt;This is my blog.&lt;/p&gt;<br />
				&lt;/li&gt;<br />
				&lt;li id=&#8221;links&#8221;&gt;<br />
				&lt;h2&gt;Links&lt;/h2&gt;<br />
				&lt;ul&gt;<br />
				&lt;li&gt;&lt;a href=&#8221;http://example.com&#8221;&gt;Example&lt;/a&gt;&lt;/li&gt;<br />
				&lt;/ul&gt;<br />
				&lt;/li&gt;<br />
				&lt;? php endif; ?&gt;<br />
				&lt;/ul&gt;</p></blockquote>
				<p>この2行がポイント</p>
				<blockquote><p>&lt;?php if (!function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar()); ?&gt;</p>
				<p>&lt;? php endif; ?&gt;</p></blockquote>
				<p>利用可能であれば、ウィジェット機能のサイドバーを利用し、なければ通常のサイドバーを表示させている</p>
				<p><strong>functions.php（WordPress2.0以上の場合）</strong></p>
				<blockquote><p>&lt;?php<br />
				if(function_exists(&#8216;register_sidebar&#8217;))<br />
				register_sidebar();<br />
				?&gt;</p></blockquote>
				<p>この4行だそうです。<br />
				これがとりあえずの基本要素。<br />
				さらに実践的なことはPart2に分けてメモしよ〜っと。</p>
				<p>上記のすべての情報は下記から↓<br />
				<a title="WordPress ウィジェット機能について" href="http://wpdocs.sourceforge.jp/Widgetizing_Themes" target="_blank">http://wpdocs.sourceforge.jp/Widgetizing_Themes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/76.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/76.html" />
	</item>
		<item>
		<title>wp_list_pagesのリストにspanを挿入する</title>
		<link>http://lab.ryu-yui.com/archives/61.html</link>
		<comments>http://lab.ryu-yui.com/archives/61.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 12:10:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[テンプレートタグ]]></category>

		<guid isPermaLink="false">http://lab.ryu-yui.com/?p=61</guid>
		<description><![CDATA[				wp_list_pagesで書き出されるリストにspanを挿入したい。
				調べてみるとpluginで挿入も出来るみたいだが、v2.7以降なら下記で簡単にできるみたい。
				&#60;?php wp_lis [...]]]></description>
			<content:encoded><![CDATA[				<p>wp_list_pagesで書き出されるリストにspanを挿入したい。<br />
				調べてみるとpluginで挿入も出来るみたいだが、v2.7以降なら下記で簡単にできるみたい。</p>
				<blockquote><p>&lt;?php wp_list_pages(&#8216;title_li=link_before=&lt;span&gt;&amp;link_after=&lt;/span&gt;&#8217;); ?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://lab.ryu-yui.com/archives/61.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://lab.ryu-yui.com/archives/61.html" />
	</item>
	</channel>
</rss>
