Archived topic
How to Add Related Post Below Content
7 replies · Started by Theodore on April 17, 2021
Hi,
Please, how do I go about adding related posts below contents
Hi there,
You can try a plugin like this:
https://en-ca.wordpress.org/plugins/contextual-related-posts/
And add it using a hook element:
https://docs.generatepress.com/article/hooks-element-overview/
Let me know if this helps :)
Thanks for your quick response. I would love to use the hook element. But, I seem to get lost in the required code to add the related content. Could you please simplifu it.
Hi there,
first off that plugin will provide you a shortcode.
Provide here
Copy that.
Then:
1. Go to Appearance > Elements and create a new Hook element.
2. Paste the Shortcode into the text area.
3. Then from the Hook List - select generate_after_content
4. Check the box for Execute Shortcodes.
5. Go to the Display Rules tab > Location and select Posts > All Posts.
Publish the element :)
Thanks for the swift response. I don't seem to get the said code, please.
Looks like David is talking about the shortcode on that linked page:
https://www.screencast.com/t/6zAKVum0
Hi,
Thanks for this. I have resolved to use the suggested plugin.
No problem :)