WordPress.org

Support

Support » How-To and Troubleshooting » Pagination not working 404

Pagination not working 404

  • My pagination is not working, it only displays the current page 1 when clicking 2 or 3 .. I get 404 error, below is the code :

    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $args = array(
    ‘post_type’ => ‘estate’,
    ‘paged’ => $paged,
    ‘posts_per_page’ => $showposts);

    When I change 1 to 3 for example, it shows the third page correctly and clicking page 1 (only) also works fine but clicking back 3 I get 404 error. As:
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 3;

    Any Solution please I spent 3 days googeling.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pagination not working 404’ is closed to new replies.