• I am trying to get pagination working with the wp pagenavi plugin on a portfolio page within a theme I’m using in wordpress and I am having no luck.

    Here is a version of my portfolio page code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Ideally what I would like to do is control how many samples are shown per page instead of the theme is showing all samples in a given category.

    Thanks for the help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Perotin

    (@perotin)

    the same template here and the same problem. you could change “‘posts_per_page’ => -1” to a number you want but don’t know how to add the pagination.
    Anybody?

    Perotin

    (@perotin)

    Ok, I think I’ve solved it. Replace the code with this one:

    https://pastebin.com/0TMNr042

    and don’t forget to install the wp-pagenavi plugin.

    Thread Starter redfixfive

    (@redfixfive)

    I’ll have to check it out. did you do it on the portfolio page or the home page?

    Perotin

    (@perotin)

    i changed the template-home.php (it lists your portfolio work)

    Thread Starter redfixfive

    (@redfixfive)

    I was trying to add the pagenavi to this page (template-portfolio.php). Do you have a link to your site to check out?

    Perotin

    (@perotin)

    sorry, i’m doing it on my localhost server.
    hm..I dont’have that file in my folder. is that the “artiste” theme?

    Thread Starter redfixfive

    (@redfixfive)

    no it’s the scope theme

    Perotin

    (@perotin)

    sorry, the code was so similar to my theme… but i think you could solve the problem by comparing the code I gave you with your template.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wp pagenavi plugin on a portfolio page’ is closed to new replies.