Comments on: Conditional page/post navigation links in WordPress (redux) http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/ Sun, 07 Mar 2010 21:17:38 +0000 http://wordpress.org/?v=2.9.2 hourly 1 By: Eric Martin http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9428 Eric Martin Sat, 05 Sep 2009 21:59:44 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9428 @Min Min- <code>max_num_pages</code> is calculated using those variables, so you should be fine comparing it it to 1. @Tracy - Sounds like a WordPress issue, not something caused by this code. It could be any number of things... @Jeff - good catch, thanks! I've updated the post with the correction. @Min Min- max_num_pages is calculated using those variables, so you should be fine comparing it it to 1.

@Tracy - Sounds like a WordPress issue, not something caused by this code. It could be any number of things...

@Jeff - good catch, thanks! I've updated the post with the correction.

]]>
By: Jeff http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9426 Jeff Sat, 05 Sep 2009 13:48:42 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9426 Don't you want to update archive.php not archives.php? Just curious. That might confuse folks too. Don't you want to update archive.php not archives.php? Just curious. That might confuse folks too.

]]>
By: Tracy http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9406 Tracy Fri, 04 Sep 2009 20:31:23 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9406 Very helpful code. But for some reason, when I click on older entries, none of the posts show up! Help? Very helpful code. But for some reason, when I click on older entries, none of the posts show up! Help?

]]>
By: Reino http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9222 Reino Mon, 31 Aug 2009 07:35:13 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9222 Great and simple solution that I am using at almost all my wordpress projects! Thanks mate! Great and simple solution that I am using at almost all my wordpress projects! Thanks mate!

]]>
By: Anatomy of an HTML5 Wordpress theme — Nicolas Gallagher — Blog & Ephemera http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9039 Anatomy of an HTML5 Wordpress theme — Nicolas Gallagher — Blog & Ephemera Mon, 24 Aug 2009 13:43:13 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-9039 [...] Source: Eric Martin – Conditional navigation links in WordPress [...] [...] Source: Eric Martin – Conditional navigation links in WordPress [...]

]]>
By: Min Min http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8409 Min Min Mon, 18 May 2009 18:07:28 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8409 Hi, Good job! However, you have hardcoded the max_num_pages to compare with 1. At my site <a href="http://www.learnchineseeveryday.com/" rel="nofollow">learn chinese online</a>, I have used Custom Post Limits plugin from http://coffee2code.com/wp-plugins/custom-post-limits/ where it allows users to define the limits for front page, categories, archives,etc. Currently I fixed the limits to a certain value and compare max_num_pages with that value. Does anyone know how to get the dynamic limits for each of those different sections? Hi,
Good job!
However, you have hardcoded the max_num_pages to compare with 1.
At my site learn chinese online, I have used Custom Post Limits plugin from http://coffee2code.com/wp-plugins/custom-post-limits/ where it allows users to define the limits for front page, categories, archives,etc.

Currently I fixed the limits to a certain value and compare max_num_pages with that value.

Does anyone know how to get the dynamic limits for each of those different sections?

]]>
By: Mathieu Proulx http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8324 Mathieu Proulx Thu, 14 May 2009 02:06:15 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8324 Hi! I had the same problem and didn't where to find the solution. Thanks a lot, this is a simple and clean way to fix the problem! Hi!
I had the same problem and didn't where to find the solution.
Thanks a lot, this is a simple and clean way to fix the problem!

]]>
By: Josh http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8316 Josh Wed, 13 May 2009 17:39:03 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8316 What CyruzDraxs said - is there any chance that you would be kind enough to do a version for the fancy new comments system? What CyruzDraxs said - is there any chance that you would be kind enough to do a version for the fancy new comments system?

]]>
By: Eric Martin http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8093 Eric Martin Wed, 22 Apr 2009 04:14:07 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8093 @Wisam - sounds like you need to do some custom coding in your functions.php file to handle that. @Marcy - were you able to get it working? Checked out your site - you do nice work! @CyruzDraxs - sorry, this is just for posts, not comments. @fyodor - Haha - glad you didn't throw it out ;) If you look at the second section of code, you'll see where each part (prev, next) are being called. @Wisam - sounds like you need to do some custom coding in your functions.php file to handle that.

@Marcy - were you able to get it working? Checked out your site - you do nice work!

@CyruzDraxs - sorry, this is just for posts, not comments.

@fyodor - Haha - glad you didn't throw it out ;) If you look at the second section of code, you'll see where each part (prev, next) are being called.

]]>
By: fyodor http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8030 fyodor Thu, 16 Apr 2009 05:48:17 +0000 http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/#comment-8030 does this code pull "newer posts" nav and "older posts" nav seperately? as in, if i have older posts but not newer, will it only display an older posts nav, etc? does this code pull "newer posts" nav and "older posts" nav seperately? as in, if i have older posts but not newer, will it only display an older posts nav, etc?

]]>