Full Content for Features in Grid Loop

When using Bill Erickson’s Genesis Grid plugin if you would like to display the full content for Features (wide posts), add the following in your child theme’s functions.php:

/**
 * Use Full Content for Features in Grid Loop
 *
 * @author Bill Erickson
 * @link http://www.billerickson.net/code/full-content-features-in-grid-loop
 *
 * @param string $option
 * @return string $option
 */
function be_full_content_for_features( $option ) {
  if( in_array( 'feature', get_post_class() ) )
		$option = 'full';

	return $option;
}
add_filter( 'genesis_pre_get_option_content_archive', 'be_full_content_for_features' );

// Make sure the content limit isn't set
add_filter( 'genesis_pre_get_option_content_archive_limit', 'sk_no_content_limit' );
function sk_no_content_limit() {
	if( in_array( 'feature', get_post_class() ) ) {
		return '0';
	}
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.