[Resolved] Hook before the tags in a post

Home Forums Support Hook before the tags in a post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1519316
    Eric

    Hi,

    I was looking for hooks and saw the documentation on the hooks. While after_content can work, it’s less optimal.

    Is there a way to hook before the tags? That would allow me to use the elements instead of using shortcodes in the posts.

    Otherwise I might just hide the tags and categories but they can be useful.

    Thanks!

    #1519327
    David
    Staff
    Customer Support

    Hi there,

    you can use the generate_after_entry_content hook with a priority of 9 ( or less ) to hook in before the footer meta.

    #1519526
    Eric

    Wonderful. This is perfect.

    Is there documentation on priorities? I had tried it with the 10 and it wasn’t quite what I needed.

    Keep it up. Love the theme and capabilities.

    #1519754
    David
    Staff
    Customer Support

    The majority of theme elements are hooked in at the default value of 10 or higher.
    The lower the value the higher the order – hence 9 worked here. So you can always go less to move it before an element.

    Glad to be of help.

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