<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Improving WordPress page navigation: fixing next_post_link() and previous_post_link()</title>
	<atom:link href="http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/</link>
	<description>Website Coding Tips &#38; Graphic Design Inspiration</description>
	<lastBuildDate>Fri, 30 Jul 2010 07:44:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=2744</generator>
	<item>
		<title>By: 2k</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-6868</link>
		<dc:creator>2k</dc:creator>
		<pubDate>Fri, 30 Jul 2010 07:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-6868</guid>
		<description>Ryan, when using image like this, instead of text, is it possible to get alt=&quot;previous post title name&quot; instead alt=&quot;previous&quot;?</description>
		<content:encoded><![CDATA[<p>Ryan, when using image like this, instead of text, is it possible to get alt=&#8221;previous post title name&#8221; instead alt=&#8221;previous&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-6864</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 29 Jul 2010 20:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-6864</guid>
		<description>Hey Matt,

All you need to do is replace this piece:

&lt;pre&gt;echo &#039;&lt; span&gt;&#171;Previous&lt; /span&gt;&#039;;&lt;/pre&gt;

with something like:

&lt;pre&gt;echo &#039;&lt; img src=&quot;xyz.png&quot; alt=&quot;Previous&quot; /&gt;&#039;;&lt;/pre&gt;

You can even replace the img HTML code with a variable:

&lt;pre&gt;$image = &#039;&lt; img src=&quot;xyz.png&quot; alt=&quot;Previous&quot; /&gt;&#039;;

echo $image;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hey Matt,</p>
<p>All you need to do is replace this piece:</p>
<pre>echo '< span>&laquo;Previous< /span>';</pre>
<p>with something like:</p>
<pre>echo '< img src="xyz.png" alt="Previous" />';</pre>
<p>You can even replace the img HTML code with a variable:</p>
<pre>$image = '< img src="xyz.png" alt="Previous" />';

echo $image;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-6857</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 29 Jul 2010 17:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-6857</guid>
		<description>How would you make the &quot;previous&quot; or &quot;next&quot; be an image button instead of text?</description>
		<content:encoded><![CDATA[<p>How would you make the &#8220;previous&#8221; or &#8220;next&#8221; be an image button instead of text?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-5394</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-5394</guid>
		<description>Hi 2K, I&#039;m not sure what your question is; would you mind clarifying?</description>
		<content:encoded><![CDATA[<p>Hi 2K, I&#8217;m not sure what your question is; would you mind clarifying?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 2k</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-5392</link>
		<dc:creator>2k</dc:creator>
		<pubDate>Tue, 06 Jul 2010 11:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-5392</guid>
		<description>Hi there, thanx for great solution. But can you explain how to add  in { echo &#039;Next &#187;&#039;; } instead of word: Next.?</description>
		<content:encoded><![CDATA[<p>Hi there, thanx for great solution. But can you explain how to add  in { echo &#8216;Next &raquo;&#8217;; } instead of word: Next.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-5393</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 06 Jul 2010 10:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-5393</guid>
		<description>Hey Jez,

I was having trouble with email notifications so I apologize for the delayed response. If you take a look at the functions above you&#039;ll see that they take a comma separated list of excluded categories as the second parameter. So to exclude categories 4 and 6 you would put:

&lt;pre&gt;&lt;?php if(!get_adjacent_post(false, &#039;4,6&#039;, true)) { echo &#039;&lt;span&gt;&#171;Previous&lt;/span&gt;&#039;; } ?&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hey Jez,</p>
<p>I was having trouble with email notifications so I apologize for the delayed response. If you take a look at the functions above you&#8217;ll see that they take a comma separated list of excluded categories as the second parameter. So to exclude categories 4 and 6 you would put:</p>
<pre>< ?php if(!get_adjacent_post(false, '4,6', true)) { echo '<span>&laquo;Previous'; } ?></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez Thompson</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-5391</link>
		<dc:creator>Jez Thompson</dc:creator>
		<pubDate>Fri, 18 Jun 2010 16:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-5391</guid>
		<description>Cheers Ryan, so it looks like this...

&lt;pre&gt;
&lt;?php if(!get_adjacent_post(true, &#039;&#039;, true)) { echo &#039;&#171;Previous&#039;; } // if there are no older articles ?&gt;

&lt;?php if(!get_adjacent_post(true, &#039;&#039;, false)) { echo &#039;Next &#187;&#039;; } // if there are no newer articles ?&gt;
&lt;/pre&gt;

Because i tried that and it just scrolls through all the posts, i am using this in a news category and want it to work just with say cat id 9..</description>
		<content:encoded><![CDATA[<p>Cheers Ryan, so it looks like this&#8230;</p>
<pre>
&lt;?php if(!get_adjacent_post(true, &#039;&#039;, true)) { echo &#039;&laquo;Previous'; } // if there are no older articles ?&gt;

&lt;?php if(!get_adjacent_post(true, &#039;&#039;, false)) { echo &#039;Next &raquo;'; } // if there are no newer articles ?&gt;
</pre>
<p>Because i tried that and it just scrolls through all the posts, i am using this in a news category and want it to work just with say cat id 9..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-5390</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 18 Jun 2010 15:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-5390</guid>
		<description>Hey there Jez,

Take a look above, below the heading that says &quot;The solution, with sample markup.&quot; The get_adjacent_posts() function takes the $in_same_cat as the first parameter. Set it to &quot;true&quot; if you only want to retrieve posts that are in the same category as the one you&#039;re viewing; &quot;false&quot; if you want to retrieve posts in any category.

What exactly is not working for you? Maybe I can be of more help if you provide some more details.</description>
		<content:encoded><![CDATA[<p>Hey there Jez,</p>
<p>Take a look above, below the heading that says &#8220;The solution, with sample markup.&#8221; The get_adjacent_posts() function takes the $in_same_cat as the first parameter. Set it to &#8220;true&#8221; if you only want to retrieve posts that are in the same category as the one you&#8217;re viewing; &#8220;false&#8221; if you want to retrieve posts in any category.</p>
<p>What exactly is not working for you? Maybe I can be of more help if you provide some more details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez Thompson</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-5389</link>
		<dc:creator>Jez Thompson</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-5389</guid>
		<description>Hello.

Where and how do i add the $in_same_cat into your simple example?

Cannot seem to get it to work..

Cheers :)</description>
		<content:encoded><![CDATA[<p>Hello.</p>
<p>Where and how do i add the $in_same_cat into your simple example?</p>
<p>Cannot seem to get it to work..</p>
<p>Cheers <img src='http://www.3roadsmedia.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/comment-page-1/#comment-194</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Fri, 09 Apr 2010 09:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.3roadsmedia.com/?p=746#comment-194</guid>
		<description>thats cool ryan.

Thanks for ya help. It works :)</description>
		<content:encoded><![CDATA[<p>thats cool ryan.</p>
<p>Thanks for ya help. It works <img src='http://www.3roadsmedia.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
