• 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 post_content from Genesis Framework entries

Learn in this tutorial how to hide the post_content or content of Genesis Framework entries by code.

If you’re using custom fields to fill in and display the information for an entry instead of the default content, perhaps you don’t need the entry content to be loaded.

Do you want to remove it?

You can do this easily thanks to a Genesis hook (specifically genesis_entry_content).

Snippet to remove content from Genesis entries

Add this fragment to the end of the functions.php file:

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

You got it.

And if you want, you can remove all the metadata under the title with a single line of code: author, date and number of comments.

Conclusions

Now you know how to erase the post_content of the entries in any Genesis child theme.

Any questions? I read you 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. 😉

Genesis Framework PHP Post

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?