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:
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.
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. 😉