<?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: Conditional page/post navigation links in WordPress</title>
	<atom:link href="http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Dec 2011 18:15:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Eric Martin</title>
		<link>http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-8223</link>
		<dc:creator>Eric Martin</dc:creator>
		<pubDate>Mon, 04 May 2009 15:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-8223</guid>
		<description>@David - Have you checked out the updated version of this concept?</description>
		<content:encoded><![CDATA[<p>@David - Have you checked out the updated version of this concept?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Swain</title>
		<link>http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-8203</link>
		<dc:creator>David Swain</dc:creator>
		<pubDate>Sun, 03 May 2009 02:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-8203</guid>
		<description>Hi

I would like to use this function, or a variant of it but i cant get it working, basically i am using previous_post_link() as follows:
	
&lt;code&gt;
$img = &quot;&lt;img src=\&quot;/image/galleries/&quot; . $catnicename . &quot;/&quot; . $image .&quot;\&quot;  alt=\&quot;&quot; . get_the_title() . &quot;\&quot; /&gt;&quot;;

		if (previous_post_link(&#039;%link&#039;, $img, TRUE) == Null) {
			echo $img;
		} else {
			previous_post_link(&#039;%link&#039;, $img, TRUE);
		}
&lt;/code&gt;

which works great inless there is a previous_post_link in which case it prints the link with the $img variable inbetween the &gt;a href tags (which is what i want, and then the $img again.

I am thinking the solution is in your code here somewhere but i cant find it, could you help me out?

David</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I would like to use this function, or a variant of it but i cant get it working, basically i am using previous_post_link() as follows:</p>
<p><code><br />
$img = &quot;&lt;img src=\&quot;/image/galleries/&quot; . $catnicename . &quot;/&quot; . $image .&quot;\&quot;  alt=\&quot;&quot; . get_the_title() . &quot;\&quot; /&gt;&quot;;</p>
<p>		if (previous_post_link(&#39;%link&#39;, $img, TRUE) == Null) {<br />
			echo $img;<br />
		} else {<br />
			previous_post_link(&#39;%link&#39;, $img, TRUE);<br />
		}<br />
</code></p>
<p>which works great inless there is a previous_post_link in which case it prints the link with the $img variable inbetween the &gt;a href tags (which is what i want, and then the $img again.</p>
<p>I am thinking the solution is in your code here somewhere but i cant find it, could you help me out?</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Infinite Scrolling: Adeus, links de navegação! &#124; The Back-up Brain Weblog</title>
		<link>http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-4451</link>
		<dc:creator>Infinite Scrolling: Adeus, links de navegação! &#124; The Back-up Brain Weblog</dc:creator>
		<pubDate>Sun, 16 Nov 2008 02:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-4451</guid>
		<description>[...] possuía essa navegação embutida. Assim que reparei nesse problema, pensei imediatamente não em criá-los no rodapé, mas sim, em fazer uso do excelente plugin WP-PageNavi, que, no caso do modelo de índice do blog, [...]</description>
		<content:encoded><![CDATA[<p>[...] possuía essa navegação embutida. Assim que reparei nesse problema, pensei imediatamente não em criá-los no rodapé, mas sim, em fazer uso do excelente plugin WP-PageNavi, que, no caso do modelo de índice do blog, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Martin</title>
		<link>http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-125</link>
		<dc:creator>Eric Martin</dc:creator>
		<pubDate>Thu, 17 Jan 2008 20:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-125</guid>
		<description>@Naif - this code was deprecated in favor of a &lt;a href=&quot;http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/&quot; rel=&quot;nofollow&quot;&gt;different approach&lt;/a&gt;. However, you did find something that must have been garbled when posting:

&lt;code&gt;$nextpage = intval($paged) 1;&lt;/code&gt;

should be:

&lt;code&gt;$nextpage = intval($paged) + 1;&lt;/code&gt;

which makes &lt;code&gt;$nextpage &lt;= $max_page&lt;/code&gt; correct. I&#039;ve updated the page and will put a note about this approach being replaced.</description>
		<content:encoded><![CDATA[<p>@Naif - this code was deprecated in favor of a <a href="http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/" rel="nofollow">different approach</a>. However, you did find something that must have been garbled when posting:</p>
<p><code>$nextpage = intval($paged) 1;</code></p>
<p>should be:</p>
<p><code>$nextpage = intval($paged) + 1;</code></p>
<p>which makes <code>$nextpage < = $max_page</code> correct. I've updated the page and will put a note about this approach being replaced.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naif</title>
		<link>http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-124</link>
		<dc:creator>Naif</dc:creator>
		<pubDate>Thu, 17 Jan 2008 18:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress/#comment-124</guid>
		<description>Hi. I think there are two bugs here... I believe 

&lt;code&gt;$nextpage &lt;= $max_page&lt;/code&gt;

should actually be 

&lt;code&gt;$nextpage &lt; $max_page&lt;/code&gt;

And why is there a 1 at the end on the following line:

&lt;code&gt;$nextpage = intval($paged)   1; &lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi. I think there are two bugs here... I believe </p>
<p><code>$nextpage &lt;= $max_page</code></p>
<p>should actually be </p>
<p><code>$nextpage &lt; $max_page</code></p>
<p>And why is there a 1 at the end on the following line:</p>
<p><code>$nextpage = intval($paged)   1; </code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

