Conditional tags don’t take
-
I’ve been playing around with different ways to display archives from different categories. It works like a charm.
<?php if (in_category('44') && !is_home() ) : ?> <div class="animegio"> <ul class="hfeed posts-default clearfix"> <?php while ($query->have_posts()) : $query->the_post() ?> <li <?php arras_post_class() ?>> etc. etc.
But if I add one specific category posts on the homepage (home.php) also change. I don’t get it. When i remove this category from the array (i.e. in_category(array(4, 5, 12, 44)) it works just fine.
Even weirder: with the exact same layout, widgets, posts, images, categories, etc. etc. my local install will display it the right way.
I removed the category, made a new one, changed the posts to that categorie, added the new category to the array and it’s broken again.
I really, really don’t get it.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional tags don’t take’ is closed to new replies.