<?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>FAQ</title>
	<atom:link href="http://tenman.info/labo/manual/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenman.info/labo/manual</link>
	<description>Just another 仙台入門new weblog</description>
	<lastBuildDate>Fri, 20 Aug 2010 09:14:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>逆引き　　テンプレートコーディング</title>
		<link>http://tenman.info/labo/manual/2009/06/05/%e9%80%86%e5%bc%95%e3%81%8d%e3%80%80%e3%80%80%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/</link>
		<comments>http://tenman.info/labo/manual/2009/06/05/%e9%80%86%e5%bc%95%e3%81%8d%e3%80%80%e3%80%80%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 04:51:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=688</guid>
		<description><![CDATA[head line ブログ名メインページへのURLサブタイトルメタタイプの入力ここの部分&#60;?php bloginfo(&#8216;html_type&#8217;);?&#62;文字コード&#60;?php blog [...]]]></description>
			<content:encoded><![CDATA[<a name="TOP" id="TOP">head line</a>

<ul><li><a href="#h2-post-6881">ブログ名</a></li><li><a href="#h2-post-6882">メインページへのURL</a></li><li><a href="#h2-post-6883">サブタイトル</a></li><li><a href="#h2-post-6884">メタタイプの入力</a></li><li><a href="#h2-post-6885">ここの部分&lt;?php bloginfo(&#8216;html_type&#8217;);?&gt;</a></li><li><a href="#h2-post-6886">文字コード&lt;?php bloginfo(&#8216;charset&#8217;);?&gt;</a></li><li><a href="#h2-post-6887">スタイルシートの適応</a></li><li><a href="#h2-post-6888">バージョン情報</a></li><li><a href="#h2-post-6889">フィールドファイルのアドレス（RSSとATOM）</a></li><li><a href="#h2-post-68810">前後ページへリンクする</a></li><li><a href="#h2-post-68811">最近の記事のメニューリストを作る</a></li><li><a href="#h2-post-68812">カテゴリーメニューリスト</a></li><li><a href="#h2-post-68813">月別のアーカイブメニュー</a></li><li><a href="#h2-post-68814">ファッションスタイル</a></li><li><a href="#h2-post-68815">クエリースタイル</a></li><li><a href="#h2-post-68816">管理画面へのログイン</a></li><li><a href="#h2-post-68817">ユーザ登録、登録画面へのリンク</a></li><li><a href="#h2-post-68818">記事タイトルのループ表示</a></li><li><a href="#h2-post-68819">記事タイトルのループ表示（beforeとafterの記載例）</a></li><li><a href="#h2-post-68820">記事タイトルのシングル表示</a></li><li><a href="#h2-post-68821">記事の内容のループ表示</a></li><li><a href="#h2-post-68822">記事の内容のループ表示（文字だけ）</a></li><li><a href="#h2-post-68823">カスタムフィールドのエリア、キーワードを表示</a></li><li><a href="#h2-post-68824">記事のID（カウント）を表示</a></li><li><a href="#h2-post-68825">記事のURLを表示する</a></li><li><a href="#h2-post-68826">複数に分裂した記事番号へのURLの表示</a></li><li><a href="#h2-post-68827">複数に分裂したページに前後リンクを表示させる</a></li><li><a href="#h2-post-68828">記事の投稿日を表示する</a></li><li><a href="#h2-post-68829">カテゴリー名を表示する</a></li><li><a href="#h2-post-68830">カテゴリーのパンぐずリストを表示</a></li><li><a href="#h2-post-68831">アーカイブメニューを表示する</a></li><li><a href="#h2-post-68832">カレンダーを表示する</a></li><li><a href="#h2-post-68833">パーツを読み込む</a></li><li><a href="#h2-post-68834">コンディショナルタグ</a>

<ul><li><a href="#h3-post-6881">ダイナミックハイライトメニュー</a></li><li><a href="#h3-post-6882">ダイナミックタイトルタグ</a></li><li><a href="#h3-post-6883">ダイナミックコンテンツ</a></li><li><a href="#h3-post-6884">ハイライトする記事を目立たせる</a></li><li><a href="#h3-post-6885">1つのテンプレートをユニークにする</a></li><li><a href="#h3-post-6886">カテゴリテンプレートをユニークにする</a></li></ul></li><li><a href="#h2-post-68835">クエリーポスト</a>

<ul><li><a href="#h3-post-6887">最新記事を表示する</a></li><li><a href="#h3-post-6888">特定の記事を表示する</a></li><li><a href="#h3-post-6889">特定のカテゴリから除外する</a></li></ul></li><li><a href="#h2-post-68836">カスタムフィールド</a></li><li><a href="#h2-post-68837">リストページ</a>

<ul><li><a href="#h3-post-68810">サイトマップ</a></li><li><a href="#h3-post-68811">ダイナミックサブページメニュー</a></li></ul></li><li><a href="#h2-post-68838">ページテンプレート</a></li><li><a href="#h2-post-68839">/</a></li><li><a href="#h2-post-68840">WordPress各種設定</a>

<ul><li><a href="#h3-post-68812">トップページをカスタムする</a></li><li><a href="#h3-post-68813">パーマリンク</a></li></ul></li><li><a href="#h2-post-68841">カテゴリ接頭語</a></li></ul>

</ul>

<h2 id="h2-post-6881">ブログ名</h2>

&lt;?php bloginfo(&#8216;name&#8217;);?&gt;

<h2 id="h2-post-6882">メインページへのURL</h2>

&lt;?php bloginfo(&#8216;url&#8217;);?&gt;

<h2 id="h2-post-6883">サブタイトル</h2>

&lt;?php bloginfo(&#8216;description&#8217;);?&gt;

<h2 id="h2-post-6884">メタタイプの入力</h2>

&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;ここの部分; charset=文字コード&quot; /&gt;

<p>例）<br /></p>

&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo(&#8216;html_type&#8217;);?&gt;; charset=&lt;?php bloginfo(&#8216;charset&#8217;);?&gt;&quot; /&gt;

<h2 id="h2-post-6885">ここの部分&lt;?php bloginfo(&#8216;html_type&#8217;);?&gt;</h2>

<h2 id="h2-post-6886">文字コード&lt;?php bloginfo(&#8216;charset&#8217;);?&gt;</h2>

<h2 id="h2-post-6887">スタイルシートの適応</h2>

&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php bloginfo(&#8216;stylesheet_url&#8217;); ?&gt;&quot; /&gt;

<h2 id="h2-post-6888">バージョン情報</h2>

&lt;meta name=&quot;generator&quot; content=&quot;WordPressここの部分&quot;/&gt;

<p>例）<br /></p>

&lt;meta name=&quot;generator&quot; content=&quot;WordPress&lt;?php bloginfo(&#8216;charset&#8217;);?&gt;&quot;/&gt;

&lt;?php bloginfo(&#8216;charset&#8217;);?&gt;

<h2 id="h2-post-6889">フィールドファイルのアドレス（RSSとATOM）</h2>

&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo(&#8216;name&#8217;);?>(RSS2.0)&quot; href=&quot;&lt;?php bloginfo(&quot;rss2_url&quot;); ?&gt;&quot; /&gt;

&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo(&#8216;name&#8217;);?>(RSS2.0)&quot; href=&quot;&lt;?php bloginfo(&quot;atom_url&quot;); ?&gt;&quot; /&gt;

<p>記事タイトルをリストアップ</p>

&lt;?php if(have_posts() ): while(have_posts() ): the_post(); ?&gt;

&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;　//記事タイトル

&lt;?php the_content(); ?&gt;　//記事タイトル

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68810">前後ページへリンクする</h2>

&lt;?php posts_nav_link(&#8216; |&#8217;,'&laquo;前のページ&#8217;,'次のページ &raquo;&#8217;); ?&gt;

<p>表示設定で設定した数値が超えたときに表示されます。</p>

<h2 id="h2-post-68811">最近の記事のメニューリストを作る</h2>

&lt;?php wp_get_archives(&#8216;type=postbypost&amp;limit=10&#8242;); ?&gt;

<h2 id="h2-post-68812">カテゴリーメニューリスト</h2>

&lt;?php list_cats(0,&#8217;name&#8217;)?&gt;

<h2 id="h2-post-68813">月別のアーカイブメニュー</h2>

&lt;?php wp_get_archives(&#8216;type=monthly&#8217;); ?&gt;

<p>テンプレートタグ種類</p>

<h2 id="h2-post-68814">ファッションスタイル</h2>

<p>1. パラメータの記述（パラメータ値を指定する。このとき、文字列（&#8217;type&#8217;,'format&#8217;,'before&#8217;,'after&#8217;）・数値（&#8217;limit&#8217;,）パラメータ（show_post_count）は「"」で囲む。またブーリアンの場合は「"」で囲まない。</p>

<p>例）&lt;?php get_archives(&#8216;type&#8217;,'limit&#8217;,'format&#8217;,'before&#8217;,'after&#8217;,show_post_count); ?&gt;</p>

<p>注意）指定順序を変えないこと、省略もしないこと</p>

<p>デフォルトの指定）&lt;?php get_archives();?&gt;、またはパラメータのデフォルトの指定は&lt;?php　get_archives(",",",&#8217;before&#8217;,'after&#8217;,show_post_count); ?&gt;</p>

<h2 id="h2-post-68815">クエリースタイル</h2>

<p>1. クエリーの記述（パラメータ名と値）</p>

<p>例）&lt;?php wp_get_archives(&#8216;type=xx &amp; limit=xx &amp; format=xx &amp; before=xx &amp; after=xx &amp; show_post_count=xx&#8217;); ?&gt;</p>

<p>テンプレートの分類</p>

<p>一般</p>

<p>記事</p>

<p>日付</p>

<p>カテゴリー</p>

<p>リンク</p>

<p>コピーライト</p>

<p>コメント</p>

<p>その他</p>

<p>パラメータの一覧</p>

<h2 id="h2-post-68816">管理画面へのログイン</h2>

&lt;?php wp_loginout(); ?&gt;

<h2 id="h2-post-68817">ユーザ登録、登録画面へのリンク</h2>

&lt;?php wp_register();?&gt;

<h2 id="h2-post-68818">記事タイトルのループ表示</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;p&gt;&lt;?php the_title(); ?&gt;&lt;/p&gt;

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68819">記事タイトルのループ表示（beforeとafterの記載例）</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;?php the_title(&#8216;&lt;p&gt;&#8217;,'&lt;/p&gt;&#8217;); ?&gt; //このように記載すると上記と同じようになる。

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68820">記事タイトルのシングル表示</h2>

&lt;?php single_post_title(); ?&gt;

<h2 id="h2-post-68821">記事の内容のループ表示</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_content(); ?&gt;

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68822">記事の内容のループ表示（文字だけ）</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_excerpt(); ?&gt; //RSSの場合はthe_excerpt_rss();を使用する。

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68823">カスタムフィールドのエリア、キーワードを表示</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_meta(); ?&gt;

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68824">記事のID（カウント）を表示</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_ID(); ?&gt;&lt;/h1&gt;

&lt;?php edit_post_link(); ?&gt;

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68825">記事のURLを表示する</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_parmalink(); ?&gt;　//RSSの場合は&lt;?php parmalink_single_rss(); ?&gt;　//PHPの記述の場合&lt;?php echo get_parmalink(10); ?&gt;

&lt;?php endwhile; endif; ?&gt;）

<h2 id="h2-post-68826">複数に分裂した記事番号へのURLの表示</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_content(); ?&gt;

&lt;p&gt;&lt;?php link_page(); /&gt;&lt;/p&gt;

&lt;?php endwhile; endif; ?&gt;）

<h2 id="h2-post-68827">複数に分裂したページに前後リンクを表示させる</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_content(); ?&gt;

&lt;?php endwhile; endif; ?&gt;

&lt;p&gt;&lt;?php posts_nav_link(); ?&gt;&lt;/p&gt;

&lt;p&gt;&lt;?php previous_posts_link(); ?&gt;&lt;/p&gt;

&lt;p&gt;&lt;?php next_posts_link(); ?&gt;&lt;/p&gt;

<h2 id="h2-post-68828">記事の投稿日を表示する</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_date(); ?&gt; &lt;?php the_time(); ?&gt;

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68829">カテゴリー名を表示する</h2>

&lt;?php if(have_posts() ):while(have_posts() ): the_post(); ?&gt;

&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

&lt;?php the_category(); ?&gt; //ドロップダウンで表示させたい場合は&lt;?php dropdown_cats(); ?&gt;

&lt;?php endwhile; endif; ?&gt;

<h2 id="h2-post-68830">カテゴリーのパンぐずリストを表示</h2>

&lt;?php echo get_category_parents($cat); ?&gt;

<h2 id="h2-post-68831">アーカイブメニューを表示する</h2>

&lt;?php get_archives(); ?&gt;

&lt;?php get_archives(&#8216;type=postbypost&amp;limit=5&#8242;,); ?&gt;

<h2 id="h2-post-68832">カレンダーを表示する</h2>

&lt;?php get_calendar(); ?&gt;

<h2 id="h2-post-68833">パーツを読み込む</h2>

&lt;?php get_header(); ?&gt; //ヘッダーを読み込む

&lt;?php get_footer(); ?&gt; //フッダーを読み込む

&lt;?php get_sidebar(); ?&gt; //サイドを読み込む

&lt;?php get_comments_template(); ?&gt; //コメントテンプレートを読み込む

<h2 id="h2-post-68834">コンディショナルタグ</h2>

<p>コンディショナルタグは、どのコンテンツをいくつ表示するかをコントロールすることができる。</p>

<h3 id="h3-post-6881">ダイナミックハイライトメニュー</h3>

<p>Home、Category、Archive、Search、Singleのどれかのページにいるとすると、箇条書き（ナビゲーション）のはじめの項目のliタグに、class=&quot;current&quot;を追加する。</p>

<p>例）&quot;about&quot;という名前のページにいるときに、class=&quot;current&quot;を追加する。</p>

&lt;ul id=&quot;nav&quot;&gt;
&lt;li&lt;?php if ( is_home() | | is_category() | | is_archive() | | is_search() | | is_single() | | is_date() ) { echo &#8216; class=&quot;current&quot;&#8217;; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;
&lt;li&lt;?php if ( is_page(&#8216;about&#8217;) ) { echo &#8216; class=&quot;current&quot;&#8217;; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li&lt;?php if ( is_page(&#8216;submit&#8217;) ) { echo &#8216; class=&quot;current&quot;&#8217;; } ?&gt;&gt;&lt;a href=&quot;#&quot;&gt;Submit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

<h3 id="h3-post-6882">ダイナミックタイトルタグ</h3>

<p>動的にtitleタグをheader.phpに加える</p>

&lt;title&gt;
&lt;?phpif (is_home()) {

<p>echo bloginfo(&#8216;name&#8217;);<br />
} elseif (is_404()) {<br />
echo &#8217;404 Not Found&#8217;;<br />
} elseif (is_category()) {<br />
echo &#8216;Category:&#8217;; wp_title(");<br />
} elseif (is_search()) {<br />
echo &#8216;Search Results&#8217;;<br />
} elseif ( is_day() | | is_month() | | is_year() ) {<br />
echo &#8216;Archives:&#8217;; wp_title(");<br />
} else {echo wp_title(");<br />
}<br />
?&gt;<br /></p>

&lt;/title&gt;

<h3 id="h3-post-6883">ダイナミックコンテンツ</h3>

<p>トップページのみに表示されるファイルを指定</p>

&lt;?php if ( is_home() ) { include (&#8216;file.php&#8217;); } ?&gt;

<h3 id="h3-post-6884">ハイライトする記事を目立たせる</h3>

<p>CSSクラスを追加</p>

&lt;?php if ( in_category(&#8217;2&#8242;) ) { echo (&#8216;class=&quot;feature&quot;&#8217;); } ?&gt;

<h3 id="h3-post-6885">1つのテンプレートをユニークにする</h3>

<p>あるカテゴリで個々の記事を表示するために、1つの違うテンプレートを使いたいとする。<br />
記事がどのカテゴリに属しているかをin_categoryでチェックし、それからテンプレートを選択すればよい。</p>

<p>デフォルトのsingle.phpには、以下のコードを入力する。記事がカテゴリ1に属していればsingle1.phpというテンプレートを使い、一方カテゴリ2であればsingle2.php、ほかのものならばsingle_other.phpを適用する、というコードになっている。</p>

&lt;?php
$post= $wp_query- &gt;post;

<p>if ( in_category(&#8217;1&#8242;) ) {<br />
include(TEMPLATEPATH . &#8216;/single1.php&#8217;);<br />
} elseif ( in_category(&#8217;2&#8242;) ) {<br />
include(TEMPLATEPATH . &#8216;/single2.php&#8217;);<br />
} else {<br />
include(TEMPLATEPATH . &#8216;/single_other.php&#8217;);<br />
}<br />
? &gt;</p>

<h3 id="h3-post-6886">カテゴリテンプレートをユニークにする</h3>

<p>異なるカテゴリテンプレートを使って、特定のカテゴリを表示したいとしよう。これは単純にカテゴリテンプレートをcategory-2.phpとして保存すればよい。（注意：&quot;-&quot;とカテゴリID番号をファイル名にする）すると、category-2.phpはカテゴリ2を表示した際に使われ、category-3.phpはカテゴリ3のときに使われる、など。</p>

<p>（訳者注：上記と絡ませて使うと便利。コンディショナルタグで表示ページを指定し、カテゴリごとにページデザインを変える、など）</p>

<p>1つ目の記事のあとにGoogle Adsenseを表示する</p>

<p>多くの人が僕に質問する。「どうやって、1つ目の記事のあとにGoogle Adsenseを表示しているんだい？」これはすごく単純。ループ内に変数($loopcounter)を加えればよいだけだ。</p>

<p>もし、$loopcounterが1以下、または等しいのであれば、そのときはgoogle-ad.phpを組み入れる。</p>

&lt;?php if (have_posts()) : ?&gt;&lt;?php while (have_posts()) : the_post(); $loopcounter++; ?&gt;

<p>// the loop stuffs<br /></p>

&lt;?php if ($loopcounter &lt;= 1) { include (TEMPLATEPATH . &#8216;/ad.php&#8217;); } ?&gt;
&lt;?php endwhile; ?&gt;
&lt;?php else : ?&gt;
&lt;?php endif; ?&gt;

<h2 id="h2-post-68835">クエリーポスト</h2>

<p>ループ内にいくつの記事を表示するのかを制御する</p>

<p>どのコンテンツが、どこに、どうやって表示されるのかを制御させられるのがクエリーポスト</p>

<p>特定のカテゴリにクエリーを要求することもできるし、除外することもできる。</p>

<p>最新記事の一覧を表示したもの、特定の記事を表示するもの、またどうやって特定のカテゴリから除外するのかについて、クエリーポストを使った例を示してみよう。</p>

<h3 id="h3-post-6887">最新記事を表示する</h3>

<p>以下のコードが最新5件を一覧に表示するものだ。</p>

&lt;?php query_posts(&#8216;showposts=5&#8242;); ?&gt;
&lt;ul&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endwhile;?&gt;
&lt;/ul&gt;

<h3 id="h3-post-6888">特定の記事を表示する</h3>

<p>カテゴリ2は特別なカテゴリとする。このカテゴリから5件をサイドバーに表示したい。そんなときは、こんなコードをsidebar.phpに入れればよい。</p>

&lt;?php query_posts(&#8216;cat=2&amp;showposts=5&#8242;); ?&gt;
&lt;ul&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endwhile;?&gt;
&lt;/ul&gt;

<h3 id="h3-post-6889">特定のカテゴリから除外する</h3>

<p>特定のカテゴリを表示しない</p>

<p>以下のコードはカテゴリ2の全ての記事を除外したものだ。（注意：ID番号の前にマイナス記号が入っている）</p>

&lt;?php query_posts(&#8216;cat=-2&#8242;); ?&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;

<p>//the loop here<br /></p>

&lt;?php endwhile;?&gt;

<p>Tips：posts_per_page引数を使うことによって、ページの記事ごとに上書することもできる。（例：query_posts(&#8216;posts_per_page=6&#8242;);）</p>

<h2 id="h2-post-68836">カスタムフィールド</h2>

<p>記事のコンテンツや抜粋と同じように、特別なデータやテキストを記事に加えることができる。</p>

<p>はじめに記事のカスタムフィールドに追加する。</p>

<p>記事イメージと記事へのリンクを表示するため、以下のコードをループに入れる。</p>

&lt;?php //get article_image (custom field) ?&gt;
&lt;?php $image= get_post_meta($post-&gt;ID, &#8216;article_image&#8217;, true); ?&gt;

&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo $image; ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; /&gt;&lt;/a&gt;

<p>Tips：WordPressでは複数のキーを作り、保存もできる。その上、そのキーはほかの記事にも使うことができる。</p>

<p>サイトのサムネール、ツールチップのイメージ、URLを表示するために、カスタムフィールド等に使う</p>

<h2 id="h2-post-68837">リストページ</h2>

<p>wp_list_pagesというテンプレートタグは、ナビゲーションのためにヘッダーやサイバーにページの一覧を表示するために使われる。どのようにwp_list_pagesを用いて、サイトマップやサブメニューを作るのかを示してみよう。</p>

<h3 id="h3-post-68810">サイトマップ</h3>

<p>全てのページのサイトマップ（サンプル）を作るために、サイトマップのページテンプレートに次のコードを入れよう。（注意：僕はページID12を除外している。なぜならページID12は僕のサイトマップ自身のページであり、そのページを表示する必要がないと思うからだ）。</p>

&lt;ul&gt;
&lt;?php wp_list_pages(&#8216;exclude=12&amp;title_li=&#8217; ); ?&gt;
&lt;/ul&gt;

<h3 id="h3-post-68811">ダイナミックサブページメニュー</h3>

<p>サブページにいるとすると、サブページのメニューを出力する。そうするためには、このコードをsidebar.phpに入れよう。</p>

&lt;?php
$children= wp_list_pages(&#8216;title_li=&amp;child_of=&#8217;.$post-&gt;ID.&#8217;&amp;echo=0&#8242;);

<p>if ($children) { ?&gt;<br /></p>

&lt;ul&gt;
&lt;?php echo $children; ?&gt;
&lt;/ul&gt;
&lt;?php } ?&gt;

<h2 id="h2-post-68838">ページテンプレート</h2>

<p>WordPressをホームページのように使う</p>

<p>どのようにページがどのように表示されるべきかを制御するのがページテンプレート機能だ。</p>

<p>この機能を使うためには、まずページテンプレートを作る必要がある。それから、あるページに特定のテンプレートを指定することができるようになる。</p>

<p>ページテンプレートがどのように構造化されたのかを示してみよう。（例えば、portfolio.php）</p>

&lt;?php

<p>/*<br />
Template Name: Portfolio</p>

<h2 id="h2-post-68839">/</h2>

<p>?&gt;<br /></p>

&lt;?php get_header(); ?&gt;

<p>//the loop here<br /></p>

&lt;?php get_footer(); ?&gt;

<p>記事を投稿したり編集したりするときに、右側に&quot;Page Template&quot;というタブがあります。<br />
利用できるテンプレートが表示される。</p>

<h2 id="h2-post-68840">WordPress各種設定</h2>

<p>管理画面には、はじめからたくさんの設定をすることができ、もっとあなたのサイトをよくできる。ここにいくつかあげよう。</p>

<h3 id="h3-post-68812">トップページをカスタムする</h3>

<p>デフォルトにおいては、WordPressはトップページにあなたの記事を表示する。しかし、もし静的なページ（ようこそやスプラッシュなど）を代わりに使いたいのであれば、管理画面 &gt; 各種設定 &gt; 表示設定から決定することができる。</p>

<h3 id="h3-post-68813">パーマリンク</h3>

<p>デフォルトのWordPressは記事のURLにwww.yoursite.com/?p=123というものを使っているが、これは検索エンジンにとって好ましいURLではない。パーマリンクは、管理画面 &gt; 各種設定 &gt; パーマリンク設定から変更することができる。個人的には、パーマリンクは/%category%/%postname%/が気に入っている。</p>

<h2 id="h2-post-68841">カテゴリ接頭語</h2>

<p>デフォルトのWordPressのカテゴリの接頭語は、カテゴリになっている（例：yoursite.com/category/cat-name/）。</p>

<p>これにarticleをカテゴリーベースに入れることにより（各種設定 &gt; パーマリンク）、カテゴリURLをyoursite.com/article/cat-name/にすることができる。</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/05/%e9%80%86%e5%bc%95%e3%81%8d%e3%80%80%e3%80%80%e3%83%86%e3%83%b3%e3%83%97%e3%83%ac%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htmlソースを記述する　記法</title>
		<link>http://tenman.info/labo/manual/2009/06/05/html%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%92%e8%a8%98%e8%bf%b0%e3%81%99%e3%82%8b%e3%80%80%e8%a8%98%e6%b3%95/</link>
		<comments>http://tenman.info/labo/manual/2009/06/05/html%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%92%e8%a8%98%e8%bf%b0%e3%81%99%e3%82%8b%e3%80%80%e8%a8%98%e6%b3%95/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 01:10:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[編集作業]]></category>
		<category><![CDATA[記法]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=876</guid>
		<description><![CDATA[html ソースそのものを記述するときは、行頭にcode:と記述します。 &#60;html&#62; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa [...]]]></description>
			<content:encoded><![CDATA[

<p>html ソースそのものを記述するときは、行頭にcode:と記述します。</p>

<pre id="presouce-post-8761">

<code title="line1">&lt;html&gt;</code>
<code title="line2">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</code>
<code>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</code>
<code>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</code>
</pre>

<p>この記法で記述するソースは、自動的に折りかえされます。<br />
ラップ幅の変更は、text2html　プラグイン定数　TEXTTOHTML_CODE_WRAP_WIDTH を確認してください。</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/05/html%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%92%e8%a8%98%e8%bf%b0%e3%81%99%e3%82%8b%e3%80%80%e8%a8%98%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>文字や画像を右に寄せる　記法</title>
		<link>http://tenman.info/labo/manual/2009/06/05/%e6%96%87%e5%ad%97%e3%82%84%e7%94%bb%e5%83%8f%e3%82%92%e5%8f%b3%e3%81%ab%e5%af%84%e3%81%9b%e3%82%8b%e3%80%80%e8%a8%98%e6%b3%95/</link>
		<comments>http://tenman.info/labo/manual/2009/06/05/%e6%96%87%e5%ad%97%e3%82%84%e7%94%bb%e5%83%8f%e3%82%92%e5%8f%b3%e3%81%ab%e5%af%84%e3%81%9b%e3%82%8b%e3%80%80%e8%a8%98%e6%b3%95/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 00:41:15 +0000</pubDate>
		<dc:creator>php</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[編集作業]]></category>
		<category><![CDATA[記法]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=874</guid>
		<description><![CDATA[右に配置 画像ファイルへのURIだけを記述した場合は、原寸で画像表示します。 右:]]></description>
			<content:encoded><![CDATA[

<div id="divright-post-8741">

<p style="text-align:right;">右に配置</p>

</div>

<p>画像ファイルへのURIだけを記述した場合は、原寸で画像表示します。</p>

<pre id="presouce-post-8741">

<code title="line1">右:<img src="http://tenman.info/images/pen.jpg" width="160" height="120" class="picture" alt="" /></code>
</pre>

<div id="divright-post-8742">

<p style="text-align:right;"><img src="http://tenman.info/images/pen.jpg" width="160" height="120" class="picture" alt="" /></p>

</div>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/05/%e6%96%87%e5%ad%97%e3%82%84%e7%94%bb%e5%83%8f%e3%82%92%e5%8f%b3%e3%81%ab%e5%af%84%e3%81%9b%e3%82%8b%e3%80%80%e8%a8%98%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>文字や画像を中央に配置　記法</title>
		<link>http://tenman.info/labo/manual/2009/06/05/%e6%96%87%e5%ad%97%e3%82%84%e7%94%bb%e5%83%8f%e3%82%92%e4%b8%ad%e5%a4%ae%e3%81%ab%e9%85%8d%e7%bd%ae%e3%80%80%e8%a8%98%e6%b3%95/</link>
		<comments>http://tenman.info/labo/manual/2009/06/05/%e6%96%87%e5%ad%97%e3%82%84%e7%94%bb%e5%83%8f%e3%82%92%e4%b8%ad%e5%a4%ae%e3%81%ab%e9%85%8d%e7%bd%ae%e3%80%80%e8%a8%98%e6%b3%95/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 23:20:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[スタイル]]></category>
		<category><![CDATA[編集作業]]></category>
		<category><![CDATA[記法]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=864</guid>
		<description><![CDATA[真ん中に配置 画像ファイルへのURIだけを記述した場合は、標準画像幅[0]で画像表示します。 中央:http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/2009 [...]]]></description>
			<content:encoded><![CDATA[

<div id="divcenter-post-8641">

<p style="text-align:center;">真ん中に配置</p>

</div>

画像ファイルへのURIだけを記述した場合は、標準画像幅<a class="foot-note" href="#foot-note-0" name="anchor-foot-note-0" id="anchor-foot-note-0" title="脚注へ移動">[0]</a>で画像表示します。

<pre id="presouce-post-8641">

<code title="line1">中央:http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png</code>
</pre>

<div id="divcenter-post-8642">

<p style="text-align:center;">http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png</p>

</div>

<ul class="foot-note-post-864"><li>

<div>

<a href="#anchor-foot-note-0" name="foot-note-0" id="foot-note-0">[0]</a>標準画像幅は、定数TEXTTOHTML_DEFAULT_IMAGE_WIDTH

</div>

</li></ul>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/05/%e6%96%87%e5%ad%97%e3%82%84%e7%94%bb%e5%83%8f%e3%82%92%e4%b8%ad%e5%a4%ae%e3%81%ab%e9%85%8d%e7%bd%ae%e3%80%80%e8%a8%98%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>画像を好きなサイズに指定する記法</title>
		<link>http://tenman.info/labo/manual/2009/06/05/%e7%94%bb%e5%83%8f%e3%82%92%e5%a5%bd%e3%81%8d%e3%81%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%ab%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b%e8%a8%98%e6%b3%95/</link>
		<comments>http://tenman.info/labo/manual/2009/06/05/%e7%94%bb%e5%83%8f%e3%82%92%e5%a5%bd%e3%81%8d%e3%81%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%ab%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b%e8%a8%98%e6%b3%95/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 23:17:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[スタイル]]></category>
		<category><![CDATA[編集作業]]></category>
		<category><![CDATA[記法]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=859</guid>
		<description><![CDATA[画像のURIの直後に?w=数字h=数字alt=簡単な説明(区切りはスペース) http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932. [...]]]></description>
			<content:encoded><![CDATA[

<p>画像のURIの直後に?w=数字h=数字alt=簡単な説明(区切りはスペース)</p>

<pre id="presouce-post-8591">

<code title="line1">http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png?</code>
<code>w=200h=200alt=ゆがんだサイズ</code>
</pre>

<img src="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" width="200" height="200" class="picture" alt="ゆがんだサイズ" />

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/05/%e7%94%bb%e5%83%8f%e3%82%92%e5%a5%bd%e3%81%8d%e3%81%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%ab%e6%8c%87%e5%ae%9a%e3%81%99%e3%82%8b%e8%a8%98%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>画像を表示する一番簡単な方法</title>
		<link>http://tenman.info/labo/manual/2009/06/04/%e7%94%bb%e5%83%8f%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e4%b8%80%e7%95%aa%e7%b0%a1%e5%8d%98%e3%81%aa%e6%96%b9%e6%b3%95/</link>
		<comments>http://tenman.info/labo/manual/2009/06/04/%e7%94%bb%e5%83%8f%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e4%b8%80%e7%95%aa%e7%b0%a1%e5%8d%98%e3%81%aa%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 10:23:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[スタイル]]></category>
		<category><![CDATA[編集作業]]></category>
		<category><![CDATA[記法]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=856</guid>
		<description><![CDATA[画像のURLだけを記述した場合 http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png http://f.hatena.ne. [...]]]></description>
			<content:encoded><![CDATA[

<h3 id="h3-post-8561">画像のURLだけを記述した場合</h3>

<pre id="presouce-post-8561">

<code title="line1">http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png</code>
</pre>

<p>http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png</p>

<p>画像の実際の寸法でリンクします。</p>

<p>この記述は、画像のサイズにかかわらず常に一定のサイズで表示されます。</p>

<p>このサイズの調整は、text2htmlプラグイン定数TEXTTOHTML_DEFAULT_IMAGE_WIDTHをご確認ください</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/04/%e7%94%bb%e5%83%8f%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e4%b8%80%e7%95%aa%e7%b0%a1%e5%8d%98%e3%81%aa%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>リンク画像のサムネール自動作成</title>
		<link>http://tenman.info/labo/manual/2009/06/04/%e3%83%aa%e3%83%b3%e3%82%af%e7%94%bb%e5%83%8f%e3%81%ae%e3%82%b5%e3%83%a0%e3%83%8d%e3%83%bc%e3%83%ab%e8%87%aa%e5%8b%95%e4%bd%9c%e6%88%90/</link>
		<comments>http://tenman.info/labo/manual/2009/06/04/%e3%83%aa%e3%83%b3%e3%82%af%e7%94%bb%e5%83%8f%e3%81%ae%e3%82%b5%e3%83%a0%e3%83%8d%e3%83%bc%e3%83%ab%e8%87%aa%e5%8b%95%e4%bd%9c%e6%88%90/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 10:21:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[メディア]]></category>
		<category><![CDATA[編集作業]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=852</guid>
		<description><![CDATA[自動サムネール画像リンク copy&#62;(http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png) 字サイト内に、リンク先画 [...]]]></description>
			<content:encoded><![CDATA[

<h3 id="h3-post-8521">自動サムネール画像リンク</h3>

<pre id="presouce-post-8521">

<code title="line1">copy&gt;(http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png)</code>
</pre>

<!--from:"http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png"--><a href="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" class="quoted"><img src="http://www.tenman.info/labo/wp-content/plugins/text2html/images/20090506114932.png" width="100" height="60" alt="copyed image" /></a>

<p>字サイト内に、リンク先画像のサムネールを作ったうえで、相手先画像へのリンクつきでサムネールを表示します。</p>

<p>リンク先のタイプによって、実行できないことがあります。</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/04/%e3%83%aa%e3%83%b3%e3%82%af%e7%94%bb%e5%83%8f%e3%81%ae%e3%82%b5%e3%83%a0%e3%83%8d%e3%83%bc%e3%83%ab%e8%87%aa%e5%8b%95%e4%bd%9c%e6%88%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>youtubeの動画</title>
		<link>http://tenman.info/labo/manual/2009/06/04/youtube%e3%81%ae%e5%8b%95%e7%94%bb/</link>
		<comments>http://tenman.info/labo/manual/2009/06/04/youtube%e3%81%ae%e5%8b%95%e7%94%bb/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 10:17:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[メディア]]></category>
		<category><![CDATA[編集作業]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=849</guid>
		<description><![CDATA[youtube&#62;(http://www.youtube.com/watch?v=oUiHQ7fimv8) 動画リンクは、閲覧する場合に、表示までに時間がかかりますので、その点に配慮して静止画リンクを行っています。]]></description>
			<content:encoded><![CDATA[

<pre id="presouce-post-8491">

<code title="line1">youtube&gt;(http://www.youtube.com/watch?v=oUiHQ7fimv8)</code>
</pre>
<a href="http://www.youtube.com/watch?v=oUiHQ7fimv8" target="blank"><img src="http://img.youtube.com/vi/oUiHQ7fimv8/default.jpg" width="130" height="97" alt="YouTube" /></a>

<p>動画リンクは、閲覧する場合に、表示までに時間がかかりますので、その点に配慮して静止画リンクを行っています。</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/04/youtube%e3%81%ae%e5%8b%95%e7%94%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>リンクの作成</title>
		<link>http://tenman.info/labo/manual/2009/06/04/%e3%83%aa%e3%83%b3%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90/</link>
		<comments>http://tenman.info/labo/manual/2009/06/04/%e3%83%aa%e3%83%b3%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 08:38:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[スタイル]]></category>
		<category><![CDATA[編集作業]]></category>
		<category><![CDATA[記法]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=818</guid>
		<description><![CDATA[エディタの昨日でもリンクを作ることができますが、もっと簡単にリンクを張る方法もありますので、リンク記法をご紹介します。 好きなタイトル 好きなタイトル リンク先のタイトルを取得 www.tenman.info www.t [...]]]></description>
			<content:encoded><![CDATA[

<p>エディタの昨日でもリンクを作ることができますが、もっと簡単にリンクを張る方法もありますので、リンク記法をご紹介します。</p>

<pre id="presouce-post-8181">

<code title="line1"><a href="http://www.tenman.info/" onclick="this.target='_self';" onkeypress="this.target='_self';">好きなタイトル</a></code>
</pre>

<p><a href="http://www.tenman.info/" onclick="this.target='_self';" onkeypress="this.target='_self';">好きなタイトル</a></p>

<p>リンク先のタイトルを取得</p>

<pre id="presouce-post-8182">

<code title="line1"><a href="http://www.tenman.info/" onclick="this.target='_self';" onkeypress="this.target='_self';">www.tenman.info</a></code>
</pre>

<p><a href="http://www.tenman.info/" onclick="this.target='_self';" onkeypress="this.target='_self';">www.tenman.info</a></p>

<p>リンク先のページを新しいページで開く</p>

<pre id="presouce-post-8183">

<code title="line1"><a href="http://www.tenman.info/" onclick="this.target='_blank';" onkeypress="this.target='_blank';">www.tenman.info</a></code>
</pre>

<p><a href="http://www.tenman.info/" onclick="this.target='_blank';" onkeypress="this.target='_blank';">www.tenman.info</a></p>

<p>画像リンクを作る</p>

<pre id="presouce-post-8184">

<code title="line1"><a href="http://www.tenman.info" onclick="this.target='_self';" onkeypress="this.target='_self';">&lt;img src=&quot;http://www.tenman.info/images/logo.gif&quot; /&gt;</a></code>
</pre>

<p><a href="http://www.tenman.info" onclick="this.target='_self';" onkeypress="this.target='_self';"><img src="http://www.tenman.info/images/logo.gif" /></a></p>

<p>bookmark　link 機能</p>

<p>wordPressには、リンク機能が用意されていますので、ブラウザのブックマークツールバーなどから、Press This機能と同じ感覚で、簡単に閲覧ページへのリンクを作成することもできます。</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/04/%e3%83%aa%e3%83%b3%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>手書き入力</title>
		<link>http://tenman.info/labo/manual/2009/06/04/%e6%89%8b%e6%9b%b8%e3%81%8d%e5%85%a5%e5%8a%9b/</link>
		<comments>http://tenman.info/labo/manual/2009/06/04/%e6%89%8b%e6%9b%b8%e3%81%8d%e5%85%a5%e5%8a%9b/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 08:18:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[寄稿者]]></category>
		<category><![CDATA[投稿者]]></category>
		<category><![CDATA[管理者]]></category>
		<category><![CDATA[編集者]]></category>
		<category><![CDATA[編集作業]]></category>

		<guid isPermaLink="false">http://tenman.info/labo/manual/?p=806</guid>
		<description><![CDATA[タイトル用途などで、手書き入力が使えます。 手書き風や、高級感のあるフォントを使う事で、雰囲気を伝えることができます。 手書き文字の入力 必要な、フォントファイル(ttf)を用意すれば、フォントを指定して文字列の画像化が [...]]]></description>
			<content:encoded><![CDATA[

<p>タイトル用途などで、手書き入力が使えます。<br />
手書き風や、高級感のあるフォントを使う事で、雰囲気を伝えることができます。</p>

<p class="text2image" style="height:26px;width:175px;background:url(http://www.tenman.info/labo/wp-content/plugins/text2html/images/13-48b3d91223071682e1c47eb160eb6d3f.png);background-repeat:no-repeat;">
	<span style="display:none;font-size:13px;">手書き文字の入力</span></p>

<p>必要な、フォントファイル(ttf)を用意すれば、フォントを指定して文字列の画像化ができます。</p>

<h3 class="text2image" style="height:60px;width:357px;background:url(http://www.tenman.info/labo/wp-content/plugins/text2html/images/30-024b044522ab0460feabaf8fe256f99c.png);background-repeat:no-repeat;">
	<span style="display:none;font-size:30px;">手書き文字の入力</span></h3>

<h3 class="text2image" style="height:62px;width:365px;background:url(http://www.tenman.info/labo/wp-content/plugins/text2html/images/31-4abf0dea732c604d73f1cba69f067456.png);background-repeat:no-repeat;">
	<span style="display:none;font-size:31px;">手書き文字の入力</span></h3>

<p>画像は、背景として挿入され、文字列は、非表示のスタイル設定になっていますから、検索エンジン、スタイルをはずして閲覧するユーザーであっても、入力文字列は、かけることなく表示されます。</p>

]]></content:encoded>
			<wfw:commentRss>http://tenman.info/labo/manual/2009/06/04/%e6%89%8b%e6%9b%b8%e3%81%8d%e5%85%a5%e5%8a%9b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

