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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk