This code removes the entry meta in the entry header which is also referred to as the post info, from all archives so it only displays on single posts in Genesis.
The code also removes the entry meta in the entry footer so it only displays on single posts also.
Here’s the before & after shots. The 1st image shows the entry meta on single posts only and the 2nd image shows the entry meta removed from all archives including the front & blog pages.
Single Post
Single Post Entry On Archives
The method used to only display the entry meta on single posts is a bit tricky to workout.
add_action( 'loop_start', 'remove_entry_meta' );
function remove_entry_meta() {
if ( is_singular('post') )
return;
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
Was This Tutorial Helpful?