devinsays / portfolio-press

A WordPress theme for artists and designers to showcase their work.
https://wptheming.com/portfolio-theme/
GNU General Public License v2.0
62 stars 30 forks source link

Paging Issues on Portfolio Pages #2

Closed devinsays closed 13 years ago

devinsays commented 13 years ago

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.

devinsays commented 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/

devinsays commented 13 years ago

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;
pedro-mendonca commented 10 years ago

This bug is still unresolved, any news on this? I'm using portfolio template as home.

TomLany commented 10 years ago

@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.

devinsays commented 10 years ago

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.