Previous and next post? (3 posts)

  1. naturegirl321
    Posted 3 years ago #

    I'm trying to get something like this

    on my site, http://tefl-tips.com

    I've added this, but nothing changed.

    <?php previous_post('« « %', '', 'yes'); ?>
    | <?php next_post('% » » ', '', 'yes'); ?>

    What am I doing wrong?

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    the functions are deprecated - see for instance http://codex.wordpress.org/Function_Reference/previous_post

    where did you add the code?

    I would think these codes or better the replacement codes should be added in single.php within the loop.

    your link obviously points to the index page and shows the next_posts_link() and previous_posts_link() from the index template.

  3. naturegirl321
    Posted 3 years ago #

    I added it in the child theme. I looked at the bottom of my post and it seems that I have a plugin with that info already. But how do I add it to the top of my posts?

Topic Closed

This topic has been closed to new replies.

About this Topic