Site logo

Archived topic

Hook before the tags in a post

3 replies · Started by Eric on November 5, 2020

Viewing posts 1–4 of 4

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!

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.

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.

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.

This archived topic is closed to new replies.