Archived topic
How can I add shortcode (and other HTML) to all posts below content?
3 replies · Started by Yolanda on May 30, 2022
Hello support,
How can I add a shortcode - and other html - to all posts below the content?
Now I'm using the plugin Add to All, but I'm struggling with the priority, and actually I don't want to use a plugin for this.
I've tried it with the Elements, but when creating a block, but I don't know which Element Type to choose.
(For now Add to All starts with the forms table at the end of each post.)
Can you help out?
Hi there,
if you use the Block Element,
1. set the Element Type to: Hook
2. select the Hook: after_content
Note - other plugins that add content to a post will generally use WordPresses the_content() filter. Which outputs the code inside your content and before the GP after_content hook is output. So ideally you want to use the GP hook to output all your after content stuff, so you can control the order in which it is displayed.
Thank you, that worked!!!
Glad to hear that!