WordPress 101 Guide | Make a Query to Get the Most Popular Post by Comment Count in WordPress

By |2012-04-03T11:28:25+00:00April 3rd, 2012|Categories: Wordpress 101 Guide|Tags: , , , |

This one is very simple. For those of you that want to automatically include it in your themes, you can query by comment count using get_posts and running a foreach loop to get the contents. Very simple procedure. Code below will output the most popular post by comment count. [php] <? $args = array('posts_per_page' => 5, [...]