Reply To: Reply To: Reply To: Reply To: pagenation?

Homepage Community Forums Skope Theme Support pagenation? Reply To: Reply To: Reply To: Reply To: pagenation?


    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.