Older Entries link loads the same page content (4 posts)

  1. arnie2
    Posted 6 years ago #

    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 .. domain.com\page\2\ is loaded as domain.com.
    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 } ?>
  2. arnie2
    Posted 6 years ago #

    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 ..

  3. arnie2
    Posted 6 years ago #

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

  4. arnie2
    Posted 6 years ago #

    ... should i add a query statement somewhere or ?

Topic Closed

This topic has been closed to new replies.

About this Topic