I have been pulling my hair out for the past 3 hours!!
Does anybody have any idea on how to show posts in wordpress that have at least one comment?
The below code uses
orderby=comment_countand it does work, but it still display other posts that have no comments too 🙁
<?php $home_loop= new WP_Query(“cat=-182,-183&showposts=10&paged=$paged&orderby=comment_count&order=DESC”); ?>
- The topic ‘WordPress: How to display posts that have at least one comment?’ is closed to new replies.