Discover in this tutorial how to hide the date at the top of a Custom Post Type (CPT) post in Genesis Framework child themes using code.
To do this, simply take advantage of Genesis filter hooks and WordPress conditional tags.
Snippet to remove the date from a CPT
Add this fragment to the end of the functions.php file:
When using the previous snippet, the date is no longer displayed in the Custom Post Type called ” portfolio”.
Of course, you can change it to the CPT text you are interested in (“product”, “events“…).
If you prefer, you have the option to hide all the top metadata of the Custom Post Types (date, author and comments).
Now you know how to remove the date at the top of the CPTs in any Genesis Framework child theme.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂