Support » Fixing WordPress » Older Entries link loads the same page content

  • Hi all,

    ive the same problem as many others. Ive read a lot of posts regarding this issue .. tried many code modifications but nothing was helpful.

    If I click on the Older Entries link, the same page with the same content is loaded ..\page\2\ is loaded as
    Maybe it is the plugin issue, but i`ve turned off all the plugins which are modificating the links and without success.

    Here is my indes.php content extract .. maybe the query around the previous and next link is wrong .. i don`t have any clue how to fix it :/

    <?php while ( have_posts() ) : the_post() ?>
    <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    <div id="nav-below" class="navigation">
    <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> Older', 'blank-new' )) ?></div>
    <div class="nav-next"><?php previous_posts_link(__( 'Newer <span class="meta-nav">&raquo;</span>', 'blank-new' )) ?></div>
    <?php } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • a lot of people solved this issue with this code ..

    if (have_posts()) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

    after i`ve inserted the code before
    <?php while ( have_posts() ) : the_post() ?>

    nothing changed, the issue remains ..

    hi guys, .. is there anybody who could help a little with this issue ?

    … should i add a query statement somewhere or ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Older Entries link loads the same page content’ is closed to new replies.