Support » Fixing WordPress » “Previous side” and “Next side” links doesn’t appear on all pages

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi again !

    I’ve read in the WordPress manual and found the <?php previous_post(); ?> and <?php next_post(); ?> tags.

    I’ve added them to my template.

    Now, my coding looks like this:

    <?php posts_nav_link(' — ', __('&laquo; Previous side'), __('Next side &raquo;')); ?>

    <?php previous_post('%','&laquo; Previous side', 'no'); ?>&nbsp;&nbsp;&nbsp;&nbsp;
    <?php next_post('%','Next side &raquo;', 'no'); ?>

    The latter code block added “Next” and “Previous” links on:

    http://thort.se/photoblog/2006/05/09/grecian-windflower

    But still, no links turn up on:

    http://thort.se/photoblog/category/grecian-windflower
    http://thort.se/photoblog/2006/05/09

    Why?

    It’s interesting to realize I use both <?php posts_nav_link(); ?> and the pair <?php previous_post(); ?> <?php next_post(); ?> after each other in my template. But on no sight I get double links. Either of them is used, never both.

    Now, how do I get links on:

    http://thort.se/photoblog/category/grecian-windflower
    http://thort.se/photoblog/2006/05/09

    I’m thankful if someone could give me some guidance.

    Hi again !

    Now, I’ve found a solution. 🙂

    In my sidebar I skipped the category list. Instead I put in a chronological list of all my posts. For this I use the plugin Recent Posts. It creates this tag for the template: <?php mdv_recent_posts(); ?>

    I’ve understood I can’t use neither <?php posts_nav_link(); ?> nor the pair <?php previous_post(); ?> <?php next_post(); ?> together with <?php list_cats() ?>.

    Now, the links “Next side” and “Previous side” appear on all my sites.

    My blog: http://thort.se/photoblog

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Previous side” and “Next side” links doesn’t appear on all pages’ is closed to new replies.