Archived topic
Hook after entry-content and before entry-meta in post
9 replies · Started by Anil on July 22, 2018
Hi
Is there any hook in GPP -- after entry-content and before entry-meta in post
How can I insert some info between these two in post with the help of "Elements".
Regards.
Hi there, this visual guide shows you all the hooks:
Hi, there is no hook for after entry-content OR before entry-meta in single post ???
Can you please advise how to insert some info between these two in single post with the help of “Elements”.
Hi Anil,
Hook = Custom Hook.
Custom hook name = generate_after_entry_content
Priority = 5.
Hi!
Priority does not change the order.
How to place a code right after the div.entry-content, and before footer.entry-meta?
The footer entry meta is hooked into generate_after_entry_content with a priority of 10.
So if you use that same hook with a less priority, it will add it before the meta element.
Hi Tom,
Are you sure there is a hook with such name?
Did you mean after_content?
However, the priority does not affect the order relative to the entry meta.
It would be after_entry_content within the Hook Element.
If it's not there, you can choose "Custom Hook" and add: generate_after_entry_content
That's the point!
Thank you!
You're welcome :)