- This topic has 8 replies, 3 voices, and was last updated 10 years, 6 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
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)
© 2023 WPEngine, Inc.