[Resolved] How can I add shortcode (and other HTML) to all posts below content?

Home Forums Support [Resolved] How can I add shortcode (and other HTML) to all posts below content?

Home Forums Support How can I add shortcode (and other HTML) to all posts below content?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2237649
    Yolanda

    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?

    #2237697
    David
    Staff
    Customer Support

    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.

    #2238833
    Yolanda

    Thank you, that worked!!!

    #2238971
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.