Advertisement
srikat

Untitled

May 5th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. /**
  2.  * Category pages Grid Args
  3.  *
  4.  * @author Sridhar Katakam
  5.  * @author Bill Erickson
  6.  * @link https://github.com/billerickson/Genesis-Grid/wiki/Home
  7.  *
  8.  * @param array $args, grid arguments
  9.  * @param object $query, the WP Query
  10.  * @return array $args
  11.  */
  12. function sk_category_pages_grid_args( $args, $query ) {
  13.     if( is_category() )
  14.         $args['features_on_front'] = 0;
  15.  
  16.     return $args;
  17. }
  18. add_filter( 'genesis_grid_loop_args', 'sk_category_pages_grid_args', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement