<?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>more タグに関するページ｜蕨市のホームページ作成/パソコントラブル解決はトータルオフィスネット</title>
	<atom:link href="http://www.total-office-net.com/tag/more/feed" rel="self" type="application/rss+xml" />
	<link>http://www.total-office-net.com</link>
	<description>埼玉県蕨市を中心にSOHO/中小企業様向けにホームページ/ショッピングサイト作成，パソコントラブル解決を行ってます。</description>
	<lastBuildDate>Tue, 07 Sep 2010 17:21:02 +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://www.total-office-net.com/tag/more/feed" />
		<item>
		<title>more タグに関するページ｜蕨市のホームページ作成/パソコントラブル解決はトータルオフィスネット</title>
		<link>http://www.total-office-net.com/it_blog/wordpress/sidebar_page_more</link>
		<comments>http://www.total-office-net.com/it_blog/wordpress/sidebar_page_more#comments</comments>
		<pubDate>Sun, 28 Feb 2010 17:14:07 +0000</pubDate>
		<dc:creator>Hirara</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[more]]></category>
		<category><![CDATA[the_content]]></category>
		<category><![CDATA[スラッグ]]></category>

		<guid isPermaLink="false">http://www.total-office-net.com/?p=580</guid>
		<description><![CDATA[WordPressでテンプレートを自作したときに、サイドバーに文章を追加したい場面は多々あるかと思います。
サイドバーにウィジェットを設置して、テキストで文章を記載してもよいのですが、ページを読み込ませたい時もありますよ [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressでテンプレートを自作したときに、サイドバーに文章を追加したい場面は多々あるかと思います。</p>
<p>サイドバーにウィジェットを設置して、テキストで文章を記載してもよいのですが、ページを読み込ませたい時もありますよね？</p>
<p>読み込ませるのは、比較的簡単。<br />
例えば、こんな感じでしょうか。（ページスラッグを利用）</p>
<blockquote><p>&lt;?php query_posts(&#8216;pagename=ページスラッグ&#8217;); ?&gt;<br />
&lt;?php if(have_posts()): while(have_posts()): the_post(); ?&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;?php endwhile; endif; ?&gt;</p></blockquote>
<p>ただ、ページの記事が思ったよりも長くなってしまって「&lt;!&#8211;more&#8211;&gt;」で「続きを読む」とかしたい場合もあると思います。</p>
<p>一工夫くわえなければ「&lt;!&#8211;more&#8211;&gt;」を利用できませんでした。</p>
<p>参考にしたのは、こちら。<br />
　→<a href="http://ja.forums.wordpress.org/topic/2569" target="_blank">固定ページ（トップページ）の記事に&lt;!&#8211;more&#8211;&gt;を付けたい</a></p>
<p>どうやら、</p>
<blockquote><p>&lt;?php $more = 0; ?&gt;</p></blockquote>
<p>を挿入しなければいけなかった模様。<br />
こうなりました。</p>
<blockquote><p>&lt;?php query_posts(&#8216;pagename=ページスラッグ&#8217;); ?&gt;<br />
&lt;?php if(have_posts()): while(have_posts()): the_post(); ?&gt;<br />
&lt;?php $more = 0; ?&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;?php endwhile; endif; ?&gt;</p></blockquote>
<p>無事、「続きを読む」が表示されました。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.total-office-net.com/it_blog/wordpress/sidebar_page_more/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.total-office-net.com/it_blog/wordpress/sidebar_page_more" />
	</item>
	</channel>
</rss>
