Need simple conditional tag help in the loop
-
Hi all,
I have this in my sidebar to show asides, but it isn’t working:
<?php if (is_single()) { query_posts('category_name=asides&showposts=3'); } else { query_posts('category_name=asides&showposts=10'); ?>What am I doing wrong? It breaks my theme on the index page, and just doesn’t display the asides on the single posts. Any ideas?
🙂
David
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Need simple conditional tag help in the loop’ is closed to new replies.