Home > Tutorials > PHP Coding > Generating an Automatic Popular Post List via Del.icio.us or Digg in WordPress
In this example I check the number of comments, and if they are greater than or equal to 10 (see the 8th line of the code below) then I display the post. This means that this Loop will show any post that has 10 or more comments. The $popular->query(‘showposts=50′); at the top of the script is so that this Loop will run the ‘number of comments’ check for each of your 50 latest posts.
