Support » Plugin: Genesis Grid » Exclude categories from Grid Loop

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Bill,

    I play in the code and I find a way to do what I want.

    ( $query->is_category(‘category id’) && genesis_get_option( ‘grid_on_category’, ‘genesis-grid’ ) )

    Plugin Author Bill Erickson


    There’s a filter called genesis_grid_loop_section which gives you fine-grained control over where the grid loop is used.


    First you pull out the line you want to control (in this case, the category line). Then you create an if statement inside it for your specifics. In this example I’m excluding the grid loop from one specific category. You could do the reverse by setting it to ‘true’ if on a specific category and ‘false’ for anything else.

    This code goes in your theme’s functions.php file. The benefit to this approach is that, when I update the plugin, you won’t lose your changes.

    Thank you Bill

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude categories from Grid Loop’ is closed to new replies.