[Resolved] Hook after entry-content and before entry-meta in post

Home Forums Support [Resolved] Hook after entry-content and before entry-meta in post

Home Forums Support Hook after entry-content and before entry-meta in post

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #629985
    Anil

    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.

    #630043
    David
    Staff
    Customer Support

    Hi there, this visual guide shows you all the hooks:

    https://docs.generatepress.com/article/hooks-visual-guide/

    #630282
    Anil

    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”.

    #630419
    David
    Staff
    Customer Support

    Hi Anil,

    Hook = Custom Hook.
    Custom hook name = generate_after_entry_content
    Priority = 5.

    #652455
    Rafał

    Hi!
    Priority does not change the order.
    How to place a code right after the div.entry-content, and before footer.entry-meta?

    #652872
    Tom
    Lead Developer
    Lead Developer

    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.

    #653598
    Rafał

    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.

    #653804
    Tom
    Lead Developer
    Lead Developer

    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

    #653991
    Rafał

    That’s the point!
    Thank you!

    #654573
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.