Portfolio Pagination on the Home Page

Homepage Community Forums Epik Theme Support Portfolio Pagination on the Home Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13133
    bryce13
    Customer

      I’m using the Portfolio template on my home page and the pagination isn’t working. It displays the proper buttons and the links are correct (e.g. /page/2/) but it’s displaying the same content for every button.

      #13146
      Eric
      Customer

        I noticed the same thing as well. I mentioned here – appfinite.com/topic/recent-blog-posts-on-front-page-pagination/#post-12987 that I posted on the StudioPress forum but haven’t heard anything back yet. I’m sure it’s something that was changed in the Genesis Framework itself and not the child theme, but not sure what exactly.

        It only happens when we use the portfolio as a homepage. Other than that, if you use it as a regular page the pagination seems to work fine. In the past it worked both ways.


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #14954

        After reading a lot about that issue I have found a page where it refers to that problem. It seems to be a wordpress problem.
        http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/
        Many comments seem to be happy with the solution.
        As it is refered as a solution in here: https://wordpress.org/support/topic/wp-30-bug-with-pagination-when-using-static-page-as-homepage-1
        So in that first web it says you have to replace code:

        <?php if (have_posts()) : ?>
        <?php query_posts(“category_name=somecat”); ?>
        <?php while (have_posts()) : the_post(); ?>

        replace with

        <?php if (have_posts()) : ?>
        <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts(“category_name=somecat&paged=$paged”); ?>
        <?php while (have_posts()) : the_post(); ?>

        The thing is I don´t find where I should make the code change for that to work.
        It is possible this solves this problem?

      Viewing 3 posts - 1 through 3 (of 3 total)
      • You must be logged in to reply to this topic.