Not found, error 404 on pagination page 3 in Genesis word press Home page

by Abdul Waheed Pasha   Last Updated January 13, 2018 17:08 PM

enter image description here

"Not Found, error 404" while clicking on pagination 3 on a home page.

function be_custom_loop() { global $paged; global $post;

$args = array(
    'post_type'      => 'Audio',
    'posts_per_page' => get_option('posts_per_page'),
    'post_status'    => 'publish',
    'paged'          => get_query_var( 'paged' )
);

global $wp_query;
$wp_query = new WP_Query( $args );
if ( have_posts() ) : 
    while ( have_posts() ) : the_post(); 

        echo    '<h1>'.get_the_title().'</h1>';

    endwhile;
    do_action( 'genesis_after_endwhile' );
endif;
wp_reset_query();

} add_action( 'genesis_loop', 'be_custom_loop' ); remove_action( 'genesis_loop', 'genesis_do_loop' );

genesis();

Tags : pagination


Related Questions


perticular category single page paging

Updated April 14, 2015 02:33 AM

Pagination not working on category.php

Updated April 16, 2015 00:03 AM


Pagination and Taxonomy query string

Updated April 10, 2015 21:03 PM