Forums

wp pagenavi plugin on a portfolio page (9 posts)

  1. redfixfive
    Member
    Posted 4 months ago #

    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.

  2. Perotin
    Member
    Posted 3 months ago #

    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?

  3. Perotin
    Member
    Posted 3 months ago #

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

    http://pastebin.com/0TMNr042

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

  4. redfixfive
    Member
    Posted 3 months ago #

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

  5. Perotin
    Member
    Posted 3 months ago #

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

  6. redfixfive
    Member
    Posted 3 months ago #

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

  7. Perotin
    Member
    Posted 3 months ago #

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

  8. redfixfive
    Member
    Posted 3 months ago #

    no it's the scope theme

  9. Perotin
    Member
    Posted 3 months ago #

    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.

Reply

You must log in to post.

About this Topic