single_cat_title() wont work when using comment_count
-
Hi,
i edit archive.php so it sorts posts by comment count in certain categories. However, by doing this neither single_cat_title() or category_description() show the category name/description. Why is that? This is my code:
<?php if(is_category( array(25))) { query_posts(array('orderby' => 'comment_count')); } elseif(is_category( array(96))) { query_posts(array('orderby' => 'comment_count', 'posts_per_page' => '20')); } ?>
This goes to the very beginning of archive.php.
Could you please give me a hand here?
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘single_cat_title() wont work when using comment_count’ is closed to new replies.