Portfolio pagination

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

Status: resolved
  • This topic has 4 replies, 2 voices, and was last updated 5 y, 11 mo by  Max.
Viewing 4 reply threads
  • Author
    Posts
    • #1054

      kais72
      Member

      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

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

      Login | Register | Forgot Password?

    • #1086

      kais72
      Member

      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

      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

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

      Login | Register | Forgot Password?

Viewing 4 reply threads
  • You must be logged in to reply to this topic.

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

© Copyright 2019 by wpthms.com. All Rights Reserved.