• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove the date in Custom Post Types in Genesis Framework

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:

To see this and another 839 code snippets of this website, login or subscribe here.

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).

Conclusions

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. 🙂

CPT Genesis Framework PHP Post meta

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?