<?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>べたろぐ。 &#187; WordPress</title>
	<atom:link href="http://szdy.info/wp/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://szdy.info/wp</link>
	<description></description>
	<lastBuildDate>Sat, 05 Jun 2010 10:53:56 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/tag/wordpress/feed/" />
		<item>
		<title>wp-tmkm-amazon の Amazon API 認証対応版 + 文法エラー修正</title>
		<link>http://szdy.info/wp/2009/08/25/787/</link>
		<comments>http://szdy.info/wp/2009/08/25/787/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:23:59 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=787</guid>
		<description><![CDATA[				気づかないうちに Amazon の商品情報を表示するプラグイン wp-tmkm-amazon が動かなくなっていたので Amazon の仕様変更に対応された wp-tmkm-amazon をインストールしてみまし [...]]]></description>
			<content:encoded><![CDATA[				<p>気づかないうちに Amazon の商品情報を表示するプラグイン <a href="http://wppluginsj.sourceforge.jp/wp-tmkm-amazon/" title="WordPress Plugins/JSeries &raquo; wp-tmkm-amazon">wp-tmkm-amazon</a> が動かなくなっていたので <a href="http://blog.openmedialabo.net/index.php/wordpress/wp-tmkm-amazon" title="wp-tmkm-amazonプラグイン配布&gt;&gt; OpenMediaLaboratory | Web,Wordpress,サーバ構築,Linux,PHP,iPhoneの話題がメインです。">Amazon の仕様変更に対応された wp-tmkm-amazon</a> をインストールしてみました。あとは気になるところを修正。</p>
				<h3>出力される HTML の文法エラーを修正</h3>
				<p><a href="http://blog.openmedialabo.net/index.php/wordpress/wp-tmkm-amazon" title="wp-tmkm-amazonプラグイン配布&gt;&gt; OpenMediaLaboratory | Web,Wordpress,サーバ構築,Linux,PHP,iPhoneの話題がメインです。">Amazon の仕様変更に対応された wp-tmkm-amazon</a> の Ver1.3 をインストールしてみましたが <core>p</code> タグの閉じ忘れが残ったままなので修正。<strong>修正が必要なのは 626、631 行目の 2 箇所</strong>。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>$output .= &quot;\t&quot; . '&lt;p&gt;&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>'</strong>;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>$output .= &quot;\t&quot; . '&lt;p&gt;&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>&lt;/p&gt;' . &quot;\n&quot;</strong>;</code></pre>
				</dd>
				</dl>
				<h3>その他の修正</h3>
				<p>div 直下にインライン要素を置くのは個人的に気持ち悪いので <strong>517、564、593、618 行目の 4 箇所を下記のように修正</strong>。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>$output .= '&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>'</strong>;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>$output .= <strong>&quot;\t&quot; . '&lt;p&gt;</strong>&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>&lt;/p&gt;' . &quot;\n&quot;</strong>;</code></pre>
				</dd>
				</dl>
				<p>あとは、<a href="http://www.usamimi.info/~mnn/d/?p=10808" title="wp-tmkm-amazonのAmazon API対応 - 更新を怠る日々">wp-tmkm-amazonのAmazon API対応 - 更新を怠る日々</a>を参考にして修正。</p>
				<p>以上でとりあえず完了。無事表示されて良かった良かった。</p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/08/25/787/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/08/25/787/" />
	</item>
		<item>
		<title>WordPress のコメント投稿を Ajax 化し便利にしてくれる Quick Comments</title>
		<link>http://szdy.info/wp/2009/05/11/603/</link>
		<comments>http://szdy.info/wp/2009/05/11/603/#comments</comments>
		<pubDate>Mon, 11 May 2009 09:37:38 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=603</guid>
		<description><![CDATA[				jQuery ベースの Quick Comments を入れてみました。早速動作確認を行ってみるも動作せず。あれれ。原因究明開始。WordPress のプラグインとしてでなくテンプレートに直接組み込んでいる jQ [...]]]></description>
			<content:encoded><![CDATA[				<p>jQuery ベースの <a href="http://wppluginsj.sourceforge.jp/quick-comments/" title="WordPress Plugins/JSeries &raquo; Quick Comments (コメント投稿 Ajax 化)">Quick Comments</a> を入れてみました。早速動作確認を行ってみるも動作せず。あれれ。原因究明開始。WordPress のプラグインとしてでなくテンプレートに直接組み込んでいる <a href="http://leandrovieira.com/projects/jquery/lightbox/" title="jQuery lightBox plugin">jQuery lightBox plugin</a> の記述を削除してみると動く。それならばと <code>head</code> 内の jQuery lightBox plugin と Quick Comments の記述する順番を変えたら無事動くようになりました。いやあ、これは便利便利。</p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/05/11/603/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/05/11/603/" />
	</item>
		<item>
		<title>WordPress でページ番号によるナビゲーションを表示</title>
		<link>http://szdy.info/wp/2009/05/10/598/</link>
		<comments>http://szdy.info/wp/2009/05/10/598/#comments</comments>
		<pubDate>Sun, 10 May 2009 14:16:23 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=598</guid>
		<description><![CDATA[				WP-PageNavi (WP-PageNavi 日本語版) というプラグインを使うと手軽にページ番号によるナビゲーションを表示できる。で、WP-PageNavi のことを記事にしようと思って検索してたら Yur [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://lesterchan.net/portfolio/programming/php/#wp-pagenavi" title="PHP &laquo; Programming &laquo; Portfolio | lesterchan.net">WP-PageNavi</a> (<a href="http://wp.mmrt-jp.net/plugin-japanization-project/wp-pagenavi/" title="WP-PageNavi 日本語版 - MMRT daily life">WP-PageNavi 日本語版</a>) というプラグインを使うと手軽にページ番号によるナビゲーションを表示できる。で、WP-PageNavi のことを記事にしようと思って検索してたら <a href="http://www.yuriko.net/arc/2008/08/06/navigation-2/" title="Yuriko.Net &raquo; WP-PageNavi を使わずにナビゲーション表示 (改良版)">Yuriko.Net &raquo; WP-PageNavi を使わずにナビゲーション表示 (改良版)</a>という記事を発見。プラグインを使うことなく WordPress のテンプレートタグでできるならそっちの方がいいかなってことで早速利用させてもらうことに。そしてさらに関数化してる記事を発見。</p>
				<ul>
				<li><a href="http://gurizuri0505.halfmoon.jp/20080807/2431" title="吟遊詩人の戯言  &raquo; ページナビゲーション機能を改版してみたり">吟遊詩人の戯言  &raquo; ページナビゲーション機能を改版してみたり</a></li>
				<li><a href="http://az-store.nrym.org/note/2008/09/12/34#no34-page-navigation" title="WordPressのカスタマイズメモ - AZ note">WP-PageNaviを使わずナビゲーション表示 &#8211; AZ note</a></li>
				</ul>
				<p>喜び勇んで作業開始。さくっと完了。ありがたいっすね。</p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/05/10/598/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/05/10/598/" />
	</item>
		<item>
		<title>WordPress のサイドバーに記事で使った画像をランダムに表示</title>
		<link>http://szdy.info/wp/2009/05/06/525/</link>
		<comments>http://szdy.info/wp/2009/05/06/525/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:34:56 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=525</guid>
		<description><![CDATA[				ちょっと古いプラグインのようですが、サイドバーとか好きな場所に、記事で使った画像をランダムに表示させることができる Random Image Plugin for WordPress を入れてみました。 Word [...]]]></description>
			<content:encoded><![CDATA[				<p>ちょっと古いプラグインのようですが、サイドバーとか好きな場所に、記事で使った画像をランダムに表示させることができる <a href="http://justinsomnia.org/2005/09/random-image-plugin-for-wordpress/" title="Random Image Plugin for WordPress - Justinsomnia">Random Image Plugin for WordPress</a> を入れてみました。 WordPress 2.7.1 でも動くようです。</p>
				<p>とてもシンプルに、記事へのリンクを貼った画像を表示するように設定。そして、リンク先の記事名を <code>title</code> 属性で明示すべく randomimage.php の 594 行目をちょこっと修正。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>      $image_html = str_replace(&quot;%2&quot;, &quot;&lt;a href='$post_permalink'&gt;&lt;img src='$image_src' alt='$image_alt' $image_attributes /&gt;&lt;/a&gt;&quot;, $image_html);</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>      $image_html = str_replace(&quot;%2&quot;, &quot;&lt;a href='$post_permalink'<strong> title='$post_title'</strong>&gt;&lt;img src='$image_src' alt='$image_alt' $image_attributes /&gt;&lt;/a&gt;&quot;, $image_html);
</code></pre>
				</dd>
				</dl>
				<p>あとは、埋め込みたいとこに <code>&lt;?php randomimage(); ?&gt;</code> と書いて、適当にスタイルシートをでっちあげて完成。うちの例だと以下のような感じ。</p>
				<dl>
				<dt>Random Image の設定</dt>
				<dd>
				<p>HTML Template のとこを <code>&lt;li&gt;%2&lt;/li&gt;</code> に。</p>
				<div class="image"><a href="http://szdy.info/wp/wp-content/uploads/2009/05/random_image_settings.jpg"><img src="http://szdy.info/wp/wp-content/uploads/2009/05/random_image_settings-550x378.jpg" alt="random_image_settings" title="random_image_settings" width="550" height="378" class="alignnone size-medium wp-image-581" /></a></div>
				</dd>
				<dt>ランダムイメージを埋め込む &#8211; sidebar.php</dt>
				<dd>
				<pre><code>     &lt;dl class=&quot;navi&quot;&gt;
<!--pre-->&lt;!-- 中略 --&gt;
<!--pre-->        &lt;dt&gt;Random Images&lt;/dt&gt;
<!--pre-->        &lt;dd&gt;
<!--pre-->            &lt;ul class=&quot;randomImages&quot;&gt;
<!--pre--><strong>&lt;?php randomimage(); ?&gt;</strong>
<!--pre-->            &lt;/ul&gt;
<!--pre-->            &lt;br class=&quot;clear&quot; /&gt;
<!--pre-->        &lt;/dd&gt;
<!--pre-->&lt;!-- 中略 --&gt;
<!--pre-->     &lt;/dl&gt;</code></pre>
				</dd>
				<dt>ランダムイメージにあてるスタイルシート</dt>
				<dd>
				<pre><code>/* safari, IEでの余白消し */
<!--pre-->div#utilities dl dd ul.randomImages li a img {
<!--pre-->    line-height: 0;
<!--pre-->    vertical-align: bottom;
<!--pre-->}
<!--pre-->
<!--pre-->/* ランダムイメージ */
<!--pre-->div#utilities dl dd ul.randomImages {
<!--pre-->    float: left;
<!--pre-->    width: 100%;
<!--pre-->    margin: 0;
<!--pre-->    padding: 0;
<!--pre-->    list-style: none;
<!--pre-->    background-color: #eee;
<!--pre-->}
<!--pre-->div#utilities dl dd ul.randomImages li {
<!--pre-->    float: left;
<!--pre-->    width: auto;
<!--pre-->    margin: 0;
<!--pre-->    padding: 0;
<!--pre-->}
<!--pre-->div#utilities dl dd ul.randomImages li a {
<!--pre-->}
<!--pre-->div#utilities dl dd ul.randomImages li img {
<!--pre-->    display: block;
<!--pre-->    width: 75px;
<!--pre-->    height: 75px;
<!--pre-->    border: 2px solid #eee;
<!--pre-->}
<!--pre-->div#utilities dl dd ul.randomImages li a:hover img {
<!--pre-->    border: 2px solid #ff0000;
<!--pre-->}
<!--pre-->div#utilities dl dd br.clear {
<!--pre-->    clear: both;
<!--pre-->}</code></pre>
				</dd>
				</dl>
				<p>という感じでした。</p>
				<dl>
				<dt>参考リソース</dt>
				<dd>
				<ul>
				<li><a href="http://www.meblog.info/93.html" title="記事の画像をサイドバーなどにランダム表示するプラグイン[WP] - ミblog : レビューや日常など">記事の画像をサイドバーなどにランダム表示するプラグイン[WP] &#8211; ミblog : レビューや日常など</a></li>
				</ul>
				</dd>
				</dl>
				<p><ins datetime="2009-05-08T01:52:30+09:00">CSS を加筆修正。</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/05/06/525/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/05/06/525/" />
	</item>
		<item>
		<title>WordPress で Amazon の商品情報を表示するプラグイン wp-tmkm-amazon + α</title>
		<link>http://szdy.info/wp/2009/05/05/481/</link>
		<comments>http://szdy.info/wp/2009/05/05/481/#comments</comments>
		<pubDate>Tue, 05 May 2009 13:14:34 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=481</guid>
		<description><![CDATA[				Amazon の仕様変更によりこの記事は参考になりません。Amazon の仕様変更対応版については以下の記事をご覧ください。
				
				wp-tmkm-amazon の Amazon API 認証対応版  [...]]]></description>
			<content:encoded><![CDATA[				<p><ins datetime="2009-08-25T17:34:40+00:00"><strong>Amazon の仕様変更によりこの記事は参考になりません。Amazon の仕様変更対応版については以下の記事をご覧ください。</strong></ins></p>
				<ul>
				<li><a href="http://szdy.info/wp/2009/08/25/787/" title="wp-tmkm-amazon の Amazon API 認証対応版 + 文法エラー修正 - べたろぐ。">wp-tmkm-amazon の Amazon API 認証対応版 + 文法エラー修正</a></li>
				</ul>
				<p><a href="http://www.amazon.co.jp/" title="Amazon.co.jp： 通販 - ファッション、家電から食品まで">Amazon</a> から商品情報をひっぱってこようと思って <a href="http://tomokame.moo.jp/archives/622" title="ともかめ亭 &raquo; WordPress Plugin Release : wp-tmkm-amazon">wp-tmkm-amazon</a> というプラグインを入れてみました。ダウンロードは <a href="http://wppluginsj.sourceforge.jp/wp-tmkm-amazon/" title="WordPress Plugins/JSeries &raquo; wp-tmkm-amazon">WordPress Plugins/JSeries &raquo; wp-tmkm-amazon</a> 。</p>
				<p>そして、出力される <abbr title="Extensible HyperText Markup Language">XHTML</abbr> のソースが invalid だったのでちょっと修正。</p>
				<p>1つ目、 wp-tmkm-amazon.php の 588 行目。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>$output .= &quot;\t&quot; . '&lt;p&gt;&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>'</strong>;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>$output .= &quot;\t&quot; . '&lt;p&gt;&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>&lt;/p&gt;' . &quot;\n&quot;</strong>;</code></pre>
				</dd>
				</dl>
				<p>2つ目、 wp-tmkm-amazon.php の 593 行目。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>$output .= &quot;\t&quot; . '&lt;p&gt;&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>'</strong>;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>$output .= &quot;\t&quot; . '&lt;p&gt;&lt;a href=&quot;'.$url.'&quot;' . $windowtarget . '&gt;' . $Title . '&lt;/a&gt;<strong>&lt;/p&gt;' . &quot;\n&quot;</strong>;</code></pre>
				</dd>
				</dl>
				<p>修正は以上の 2 カ所。</p>
				<p>あと、個人的な趣味で <code>border=&quot;0&quot;</code> を削除したり、 <code>alt=&quot;&quot;</code> を <code>alt=&quot;' . $Title . '&quot;</code> に書き換えたりもしました。そもそも <code>p</code> じゃなくて <code>dl</code> でマークアップする方が妥当かなとも思ったけどそれは保留で。</p>
				<p>そしてさらに <a href="http://www.usamimi.info/~mnn/d/?p=10389" title="wp-tmkm-amazonにAmazonの販売価格を表示するその2 - 更新を怠る日々">wp-tmkm-amazon に Amazon の販売価格を表示する</a>パッチもあててみました。感謝感謝。</p>
				<p>下のは、現在、うちに対する Amazon からのおすすめ商品の 1 番目。</p>
				<div class="tmkm-amazon-view">
					<p><a href="http://www.amazon.co.jp/Space-Sonic-ELLEGARDEN/dp/B000C0XOUQ%3FSubscriptionId%3DAKIAID5QECVT36X5RLPQ%26tag%3Dszdy-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000C0XOUQ"><img src="http://ecx.images-amazon.com/images/I/519H1394S2L._SL75_.jpg" border="0" alt="" /></a></p>
					<p><a href="http://www.amazon.co.jp/Space-Sonic-ELLEGARDEN/dp/B000C0XOUQ%3FSubscriptionId%3DAKIAID5QECVT36X5RLPQ%26tag%3Dszdy-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000C0XOUQ">Space Sonic</a> / ELLEGARDEN / CD ( Music )</p>
					<p>インディペンデントレーベル( 2005-12-07 )</p>
					<p><em>定価：</em>￥ 1,260 ( 中古価格 ￥ 1 より )</p>
				<hr class="tmkm-amazon-clear" /></div>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/05/05/481/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/05/05/481/" />
	</item>
		<item>
		<title>wp.Vicuna のサイドバーの最新記事に投稿日を表示</title>
		<link>http://szdy.info/wp/2009/04/29/387/</link>
		<comments>http://szdy.info/wp/2009/04/29/387/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 01:24:17 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[Vicuna CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=387</guid>
		<description><![CDATA[				WordPress のテーマである wp.Vicuna で、サイドバーの最新記事一覧 (Recent Entries) に投稿日を表示させる。どのテーマでもいけるんですけどね。
				sidebar.php の [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://ja.wordpress.org/" title="WordPress | 日本語">WordPress</a> のテーマである <a href="http://wp.vicuna.jp/" title="Vicuna - WordPress テーマ">wp.Vicuna</a> で、サイドバーの最新記事一覧 (Recent Entries) に投稿日を表示させる。どのテーマでもいけるんですけどね。</p>
				<p>sidebar.php の 16 行目辺り。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>&lt;?php wp_get_archives('type=postbypost&amp;limit=10'); ?&gt;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>&lt;?php
<!--pre-->$lastposts = get_posts('numberposts=10&amp;orderby=post_date');
<!--pre-->
<!--pre-->foreach($lastposts as $post) :
<!--pre-->    setup_postdata($post);
<!--pre-->    ?&gt;
<!--pre-->                &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt; (<strong>&lt;?php the_time('Y-m-d'); ?&gt;</strong>)&lt;/li&gt;
<!--pre-->&lt;?php endforeach; ?&gt;</code></pre>
				</dd>
				</dl>
				<p>以上で完了。</p>
				<p><code>the_date</code> ではなく <code>the_time</code> であることに注意。<code>the_date</code> だと<q cite="http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0#Date_and_Time_tags" title="テンプレートタグ - WordPress Codex 日本語版 -  日時タグ">1ページに同一投稿日の記事があれば、その<strong>最初の記事にのみ表示</strong></q>されて、後に続く記事には表示されない。</p>
				<p>投稿日の書式を変えたい場合は <code>the_time('Y-m-d');</code> の部分を書き換えると良い。その際は、 <a href="http://jp2.php.net/manual/ja/function.date.php" title="PHP: date - Manual">PHP の日付/時刻の書式</a>が参考になる。あと、うちが使うとしたら <code>&lt;span class=&quot;date&quot;&gt;(&lt;?php the_time('Y-m-d'); ?&gt;)&lt;/span&gt;</code> のように <code>span</code> で括ってやるかな。</p>
				<dl>
				<dt>参考リソース</dt>
				<dd>
				<ul>
				<li><a href="http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0/get_posts" title="テンプレートタグ/get posts - WordPress Codex 日本語版">テンプレートタグ/get posts &#8211; WordPress Codex 日本語版</a></li>
				<li><a href="http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0/the_time" title="テンプレートタグ/the time - WordPress Codex 日本語版">テンプレートタグ/the time &#8211; WordPress Codex 日本語版</a></li>
				<li><a href="http://jp2.php.net/manual/ja/function.date.php" title="PHP: date - Manual">PHP の日付/時刻の書式</a></li>
				</ul>
				</dd>
				</dl>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/04/29/387/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/04/29/387/" />
	</item>
		<item>
		<title>wp.Vicuna のサイドバーのカテゴリーとアーカイブに記事数を表示</title>
		<link>http://szdy.info/wp/2009/04/28/342/</link>
		<comments>http://szdy.info/wp/2009/04/28/342/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 03:27:39 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[Vicuna CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=342</guid>
		<description><![CDATA[				ここの WordPress では wp.Vicuna を使わせてもらってますが、サイドバーのカテゴリーと月毎アーカイブの項目に記事数を表示するように書き換えてみた。
				カテゴリー一覧 (Categories [...]]]></description>
			<content:encoded><![CDATA[				<p>ここの WordPress では <a href="http://wp.vicuna.jp/" title="Vicuna - WordPress テーマ">wp.Vicuna</a> を使わせてもらってますが、サイドバーのカテゴリーと月毎アーカイブの項目に記事数を表示するように書き換えてみた。</p>
				<h3>カテゴリー一覧 (Categories)</h3>
				<p>カテゴリー一覧のとこでは<a href="http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0/wp_list_cats" title="テンプレートタグ/wp list cats - WordPress Codex 日本語版">現在非推奨のテンプレートタグ</a>が使われているようなのでそれもかねて修正。sidebar.php の 22 行目辺りにある下記の部分。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>&lt;?php wp_list_cats ('sort_column=name&amp;optioncount=0&amp;hierarchical=1'); ?&gt;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>&lt;?php wp_list_categories('show_count=1&amp;title_li='); ?&gt;</code></pre>
				</dd>
				</dl>
				<h3>アーカイブ一覧 (Archives)</h3>
				<p>sidebar.php の 29 行目辺り。</p>
				<dl>
				<dt>書き換え前</dt>
				<dd>
				<pre><code>&lt;?php vicuna_archives_link(); ?&gt;</code></pre>
</dd>
<dt>書き換え後</dt>
<dd>
<pre><code>&lt;?php wp_get_archives('type=monthly&amp;show_post_count=1'); ?&gt;</code></pre>
				</dd>
				</dl>
				<p>以上で完了。</p>
				<p>記事数のとこ、<code>&lt;span class=&quot;count&quot;&gt;(17)&lt;/span&gt;</code> のように <code>span</code> で括ってくれると有り難かったりすんだよなあ。</p>
				<dl>
				<dt>参考リソース</dt>
				<dd>
				<ul>
				<li><a href="http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0/wp_get_archives" title="テンプレートタグ/wp get archives - WordPress Codex 日本語版">テンプレートタグ/wp get archives &#8211; WordPress Codex 日本語版</a></li>
				<li><a href="http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E3%82%BF%E3%82%B0/wp_list_categories" title="テンプレートタグ/wp list categories - WordPress Codex 日本語版">テンプレートタグ/wp list categories &#8211; WordPress Codex 日本語版</a></li>
				</ul>
				</dd>
				</dl>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/04/28/342/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/04/28/342/" />
	</item>
		<item>
		<title>Seesaa BLOG から引っ越し</title>
		<link>http://szdy.info/wp/2009/04/26/184/</link>
		<comments>http://szdy.info/wp/2009/04/26/184/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 12:45:59 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Seesaa BLOG]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=184</guid>
		<description><![CDATA[				Seesaa ブログの旧べたろぐ。からこの WordPress にログを移しました。
]]></description>
			<content:encoded><![CDATA[				<p><a href="http://blog.seesaa.jp/" title="Seesaa ブログ - 無料のブログ作成(blog)サービス">Seesaa ブログ</a>の<a href="http://seize-a-day.seesaa.net/" title="旧べたろぐ。">旧べたろぐ。</a>からこの WordPress にログを移しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/04/26/184/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/04/26/184/" />
	</item>
		<item>
		<title>ドメイン名を取得してはみたものの</title>
		<link>http://szdy.info/wp/2009/04/20/4/</link>
		<comments>http://szdy.info/wp/2009/04/20/4/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 03:32:44 +0000</pubDate>
		<dc:creator>beta</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=4</guid>
		<description><![CDATA[				イライラしていてついやっちゃいました。ドメイン名取得。
				テスト前日とかありませんでした？普段全然やらないのに、やる必要もないのにやたら掃除を頑張っちゃったりして。
				アレです。現実逃避。
				だ [...]]]></description>
			<content:encoded><![CDATA[				<p>イライラしていてついやっちゃいました。ドメイン名取得。</p>
				<p>テスト前日とかありませんでした？普段全然やらないのに、やる必要もないのにやたら掃除を頑張っちゃったりして。</p>
				<p>アレです。現実逃避。</p>
				<p>だって年間 950 円なんですもの。</p>
				<p>実は、このドメイン名の前に違うドメイン名を取っていたんですが、それはちょっと恥ずかしい感じで後悔してます。</p>
				<p>そんな感じでとりあえず <a href="http://ja.wordpress.org/" title="WordPress | 日本語">WordPress</a> を設置してみました。</p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/04/20/4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/04/20/4/" />
	</item>
		<item>
		<title>seesaa.Vicuna</title>
		<link>http://szdy.info/wp/2009/04/03/52/</link>
		<comments>http://szdy.info/wp/2009/04/03/52/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 00:51:57 +0000</pubDate>
		<dc:creator>seesaa</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Seesaa BLOG]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[Vicuna CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://szdy.info/wp/?p=52</guid>
		<description><![CDATA[				
				WordPress を使う機会があって、その時に Vicuna &#8211; CMS をベースにしながらテンプレートを作成しました。そんなこともあってこの Vicuna &#8211; CMS を S [...]]]></description>
			<content:encoded><![CDATA[				<div class="thumb"><a href="http://szdy.info/wp/wp-content/uploads/2009/04/screen-capture-4.png" title="seesaa.Vicuna - style-vega"><img src="http://szdy.info/wp/wp-content/uploads/2009/04/screen-capture-4-150x150.png" alt="seesaa.Vicuna - style-vega" title="seesaa.Vicuna - style-vega" width="150" height="150" class="alignright size-thumbnail wp-image-186" /></a></div>
				<p><a href="http://ja.wordpress.org/" title="WordPress | 日本語">WordPress</a> を使う機会があって、その時に <a href="http://vicuna.jp/" title="Vicuna - CMS">Vicuna &#8211; CMS</a> をベースにしながらテンプレートを作成しました。そんなこともあってこの Vicuna &#8211; CMS を Seesaa BLOG でも使えないものかと思い立ち、移植してみました。Seesaa 独自のテンプレートタグの情報が少なすぎて悪戦苦闘しつつもなんとか形になったようです。</p>
				<h3>ページごとのレイアウト変更</h3>
				<p>オリジナルの Vicuna CMS と同じように、開くページによって <code>body</code> の<code>class</code> 属性を変えることによってレイアウトが切り替わるようになっています。例えば、<a href="http://seize-a-day.seesaa.net/" title="べたろぐ。">トップページ</a>と<a href="http://seize-a-day.seesaa.net/pages/user/search/?keyword=mac&amp;vs=http%3A%2F%2Fseize-a-day.seesaa.net%2F&amp;fr=sb-sesa&amp;ei=Shift_JIS" title="べたろぐ。 - 検索結果: mac">ブログ内記事検索結果</a>を見比べるとレイアウトが違うのがわかると思います。</p>
				<h3>パンくずナビとページャー</h3>
				<p>とりあえずな感じのパンくずナビを追加。次のページへのようなナビゲーションは Vicuna CMS 方式に。</p>
				<h3>コンテンツについては使うものだけ</h3>
				<p>サイドバー等に表示されるコンテンツに関しても使う物は修正。検索フォームとかなにげに面倒くさかった。カレンダーは個人的に必要ないと思っているので放置。それにしても Seesaa BLOG の Powered by なんちゃらはどうにかならんのかな。必ず表示しなければいけないにも関わらずソースが糞すぎる。そして修正できないというジレンマ。</p>
				<h3>なるべく日本語で</h3>
				<p>やっぱ日本人なので。でも、ところどころ英語のまま。</p>
				<h3>とりあえずファイル置いときます</h3>
				<dl>
				<dt>テンプレート</dt>
				<dd>
				<ul>
				<li><a href="http://seize-a-day.up.seesaa.net/txt/html.txt">Seesaa.Vicuna &#8211; HTML</a></li>
				<li><a href="http://seize-a-day.up.seesaa.net/txt/entry.txt">Seesaa.Vicuna &#8211; 記事</a></li>
				<li><a href="http://seize-a-day.up.seesaa.net/txt/contents.txt">Seesaa.Vicuna &#8211; コンテンツ</a></li>
				</ul>
				</dd>
				</dl>
				<p>スキンは適当なところにアップロードして、デザインのスタイルシートに以下のようなソースを書いてスキンを読み込む。</p>
				<pre><code>@charset "Shift_JIS";
/*
Theme Name: wp.Vicuna
Theme URI: http://wp.vicuna.jp/
Description: <a href="http://en.wp.vicuna.jp">wp.Vicuna</a> Structure Template + <a href="http://en.wp.vicuna.jp/skin/">Skin</a>
Version: 1.5.9
Author: wu
*/
@import url("http://<em>hogefuga</em>/<em>スキン名(style-vegaなど)</em>/import.css");</code></pre>
				<p>なお、元にするデザインはデザイン一覧から 3 カラムレイアウトのものを適当に選ぶと幸せになれます。左のサイドバーに置いたコンテンツは <code>div id="utilities"</code> 内 <code>dl class="navi"</code> の中へ格納され、右のサイドバーに置いたコンテンツは <code>div id="utilities"</code> 内 <code>dl class="others"</code> の中に格納されます。え？言ってる意味がわからない？すいません。</p>
				<h3>ライセンスとか</h3>
				<p>オリジナルの <a href="http://mt.vicuna.jp/about/#section01" title="MTテンプレート vicuna - アバウト">Vicuna CMSのライセンス</a>に準じます。自己責任で。</p>
]]></content:encoded>
			<wfw:commentRss>http://szdy.info/wp/2009/04/03/52/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://szdy.info/wp/2009/04/03/52/" />
	</item>
	</channel>
</rss>
