<?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>Sat, 12 Dec 2009 02:28:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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('html_type');?&#62;文字コード&#60;?php bloginfo('charset [...]]]></description>
			<content:encoded><![CDATA[<a name="TOP" id="TOP">head line</a><ul><li><a href="#h2h21">ブログ名</a></li><li><a href="#h2h22">メインページへのURL</a></li><li><a href="#h2h23">サブタイトル</a></li><li><a href="#h2h24">メタタイプの入力</a></li><li><a href="#h2h25">ここの部分&lt;?php bloginfo('html_type');?&gt;</a></li><li><a href="#h2h26">文字コード&lt;?php bloginfo('charset');?&gt;</a></li><li><a href="#h2h27">スタイルシートの適応</a></li><li><a href="#h2h28">バージョン情報</a></li><li><a href="#h2h29">フィールドファイルのアドレス（RSSとATOM）</a></li><li><a href="#h2h210">前後ページへリンクする</a></li><li><a href="#h2h211">最近の記事のメニューリストを作る</a></li><li><a href="#h2h212">カテゴリーメニューリスト</a></li><li><a href="#h2h213">月別のアーカイブメニュー</a></li><li><a href="#h2h214">ファッションスタイル</a></li><li><a href="#h2h215">クエリースタイル</a></li><li><a href="#h2h216">管理画面へのログイン</a></li><li><a href="#h2h217">ユーザ登録、登録画面へのリンク</a></li><li><a href="#h2h218">記事タイトルのループ表示</a></li><li><a href="#h2h219">記事タイトルのループ表示（beforeとafterの記載例）</a></li><li><a href="#h2h220">記事タイトルのシングル表示</a></li><li><a href="#h2h221">記事の内容のループ表示</a></li><li><a href="#h2h222">記事の内容のループ表示（文字だけ）</a></li><li><a href="#h2h223">カスタムフィールドのエリア、キーワードを表示</a></li><li><a href="#h2h224">記事のID（カウント）を表示</a></li><li><a href="#h2h225">記事のURLを表示する</a></li><li><a href="#h2h226">複数に分裂した記事番号へのURLの表示</a></li><li><a href="#h2h227">複数に分裂したページに前後リンクを表示させる</a></li><li><a href="#h2h228">記事の投稿日を表示する</a></li><li><a href="#h2h229">カテゴリー名を表示する</a></li><li><a href="#h2h230">カテゴリーのパンぐずリストを表示</a></li><li><a href="#h2h231">アーカイブメニューを表示する</a></li><li><a href="#h2h232">カレンダーを表示する</a></li><li><a href="#h2h233">パーツを読み込む</a></li><li><a href="#h2h234">コンディショナルタグ</a><ul><li><a href="#h3h31">ダイナミックハイライトメニュー</a></li><li><a href="#h3h32">ダイナミックタイトルタグ</a></li><li><a href="#h3h33">ダイナミックコンテンツ</a></li><li><a href="#h3h34">ハイライトする記事を目立たせる</a></li><li><a href="#h3h35">1つのテンプレートをユニークにする</a></li><li><a href="#h3h36">カテゴリテンプレートをユニークにする</a></li></ul></li><li><a href="#h2h235">クエリーポスト</a><ul><li><a href="#h3h37">最新記事を表示する</a></li><li><a href="#h3h38">特定の記事を表示する</a></li><li><a href="#h3h39">特定のカテゴリから除外する</a></li></ul></li><li><a href="#h2h236">カスタムフィールド</a></li><li><a href="#h2h237">リストページ</a><ul><li><a href="#h3h310">サイトマップ</a></li><li><a href="#h3h311">ダイナミックサブページメニュー</a></li></ul></li><li><a href="#h2h238">ページテンプレート</a></li><li><a href="#h2h239">/</a></li><li><a href="#h2h240">WordPress各種設定</a><ul><li><a href="#h3h312">トップページをカスタムする</a></li><li><a href="#h3h313">パーマリンク</a></li></ul></li><li><a href="#h2h241">カテゴリ接頭語</a>
</li>
</ul>

</ul>
<h2 id="h2h21">ブログ名</h2>

<p>&lt;?php bloginfo('name');?&gt;

</p>

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

<p>&lt;?php bloginfo('url');?&gt;

</p>

<h2 id="h2h23">サブタイトル</h2>

<p>&lt;?php bloginfo('description');?&gt;

</p>

<h2 id="h2h24">メタタイプの入力</h2>

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

</p>

<p>例）<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo('html_type');?&gt;; charset=&lt;?php bloginfo('charset');?&gt;&quot; /&gt;

</p>

<h2 id="h2h25">ここの部分&lt;?php bloginfo('html_type');?&gt;</h2>

<h2 id="h2h26">文字コード&lt;?php bloginfo('charset');?&gt;</h2>

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

<p>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php bloginfo('stylesheet_url'); ?&gt;&quot; /&gt;

</p>

<h2 id="h2h28">バージョン情報</h2>

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

</p>

<p>例）<br />
&lt;meta name=&quot;generator&quot; content=&quot;WordPress&lt;?php bloginfo('charset');?&gt;&quot;/&gt;

</p>

<p>&lt;?php bloginfo('charset');?&gt;

</p>

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

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

</p>

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

</p>

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

</p>

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

</p>

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

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

<p>&lt;?php posts_nav_link(' |','&laquo;前のページ','次のページ &raquo;'); ?&gt;

</p>

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

</p>

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

<p>&lt;?php wp_get_archives('type=postbypost&amp;limit=10'); ?&gt;

</p>

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

<p>&lt;?php list_cats(0,'name')?&gt;

</p>

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

<p>&lt;?php wp_get_archives('type=monthly'); ?&gt;

</p>

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

</p>

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

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

</p>

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

</p>

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

</p>

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

</p>

<h2 id="h2h215">クエリースタイル</h2>

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

</p>

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

</p>

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

</p>

<p>一般

</p>

<p>記事

</p>

<p>日付

</p>

<p>カテゴリー

</p>

<p>リンク

</p>

<p>コピーライト

</p>

<p>コメント

</p>

<p>その他

</p>

<p>パラメータの一覧

</p>

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

<p>&lt;?php wp_loginout(); ?&gt;

</p>

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

<p>&lt;?php wp_register();?&gt;

</p>

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

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

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

<p>&lt;?php single_post_title(); ?&gt;

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

<p>&lt;?php the_content(); ?&gt;

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

<p>&lt;?php the_meta(); ?&gt;

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_ID(); ?&gt;&lt;/h1&gt;

</p>

<p>&lt;?php edit_post_link(); ?&gt;

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;）

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

<p>&lt;?php the_content(); ?&gt;

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;）

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

<p>&lt;?php the_content(); ?&gt;

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

</p>

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

</p>

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

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

<p>&lt;?php the_date(); ?&gt; &lt;?php the_time(); ?&gt;

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

<p>&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

</p>

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

</p>

<p>&lt;?php endwhile; endif; ?&gt;

</p>

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

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

</p>

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

<p>&lt;?php get_archives(); ?&gt;

</p>

<p>&lt;?php get_archives('type=postbypost&amp;limit=5',); ?&gt;

</p>

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

<p>&lt;?php get_calendar(); ?&gt;

</p>

<h2 id="h2h233">パーツを読み込む</h2>

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

</p>

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

</p>

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

</p>

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

</p>

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

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

</p>

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

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

</p>

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

</p>

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

</p>

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

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

</p>

<p>&lt;title&gt;<br />
&lt;?phpif (is_home()) {<br />
echo bloginfo('name');<br />
} elseif (is_404()) {<br />
echo '404 Not Found';<br />
} elseif (is_category()) {<br />
echo 'Category:'; wp_title('');<br />
} elseif (is_search()) {<br />
echo 'Search Results';<br />
} elseif ( is_day() | | is_month() | | is_year() ) {<br />
echo 'Archives:'; wp_title('');<br />
} else {echo wp_title('');<br />
}<br />
?&gt;<br />
&lt;/title&gt;

</p>

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

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

</p>

<p>&lt;?php if ( is_home() ) { include ('file.php'); } ?&gt;<br />

</p>

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

<p>CSSクラスを追加

</p>

<p>&lt;?php if ( in_category('2') ) { echo ('class=&quot;feature&quot;'); } ?&gt;

</p>

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

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

</p>

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

</p>

<p>&lt;?php<br />

</p>

$post= $wp_query- &gt;post;
<p>if ( in_category('1') ) {<br />
include(TEMPLATEPATH . '/single1.php');<br />
} elseif ( in_category('2') ) {<br />
include(TEMPLATEPATH . '/single2.php');<br />
} else {<br />
include(TEMPLATEPATH . '/single_other.php');<br />
}<br />
? &gt;

</p>

<h3 id="h3h36">カテゴリテンプレートをユニークにする</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>

<p>&lt;?php if (have_posts()) : ?&gt;&lt;?php while (have_posts()) : the_post(); $loopcounter++; ?&gt;<br />
// the loop stuffs<br />
&lt;?php if ($loopcounter &lt;= 1) { include (TEMPLATEPATH . '/ad.php'); } ?&gt;<br />
&lt;?php endwhile; ?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;?php endif; ?&gt;<br />

</p>

<h2 id="h2h235">クエリーポスト</h2>

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

</p>

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

</p>

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

</p>

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

</p>

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

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

</p>

<p>&lt;?php query_posts('showposts=5'); ?&gt;<br />
&lt;ul&gt;<br />
&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
&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;<br />
&lt;?php endwhile;?&gt;<br />
&lt;/ul&gt;

</p>

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

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

</p>

<p>&lt;?php query_posts('cat=2&amp;showposts=5'); ?&gt;<br />
&lt;ul&gt;<br />
&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
&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;<br />
&lt;?php endwhile;?&gt;<br />
&lt;/ul&gt;

</p>

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

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

</p>

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

</p>

<p>&lt;?php query_posts('cat=-2'); ?&gt;<br />
&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
//the loop here<br />
&lt;?php endwhile;?&gt;<br />
Tips：posts_per_page引数を使うことによって、ページの記事ごとに上書することもできる。（例：query_posts('posts_per_page=6');）

</p>

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

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

</p>

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

</p>

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

</p>

<p>&lt;?php //get article_image (custom field) ?&gt;<br />
&lt;?php $image= get_post_meta($post-&gt;ID, 'article_image', true); ?&gt;

</p>

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

</p>

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

</p>

<h2 id="h2h237">リストページ</h2>

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

</p>

<h3 id="h3h310">サイトマップ</h3>

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

</p>

<p>&lt;ul&gt;<br />
&lt;?php wp_list_pages('exclude=12&amp;title_li=' ); ?&gt;<br />
&lt;/ul&gt;<br />

</p>

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

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

</p>

<p>&lt;?php<br />

</p>

$children= wp_list_pages('title_li=&amp;child_of='.$post-&gt;ID.'&amp;echo=0');
<p>if ($children) { ?&gt;<br />
&lt;ul&gt;<br />
&lt;?php echo $children; ?&gt;<br />
&lt;/ul&gt;<br />
&lt;?php } ?&gt;

</p>

<h2 id="h2h238">ページテンプレート</h2>

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

</p>

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

</p>

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

</p>

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

</p>

<p>&lt;?php<br />
/*<br />
Template Name: Portfolio<br />

</p>

<h2 id="h2h239">/</h2>

<p>?&gt;<br />
&lt;?php get_header(); ?&gt;<br />
//the loop here<br />
&lt;?php get_footer(); ?&gt;

</p>

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

</p>

<h2 id="h2h240">WordPress各種設定</h2>

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

</p>

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

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

</p>

<h3 id="h3h313">パーマリンク</h3>

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

</p>

<h2 id="h2h241">カテゴリ接頭語</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;
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa [...]]]></description>
			<content:encoded><![CDATA[<p>html ソースそのものを記述するときは、行頭にcode:と記述します。

</p>

<pre id="presouce1">

<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>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=874</guid>
		<description><![CDATA[


右に配置



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





右:http:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47; [...]]]></description>
			<content:encoded><![CDATA[

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

</div>

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

</p>

<pre id="presouce1">

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

<div id="divright2">
<p style="text-align:right;"<img src="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" class="picture" alt="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" width="160" />
</a>
</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:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife [...]]]></description>
			<content:encoded><![CDATA[

<div id="divcenter1">
<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="presouce1">

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

<div id="divcenter2"><p style="text-align:center;"<img src="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" class="picture" alt="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" width="160" /></a></p>

</div>

<ul class="foot-note-"><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:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47;t&#47;te [...]]]></description>
			<content:encoded><![CDATA[<p>画像のURIの直後に?w=数字h=数字alt=簡単な説明(区切りはスペース)

</p>

<pre id="presouce1">

<code title="line1">http:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47;t&#47;tenman&#47;20090506&#47;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:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47;t&#47;tenman&#47;20090506&#47;200 [...]]]></description>
			<content:encoded><![CDATA[<h3 id="h3h31">画像のURLだけを記述した場合</h3>

<pre id="presouce1">

<code title="line1">http:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47;t&#47;tenman&#47;20090506&#47;20090506114932.png</code>
</pre>
<img src="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" class="picture" alt="http://f.hatena.ne.jp/images/fotolife/t/tenman/20090506/20090506114932.png" width="160" />
</a>

<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:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47;t&#47;tenman&#47;20090506&# [...]]]></description>
			<content:encoded><![CDATA[<h3 id="h3h31">自動サムネール画像リンク</h3>

<pre id="presouce1">

<code title="line1">copy&gt;(http:&#47;&#47;f.hatena.ne.jp&#47;images&#47;fotolife&#47;t&#47;tenman&#47;20090506&#47;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:&#47;&#47;www.youtube.com&#47;watch?v=oUiHQ7fimv8)



動画リンクは、閲覧する場合に、表示までに時間がかかりますので、その点に配慮 [...]]]></description>
			<content:encoded><![CDATA[<pre id="presouce1">

<code title="line1">youtube&gt;(http:&#47;&#47;www.youtube.com&#47;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[エディタの昨日でもリンクを作ることができますが、もっと簡単にリンクを張る方法もありますので、リンク記法をご紹介します。





http:&#47;&#47;www.tenman.info&#47;(好きなタイトル)
 [...]]]></description>
			<content:encoded><![CDATA[<p>エディタの昨日でもリンクを作ることができますが、もっと簡単にリンクを張る方法もありますので、リンク記法をご紹介します。

</p>

<pre id="presouce1">

<code title="line1">http:&#47;&#47;www.tenman.info&#47;(好きなタイトル)</code>
</pre>

<a href="http://www.tenman.info/" onclick="this.target='_self';" onkeypress="this.target='_self';">好きなタイトル</a>リンク先のタイトルを取得<pre id="presouce2">

<code title="line1">http:&#47;&#47;www.tenman.info&#47;(title)</code>
</pre><a href="http://www.tenman.info/" onclick="this.target='_self';" onkeypress="this.target='_self';">www.tenman.info</a>リンク先のページを新しいページで開く<pre id="presouce3">

<code title="line1">http:&#47;&#47;www.tenman.info&#47;(b:title)</code>
</pre><a href="http://www.tenman.info/" onclick="this.target='_blank';" onkeypress="this.target='_blank';">www.tenman.info</a>画像リンクを作る<pre id="presouce4">

<code title="line1">http:&#47;&#47;www.tenman.info(&lt;img src=&quot;http:&#47;&#47;www.tenman.info&#47;images&#47;logo.gif&quot; &#47;&gt;)</code>
</pre><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>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)を用意すれば、フォントを指定して文字列の画像化ができます。<br />

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