• 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: Reply To: Reply To: Reply To: pagenation?

Home › Community Forums › Skope Theme Support › pagenation? › Reply To: Reply To: Reply To: Reply To: pagenation?

November 26, 2012 at 2:26 pm #1963
Wes
Moderator

I’m still not sure why its happening exactly, but it appears to be an issue with the Genesis Loop code. If you look in your home.php file near the bottom you’ll see this –

// Remove standard loop
remove_action(‘genesis_loop’, ‘genesis_do_loop’);

// Add custom loop
add_action(‘genesis_loop’, ‘skope_home_loop’);
function skope_home_loop() {
$paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;

$include = genesis_get_option(‘skope_home_cat’);
$exclude = genesis_get_option(‘skope_home_cat_exclude’) ? explode(‘,’, str_replace(‘ ‘, ”, genesis_get_option(‘skope_home_cat_exclude’))) : ”;

$cf = genesis_get_custom_field(‘query_args’);
$args = array(‘cat’ => $include, ‘category__not_in’ => $exclude, ‘showposts’ => genesis_get_option(‘blog_cat_num’), ‘paged’ => $paged);
$query_args = wp_parse_args($cf, $args);

genesis_custom_loop( $query_args );
}

If you delete or comment out the above code then it should work fine. When you do this, you will have to change the number of posts to show in your Settings > Reading page like you were doing before since the Genesis Settings page won’t work (since the code above removes that functionality for the homepage).

The only way I could make this issue appear was to change my number of posts to less than what it was, but it seemed to work fine if I had it at 9 for some reason. The suggestion above should fix it though.

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