Archived topic
GP New Hook Is Not Working
10 replies · Started by Palash on February 9, 2023
Hello Support,
GP New hook does not work on my site. I have tested it after disabling all active plugins. It only works for WordPress's default theme. So maybe there is a problem with the GP theme.
I have tried to create an Author Box: Hook: Generate_after_content
I am waiting for a solution.
Thanks
Hi Palash,
For clarity, can you provide a screenshot of the element settings and display rule settings of the Element?
Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots
I have also tried Block Hook, but it did not work.
You have PHP in the Hook Element but you didn't enable "Execute PHP". Can you enable that?
Can you also provide a link to a post on your site?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
I enabled 'Execute PHP', but not working
I see. Can you provide admin login credentials so we can take a closer look at the issue?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Sure
Hi there,
you have a Block Element titled: Post page hero which is a Content Template set to Posts > All Posts.
The Block Element - Content Template replaces the themes content-single.php which includes that hook you're using to add the your author box too.
As you are already using a content template then your simplest solution is to build your Author Box inside that content template.
Can I add Author Box under Content Template?
Yes, you can add it after the Post Content block.
This video shows you how:
https://youtu.be/4x6CjGOyagc