• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Reply To: Portfolio Pagination on the Home Page

Home › Community Forums › Epik Theme Support › Portfolio Pagination on the Home Page › Reply To: Portfolio Pagination on the Home Page

January 22, 2015 at 5:40 pm #14954
Ivan Entusiasmado
Customer

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?

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework