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”
-~-~~-~~~-~~-~-
Good!
Thanks! 🙂
Incredibly useful. I’m especially glad that you covered the reasons WHY you shouldn’t use query_post.
Any videos that discuss pre_get_posts?
Very good intro, thanks.
Thanks a lot!!!!!!!!!
hello John Morris, this is very useful tutorial for beginners like me thanks a lot !!!!!!!!!!!!!!!!!!!!!!!!!!!!! great
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.
best example I’ve seen on Youtube, really simple. Thanks.
thanks