<?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>Little.ws &#187; wordpressテーマ</title>
	<atom:link href="http://little.ws/tag/wordpress%e3%83%86%e3%83%bc%e3%83%9e/feed" rel="self" type="application/rss+xml" />
	<link>http://little.ws</link>
	<description>web制作とかcssとかデザインとか色々～な覚え書き</description>
	<lastBuildDate>Sat, 04 Feb 2012 07:27:16 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>wp初めてのテーマ作成時に役立ちそうな記事</title>
		<link>http://little.ws/200901/141.html</link>
		<comments>http://little.ws/200901/141.html#comments</comments>
		<pubDate>Wed, 21 Jan 2009 04:51:28 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Wordpress基礎編]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpressタグ]]></category>
		<category><![CDATA[wordpressテーマ]]></category>
		<category><![CDATA[ブックマーク]]></category>
		<category><![CDATA[人にやさしく]]></category>

		<guid isPermaLink="false">http://little.ws/?p=141</guid>
		<description><![CDATA[WordPressのテンプレート作成時に欠かせない有用チートシート:phpspot開発日誌 初めてのテーマ作成時に役立ちそうな記事。 元記事　My WordPress Cheat Sheet：Graphic Rating&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://phpspot.org/blog/archives/2009/01/wordpress_9.html" class="liexternal">WordPressのテンプレート作成時に欠かせない有用チートシート:phpspot開発日誌</a><br />
初めてのテーマ作成時に役立ちそうな記事。<br />
元記事　<a href="http://www.graphicrating.com/2009/01/18/my-wordpress-cheat-sheet/" class="liexternal">My WordPress Cheat Sheet：Graphic Rating</a><br />
<span id="more-141"></span><br />
Bloginfoタグとか未だに忘れるので・・記事を日本語にして覚え書き<br/></p>
<h4>Template Bloginfoタグ</h4>
<pre class="brush: php; title: ; notranslate">
&lt;?php bloginfo('name'); ?&gt; - ブログタイトルを出力
&lt;?php bloginfo('charset'); ?&gt; - 文字コード(UTF-8とか)を出力
&lt;?php bloginfo('description'); ?&gt; - ブログのdescriptionを出力
&lt;?php bloginfo('url'); ?&gt; - 一般設定で設定したブログアドレスを出力
&lt;?php bloginfo('rss2_url'); ?&gt; - RSSのURLを出力
&lt;?php bloginfo('template_url'); ?&gt; - テーマ（テンプレート）のURLを出力
&lt;?php bloginfo('pingback_url'); ?&gt; - ピンバック（トラックバック）用URLを出力
&lt;?php bloginfo('stylesheet_url'); ?&gt; - テーマのスタイルシートURLを出力
&lt;?php bloginfo('wpurl'); ?&gt; - WordPressのURLを出力
&lt;?php bloginfo('template_directory'); ?&gt; - テーマのディレクトリを出力
</pre>
<h4>一般的なタグ</h4>
<pre class="brush: php; title: ; notranslate">
&lt; ?php the_time() ?&gt; - 現在の記事の投稿・更新時間出力
&lt; ?php the_date() ?&gt; - 記事の投稿・更新日を出力
&lt; ?php the_title(); ?&gt; - 記事のタイトルを出力
&lt; ?php the_permalink() ?&gt; - 記事のURLを出力
&lt; ?php the_category() ?&gt; - 記事のカテゴリを出力
&lt; ?php the_author(); ?&gt; - 投稿者を出力
&lt; ?php the_ID(); ?&gt; - 現在の記事のIDを出力
&lt; ?php wp_list_pages(); ?&gt; - ページ一覧を出力
&lt; ?php wp_tag_cloud(); ?&gt; - タグクラウドを出力
&lt; ?php wp_list_cats(); ?&gt; - カテゴリ一覧を出力
&lt; ?php get_calendar(); ?&gt; - カレンダを出力
&lt; ?php wp_get_archives() ?&gt; - アーカイブを出力
&lt; ?php posts_nav_link(); ?&gt; - 新しい記事及び古い記事へのリンクを出力
&lt; ?php next_post_link() ?&gt; - 新しい記事へのリンクを出力
&lt; ?php previous_post_link() ?&gt; - 古い記事へのリンクを出力
</pre>
<h4>自分で作成したテンプレートファイルの読み込み</h4>
<pre class="brush: php; title: ; notranslate">
&lt; ?php include (TEMPLATEPATH . '/hogehoge.php'); ?&gt;
</pre>
<h4>ループについて</h4>
<pre class="brush: php; title: ; notranslate">
&lt; ?php if(have_posts()) : ?&gt;
   &lt; ?php while(have_posts()) : the_post(); ?&gt;
// Custom HTML &amp; PHP code
   &lt; ?php endwhile; ?&gt;
&lt; ?php else : ?&gt;
&lt; ?php endif; ?&gt;
</pre>
<p>タグによって、ループ内で使用と指定されるものがありますが、<br />
その場合は基本的に上記のソース内で使用します。<br/><br />
元ページより一部抜粋しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/200901/141.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

