WordPress.org

Ready to get started?Download WordPress

Forums

Previous and next post? (3 posts)

  1. naturegirl321
    Member
    Posted 2 years ago #

    I'm trying to get something like this
    http://wiggleenglish.com/wiggleblog/?p=44&fb_source=message

    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. alchymyth
    The Sweeper & Moderator
    Posted 2 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
    Member
    Posted 2 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