Is there a way to add something to the bottom of all posts that links to the previous post and the next post?
You can add the WordPress next and previous post tags using a custom function with a hook to display in your theme location and conditional tag for single posts.
Change the hook to display the single post nav links in a different theme location.
Or you can install a plugin.
I have the simple hooks plugin already, I’m just not sure what code to use. I’m hoping for a < Next Post and Previous Post > type thing at the bottom, rather than the<< and >> shown on the sides of the blog.
Hello, I pasted that in the “
genesis_after_post_content Hook” but it didn’t do anything. I’m not sure what you mean by remove one of the arrows? Will that code only work if I have the plugin installed?
That code needs to be pasted at the end of your child themes functions.php file. Not using Simple Hooks.
Oops Sorry, I’m still a beginning at this coding stuff! But thank you – that worked!!
I was able to use the above directions to get this added to individual posts. Although I have theme settings for this to also display after the list of blog posts on the home page, it does not show. Any ideas? http://reneeheigel.com (although theme is platinum instead of focus instructions worked)
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.