Archived topic
Disable Post meta on certain posts / post categories
5 replies · Started by GeneratePressUser on April 27, 2020
Hello,
How to disable post date, author name, categories and previous / next post only on specific post categories.
and where to add that code, pls let me know.
It would be great if you can provide list of all wordpress tags and conditions so that we can customize things accordingly.
You can see the website link on that page if want to hide what to do?
Thanks!
Hi there,
You would need this filter:
https://docs.generatepress.com/article/option_generate_blog_settings/
It needs to be added using one of the methods here:
https://docs.generatepress.com/article/adding-php/
You can see lots of examples by searching option_generate_blog_settings in our forum search.
Here are the WordPress conditional tags:
https://codex.wordpress.org/Conditional_Tags
Let me know if this helps :)
Hello Leo,
OK, so I cannot add PHP within the elements area in hooks? I guess that won't work right?
So as per your link I need to take Code Snippets plugin and then use it via it. Correct?
OK, so I cannot add PHP within the elements area in hooks?
Not for filters.
So as per your link I need to take Code Snippets plugin and then use it via it. Correct?
Yes or a child theme's function.php
Hello Leo,
OK thanks, btw can your team pls add duplicate option in elements area? Coz it's hard to make again and again new new and do settings, duplicate option would be best coz we work with tons of sites and we are sure many others would love to have duplicate option there to make clone of hook and other elements.
I believe we have that on the to-do list.
We are hoping to turn elements Gutenberg compatible so should be around the same time.
Thanks :)