Query mod broken in WP 3.1
-
My functions.php file contains a query modifier for the homepage to exclude categories that I don’t want appearing there. With the 3.1 upgrade this is somehow broken now. Can anyone tell me why? Here’s what my code looks like in functions.php
<?php function myFilter($query) { if ($query->is_home) { $query->set('cat','-1,-11,-12,-4,-23,-24'); } return $query; } add_filter('pre_get_posts','myFilter'); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Query mod broken in WP 3.1’ is closed to new replies.