in_category() broken
-
I’m trying to set up a category-specific CSS file with in_category, and, oddly, it’s not working. The error comes out like this:
Warning: Invalid argument supplied for foreach() in /home/plaincul/public_html/jon/wp-includes/template-functions-category.php on line 446
Warning: in_array(): Wrong datatype for second argument in /home/plaincul/public_html/jon/wp-includes/template-functions-category.php on line 450
I’ve tried using these:
if(in_category(4)) { blah }
if(in_category(‘4’)) { blah }
if(in_category(‘Journal’)) { blah }
and they all come out with the same answer (the errors above). Any fix for this? Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘in_category() broken’ is closed to new replies.