<?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; pages</title>
	<atom:link href="http://flav36rs.com/tag/pages/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>How to enable excerpts for pages in WordPress</title>
		<link>http://flav36rs.com/2010/10/11/how-to-enable-excerpts-for-pages-in-wordpress/</link>
		<comments>http://flav36rs.com/2010/10/11/how-to-enable-excerpts-for-pages-in-wordpress/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 18:20:32 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[pages]]></category>

		<guid isPermaLink="false">http://36flavours.com/?p=731</guid>
		<description><![CDATA[If you are a theme or plugin author, you may require additional functionality to allow for additional page content to be added, managed and displayed. One way this can be achieved, without resorting to custom page meta inputs, is to &#8230; <a href="http://flav36rs.com/2010/10/11/how-to-enable-excerpts-for-pages-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are a theme or plugin author, you may require additional functionality to allow for additional page content to be added, managed and displayed.</p>
<p>One way this can be achieved, without resorting to custom page meta inputs, is to simply enable support for <strong>excerpts</strong> on pages.<span id="more-731"></span></p>
<p>The excerpt content section that is visible on the post edit screen will then be displayed on the standard page content editing screen.</p>
<p>This can be achieved very quickly and easily by including the following lines in the theme <strong>functions.php</strong> file:</p>
<pre lang="php" escaped="true">    // Enable excerpts for pages...
add_action('init', 'enable_page_excerpts');
function enable_page_excerpts()
{
    add_post_type_support('page', 'excerpt');
}</pre>
<p>There are a few downsides to using this method, so it is advised that you use with caution.</p>
]]></content:encoded>
			<wfw:commentRss>http://flav36rs.com/2010/10/11/how-to-enable-excerpts-for-pages-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>

