Close

February 11, 2013

How to Create a Custom Loop in WordPress Using WP_Query

In this tutorial, I’ll show you how to create a custom loop in WordPress using WP_Query. Plus, I’ll explain why you want to use this instead of query_posts when creating custom loops like these.

7 Comments on “How to Create a Custom Loop in WordPress Using WP_Query

Richard dale
May 26, 2013 at 2:58 am

Thanks for this really useful, didn't know short codes were so easy too.

Reply
John Morris
May 26, 2013 at 2:53 pm

Yeah, they’re pretty straight-forward.

Reply
Nelson
July 10, 2013 at 1:38 pm

You are drop-dead amazing. I never knew shortcodes were so easy, and, more importantly, your explanation of why you shouldn't alter the main loop was dead-on. AWESOME tutorial.

Reply
John Morris
July 10, 2013 at 2:13 pm

Haha! Thanks! 🙂

Reply
yavar
February 14, 2014 at 12:49 am

hmm could u help me to show 5 recent blog post with pictures in a horizontal way

Reply
John Morris
February 15, 2014 at 4:14 pm

I’ll look into doing a tutorial on that.

Reply
teameldiablo
February 15, 2014 at 10:41 pm

ohh dat would be great im waitng for it !

Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.