Archived topic
GP Hooks Problem
7 replies · Started by Rizki on January 4, 2019
Hi there,
When i want to add some codes ( like ads ) into this part http://prntscr.com/m371ms ( below featured image on single post ) which hook i can use ?
Hi there,
I think after_entry_header is what you are looking for.
You can check here: https://docs.generatepress.com/article/hooks-visual-guide/
When i use after_entry_header the ads show above featured image, not below.
Try changing the priority to 12.
Thanks, it works :) Btw how do priority features work? So far I have never used it.
When there are multiple things added within a hook (in this case, the featured image and your ad), priority is used to change their order.
Glad it's working :)
Hoo i see. Can I insert ad code in certain paragraphs by utilizing priority features ?
That's not possible as paragraphs are not added with hooks.