• i m applying pagination on archive.php, but the pagination links not working and going on 404.php. my code is below, i did also changed permalink setting, also did set to default but failed. it display pagination but links are broken. please guide me if anyone can. thanks alot.

    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query(‘showposts=1&cat=44′.’&paged=’.$paged);
    while ( $wp_query->have_posts() ) : $wp_query->the_post();
    the_title();
    endwhile;
    if(function_exists(‘wp_pagenavi’)) {
    wp_pagenavi();
    }

  • The topic ‘WordPress pagination going on Page not Found’ is closed to new replies.