WordPress Themes

Remove Entry Meta From Custom Post Types in Genesis

This code removes the entry meta in the entry header and entry footer from custom post types.

Simply replace post-type in the following code with the name of your post type.

Then you’ll need to add the code at the end of your child themes functions file using a code editor.

add_action( 'init', 'sample_remove_entry_meta', 11 );
 * Remove entry meta for post types
 * @link
function sample_remove_entry_meta() {

	remove_post_type_support( 'post-type', 'genesis-entry-meta-before-content' );
	remove_post_type_support( 'post-type', 'genesis-entry-meta-after-content' );


The above code replaces the following which was used before Genesis 2.2 was released:

//* Remove the post info function
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );

//* Remove the post meta function
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );

Related Tutorials

One reply on “Remove Entry Meta From Custom Post Types in Genesis”

Leave a Reply

Your email address will not be published. Required fields are marked *