Popular Posts (By Comment Count) in WordPress With No Plug-In

This is what I use.  I’ve seen similar posts around but most don’t include the AND post_status='publish'.  This is important otherwise we’ll be listing our drafts and private posts as well.

You want to put this code in your theme somewhere.   If you only want to list the posts make sure to replace the get_template_part with something simpler, like so:

I’ll leave the rest up to you!

Creating your first programming language is easier than you think.

Understanding how a programming language works is a surefire way to be a better developer. Read more.

Suggested Reading

written by Ryan Bosinger
Ryan is a web developer living and working in Banff Alberta. He also writes for giftsforpeoplewitheverything.com and freefoley.com.

Leave a Reply