Only title and image in Grid Loop

The Genesis Grid plugin turns Genesis archive pages into a grid. By default it doesn’t change what content appears there – that is determined by your settings in Genesis > Theme Settings.

The code below will remove the content or excerpt from appearing in the grid loop. This should be placed in your theme’s functions.php file:

/**
 * Genesis Grid, No Content
 * @link https://www.billerickson.net/code/only-title-and-image-in-grid-loop/
 */
function be_grid_no_content() {
 
	// This filter returns true when inside the grid
	if( apply_filters( 'is_genesis_grid_loop', false ) ) {
		remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
	}
}
add_action( 'genesis_entry_content', 'be_grid_no_content', 9 );

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk