Home › Forums › Support › How to stop GP Hook (After Content) showing in categories? This topic has 3 replies, 2 voices, and was last updated 3 years, 9 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts August 12, 2018 at 2:21 am #646161 Robin When I insert code into ‘After Content’ as a GP hook, it displays fine for each post. However, it also displays in my category archives. See image > https://www.screencast.com/t/bVPryWcQVZh Can you please tell me how to stop this from happening. Thanks. (For the time being, I have disabled the hook.) Also… is it possible to exclude the hook on certain posts? TIA Robin GeneratePress 2.1.3GP Premium 1.6.2 August 12, 2018 at 8:58 am #646377 LeoStaff Customer Support Hi there, This page should offer some info: https://docs.generatepress.com/article/using-hooks-conditional-tags/ However I would recommend waiting for GP Premium 1.7 to be released tomorrow so you can use the new Hooks Element module with the powerful display rule so you don’t have to write any PHP: https://docs.generatepress.com/article/hooks-element-overview/ https://docs.generatepress.com/article/hooks-element-overview/#display-rules You can get it now by becoming a beta tester: https://docs.generatepress.com/article/beta-testing/ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 13, 2018 at 1:27 pm #647284 Robin Cheers Leo – I’ll wait for the official release. Robin August 13, 2018 at 1:30 pm #647288 LeoStaff Customer Support It’s been delayed by a day. Should be out tomorrow 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In