in_category() problem
-
Hi there,
I have a pretty large sidebar file which checks for every category. The code below is working properly:<?php if(in_category(1)) { ?> <h3>Top 10 - 1</h3> <ul>php code</ul> <?php } elseif(in_category(2)) { ?> <h3>Top 10 - 2</h3> <ul>php code</ul> .... .... <?php } ?>
I want to add another set like this, but the in_category() check does not work for the second set. It only works when I remove the first set. Is there a solution for this?
- The topic ‘in_category() problem’ is closed to new replies.