• 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 metadata from all Custom Post Types in Genesis Framework

Discover in this tutorial how to hide the metadata at the top of all Custom Post Types (CPTs) in a Genesis child theme with code.

Do you have several CPTs where you don’t want to show the top metadata? No problem.

You can easily remove it from all of them by taking advantage of Genesis hooks and WordPress conditional tags.

Shall we?

Snippet to remove metadata from all CPTs

Add this fragment to the end of functions.php:

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

By using the previous block you manage to remove the metadata from the top of all CPTs.

This does not affect the normal entries, which will still show the date, author and comments.

Conclusions

Now you know how to remove the metadata that is displayed at the top of all CPTs in any Genesis Framework child theme.

Any questions? Let me know in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages 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?