Portfolio pagination

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 4 replies, has 2 voices, and was last updated by  Max 4 years, 4 months ago.

  • Author
    Posts
  • #1054

    kais72
    Member
    Post count: 3

    Hi,

    Is there an easy way to paginate portfolio page?
    I’ve been looking for in template-portfolio.php and it seems to be prepared for that (line 87 ‘post_per_page’ => 12).

    Manh told me I have to customize it myself… but maybe now someone can help me to do this.

    Thanks in advance.

  • #1070

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #1086

    kais72
    Member
    Post count: 3

    Thanks,

    Very interesting page. The problem is that I’m not a developer and my php skills are very poor.
    Anyway, at this moment the pagination is finally working.

    What I’ve done (and, of course, this probably is an horrible soution to this issue):
    1. On template-portfolio.php I’ve changed $loop by $wp_query
    2. Added md_pagi_nav(); after loop.

    Now I have a paginated portfolio (of course I’ve changed ‘post_per_page’ => -1 to the number of items desired, 12 in my case) BUT works perfectly only with default permalinks. I’m using /%postname%/ and I get an 404 error everytime I click on a page different than the first.

    Any ideas on how to solve this 404 error?

    Thanks in advance.

  • #1089

    kais72
    Member
    Post count: 3

    Ok,

    Forget my reply. It’s working perfect now.
    The 404 error was just because the name of the portfolio page (Hemeroteca) it was the same name of the “Rewrite Portfolio Items URL Base” in the Theme Options.

    Thanks anyway.

  • #1091

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!