<?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>Flav36rs &#187; 2.8.4</title>
	<atom:link href="http://flav36rs.com/tag/2-8-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://flav36rs.com</link>
	<description>Just another technical blog</description>
	<lastBuildDate>Mon, 12 Sep 2011 16:56:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WP &#8211; Enable read more links for pages</title>
		<link>http://flav36rs.com/2009/08/22/wp-enable-read-more-links-for-pages/</link>
		<comments>http://flav36rs.com/2009/08/22/wp-enable-read-more-links-for-pages/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 13:11:21 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2.8.4]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[the_loop]]></category>

		<guid isPermaLink="false">http://36flavours.com/?p=287</guid>
		<description><![CDATA[When listing pages using the_loop(), the latest version of WordPress (2.8.4) does not allow for a &#8220;Read more&#8230;&#8221; link to be appended to a list of pages using the_content() along with the &#60;!&#8211;more&#8211;&#62; quicktag. Although it wasn&#8217;t immediately obvious to &#8230; <a href="http://flav36rs.com/2009/08/22/wp-enable-read-more-links-for-pages/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When listing pages using <em>the_loop()</em>, the latest version of WordPress (<em>2.8.4</em>) does not allow for a &#8220;Read more&#8230;&#8221; link to be appended to a list of pages using <em>the_content()</em> along with the &lt;!&#8211;more&#8211;&gt; quicktag.</p>
<p>Although it wasn&#8217;t immediately obvious to me, read more links can be enabled by over-riding the global <em><strong>$more</strong></em> variable and setting it to <em>false</em>, <strong>before looping</strong> through the result set, for example:<span id="more-287"></span></p>
<pre lang="php">global $more; $more = FALSE;
query_posts('post_type=page');
if ( have_posts() ) : while ( have_posts() ) : the_post();
	the_content('Read More...');
endwhile; endif;</pre>
<p>I couldn&#8217;t actually discover why this is not the default behaviour when querying pages. There may be a good reason behind it, but in my experience I found it mildly irritating.</p>
]]></content:encoded>
			<wfw:commentRss>http://flav36rs.com/2009/08/22/wp-enable-read-more-links-for-pages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

