Created
April 21, 2015 07:55
-
-
Save eri-trabiccolo/00c30cbb97b2678e1ddf to your computer and use it in GitHub Desktop.
Grid in one category
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('template_redirect', 'grid_one_category'); | |
| function grid_one_category(){ | |
| if ( ! is_category('test') ) | |
| return; | |
| /* Enable the grid */ | |
| add_filter('tc_is_grid_enabled', '__return_true'); | |
| /* Enable the Pro grid effects */ | |
| add_filter('tc_is_grid_customizer_enabled', '__return_true'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment