How To Create A Custom Loop In WordPress Using WP_Query

How To Create A Custom Loop In WordPress Using WP_Query


Full source code available at:

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.

-~-~~-~~~-~~-~-
Please watch: “Why he made them smoke a newspaper”

-~-~~-~~~-~~-~-

10 Comments

10 Replies to “How To Create A Custom Loop In WordPress Using WP_Query”

  1. Incredibly useful. I’m especially glad that you covered the reasons WHY you shouldn’t use query_post.

  2. hello John Morris, this is very useful tutorial for beginners like me thanks a lot !!!!!!!!!!!!!!!!!!!!!!!!!!!!! great

  3. Amazing Video, but I have difficulty understanding whats the reason, logic behind putting this ‘cat’ => 3,

    Does this means that in the database it will call the category that is at#3. help will be appreciated thanks.

Comments are closed.