Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Category pages Grid Args
- *
- * @author Sridhar Katakam
- * @author Bill Erickson
- * @link https://github.com/billerickson/Genesis-Grid/wiki/Home
- *
- * @param array $args, grid arguments
- * @param object $query, the WP Query
- * @return array $args
- */
- function sk_category_pages_grid_args( $args, $query ) {
- if( is_category() )
- $args['features_on_front'] = 0;
- return $args;
- }
- add_filter( 'genesis_grid_loop_args', 'sk_category_pages_grid_args', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement