“Previous” and “Next” on Custom Page Showing Same Posts
-
Hello,
i have created a new page (https://www.angryangmo.com/?page_id=211) in my blog, which i simply copied the logic for getting posts from the index.php.
Code:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small><div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div><p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</div><?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div>
However the navigation links previous and next are not working on this page, resp always showing the same posts although the links of next and previous are “&paged=2” .. “&paged=3” etc.
The complete link looks like this “https://www.angryangmo.com/?page_id=211&paged=3”.
Ive already tried all kind of different options and new codes but i always end up getting the same posts. Can somebody more experienced please help me?
Cheers
Flo
- The topic ‘“Previous” and “Next” on Custom Page Showing Same Posts’ is closed to new replies.