• 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

pagenation?

Home › Community Forums › Skope Theme Support › pagenation?

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by Wes.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 25, 2012 at 3:51 pm #1948
    rtibbs4
    Customer

    Any idea why my pagenation isn’t working properly? dadshops2. I get an error 404 when i try to go to the second page.

    Any help appreciated.

    November 25, 2012 at 4:19 pm #1950
    Wes
    Moderator

    Not sure why thats happening.  It seems to work fine on the demo.  Have you added any extra code, plugins, or anything that could affect this area?  Do you have additional posts?

    November 25, 2012 at 4:29 pm #1951
    rtibbs4
    Customer

    I do have additional posts and when I increase the number of posts on the home page the pagenation goes away as it should. I will check the plugins. I only have a social share, sitemap and linkwithin. I will see if any of those is interfering.

    November 26, 2012 at 9:27 am #1959
    rtibbs4
    Customer

    Deactivated the plugins and no change. I haven’t added any code. I changed some dimensions on the columns but nothing drastic. Is there an area that you set up pagination?

    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.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

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