Site logo

Archived topic

Adding a shortcode with "generate_after_entry_content"

1 reply · Started by Mayank on March 4, 2021

Viewing posts 1–2 of 2

Hi, I'm using Elementor as a page builder but it's not being used in the blog part of the website and I want to add a global element after every posts "entry content".

I used Elements to add a block and place the shortcode in it and then hook it in with "generate_after_entry_content" and display it on all posts but displays after the "entry-meta" instead of "entry-content" which I find very odd. I need to display the short code before the entry meta. Please tell me how would that be possible?

You can see the social share icons being added using the hook here but they only show after the entry-meta https://revkevinlee.com/we-owe-no-one-anything/

Adding a block and hooking it with generate_after_entry_content

Hi there,

Can you try with priority value set to 1? I believe the footer entry meta by default was set to 3 or 5.

Setting a smaller priority value for your hook should make it appear before it.

This archived topic is closed to new replies.