Closed devinsays closed 13 years ago
Confirmed that this is an issue. Paging works fine when the native custom post type archive is shown, or when the portfolio template- but it breaks when that template is set as the front page under reading options.
Here's some resources that might help solve the issue: http://markjaquith.wordpress.com/2010/07/19/wordpress-question-answer-july-19th-2010/ http://weblogtoolscollection.com/archives/2008/04/19/paging-and-custom-wordpress-loops/ http://mondaybynoon.com/2011/05/16/wordpress-posts-per-page-per-custom-post-type/
Added the paging bug fix back in:
// WP 3.0 PAGED BUG FIX
if ( get_query_var('paged') )
$paged = get_query_var('paged');
elseif ( get_query_var('page') )
$paged = get_query_var('page');
else
$paged = 1;
This bug is still unresolved, any news on this? I'm using portfolio template as home.
@pedro-mendonca My mention of this issue in a commit was accidental (I was just indicating that the commit was the second in a series). My recent commit does not relate to this issue. If you are still having problems, you might want to reopen this or create a new issue.
Hi @pedro-mendonca. The paging works for me. Could you open a new issue listing exactly which template you are using, how many items of you have, and the what is set under "Settings > Reading Options > Posts Per Page"? I'll look into it.
Just a quick observation that when I set the Portfolio page as the home page under Settings > Reading then the “older posts” link doesn’t work (using WP-PageNavi also doesn’t work). Works fine as long as the Portfolio page isn’t set as the home page.