Archived topic
How to place content at bottom of each post and above previous next post links
3 replies · Started by Brian on February 16, 2020
Hi
Is there a way to place a web form at the bottom of each post while also placing it above any related posts or previous/next post links?
I put the web form html into the after_content hook. That seems the best choice based on the GeneratePress Hooks Visual Guide. Yet this location puts the web form below the output of the Related Posts for Wordpress plugin and also the Previous/Next post links.
Also, is there a way to hide or disable the Previous/Next post links?
Thanks
Hi there,
to remove the Prev/Next post links - uncheck Display post navigation in Customizer > Layout > Blog --> Single
https://docs.generatepress.com/article/blog-content-layout/#single
Now with the post nav removed, the simplest way is to hook the Related Posts widget in below the Form. On the plugins repo page the author provides a shortcode that you could simply add to the same hook as the form.
Thanks for the assistance, David. The layout at the bottom of the posts works much better now.
It's been years since looking at the settings in Customizer > Layout > Blog –> Single and I had forgotten what they did.
I was able to find a filter that removed the default output from the Related Posts for Wordpress plugin. Then as you suggested, the shortcode was placed below the web form html in the after_content hook.
Thanks again.
Awesome - glad to be of help