Help with Category Exclusion
-
I used this code in the functions.php file for exclusion of categories:
function exclude_category($query) { if ( $query->is_home ) { $query->set('cat', '-XX'); } return $query; } add_filter('pre_get_posts', 'exclude_category');but after upgrade to v3.1 it results in fatal error. Could someone help me with how to do it in 3.1?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Help with Category Exclusion’ is closed to new replies.