• Resolved Iseemtobeaverb

    (@iseemtobeaverb)


    Is there a way to disable feature posts on category pages while still displaying one on my blog Index page?

    When I use Feature posts in the Grip Loop options, it shows a feature on the blog index (which I want), but also on the first page of each blog category (which I don’t want). I’d prefer to just use Teaser posts on my category pages.

    Loving the plugin so far, thank you for all the work you’ve put into it.

    Thanks!
    – Michael

    https://www.ads-software.com/plugins/genesis-grid-loop/

Viewing 1 replies (of 1 total)
  • Thread Starter Iseemtobeaverb

    (@iseemtobeaverb)

    I just discovered the Grid Loop Wiki and found my answer there.

    Here is the code I used (courtesy of Bill Erickson):

    function be_homepage_grid_args( $args, $query ) {
    	if( is_home() )
    		$args['features_on_front'] = 2;
    
    	return $args;
    }
    add_filter( 'genesis_grid_loop_args', 'be_homepage_grid_args', 10, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Feature Post On Blog Index, But Not Category Pages?’ is closed to new replies.