Support » Fixing WordPress » Previous and next post?
5 years, 1 month 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?
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.
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?