in_category not working
-
Hello everyone.
I have the fowlloing code on my sidebar:<?php
if (is_home())
{?>
some script here
<?}
elseif (in_category(‘369’))
{?>
some script here
<?}else
{ ?>
some script here
<?}
?>For some reason in_category won’t work. But if i change it to is_category then i see the script working on the category page .
Any thoughts? -
You need to be asking over at WordPress.org. Here at WP.com our software works a bit differently and we won’t be able to help you.
Differences outlined here:
https://en.forums.wordpress.com/topic.php?id=3700&replies=1 -
-
-
No idea, sorry. All I know is, we’ve got no access to the php here, so we can’t help.
Actually, it might just be a caching issue. Try clearing your browser cache and reloading the page.
-
- The topic ‘in_category not working’ is closed to new replies.