What is the WordPress Loop?
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

What is the WordPress Loop?

on

  • 3,055 views

This presentation describes what the WordPress loop is and why LoopBuddy is a great solution for tackling the complexity of the WordPress loop.

This presentation describes what the WordPress loop is and why LoopBuddy is a great solution for tackling the complexity of the WordPress loop.

Statistics

Views

Total Views
3,055
Views on SlideShare
1,995
Embed Views
1,060

Actions

Likes
0
Downloads
6
Comments
0

7 Embeds 1,060

http://ithemes.com 598
http://pluginbuddy.com 441
http://us-w1.rockmelt.com 11
http://tweetradar.webfadds.com 6
http://new.pluginbuddy.com 2
https://web1.techafina.com 1
https://phpmyadmin.1and1.com 1
More...

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

What is the WordPress Loop? Presentation Transcript

  • 1. What is the WordPress Loop? By Ronald Huereca September 15th, 2011
  • 2. Most of you have seen this screen:
  • 3. Most of you have not seen this one:
  • 4. When you a post... Your post gets saved in a “posts” database table Your post can have: Post Meta (custom fields) Taxonomies (Categories, Tags, Post Format) Attachments (Featured images, galleries) And lots more!
  • 5. WordPress and your themeautomatically turns this...
  • 6. ...into a post your userscan see on a web site.
  • 7. How do you go from this...
  • 8. ...to this?
  • 9. With a Query
  • 10. Queries decide... Which items to display Under which category And sorted in a particular order And any other conditions you can think of
  • 11. An example query... grab the post bygrab the post by ID 2338 post_status draft grab posts by sort by date published the post’s author
  • 12. Once you have the results of the Query, you can display them.
  • 13. Here is a query result displayed:
  • 14. The results from a query are outputtedin the form of a Loop.
  • 15. This post is one iterationof a WordPress Loop.
  • 16. Let’s look what makes upa Loop Item in WordPress...
  • 17. The Loop Dissected Date Published Post Author Post Title Post Content
  • 18. So how do you create your ownLoop (cough, the hard way)? Create your own Query - http://codex.wordpress.org/Template_Tags/get_posts Create a page template in your theme - http://codex.wordpress.org/Pages#Page_Templates Assign that page template to a page in WordPress Anything more complicated, you may want to create your own child theme
  • 19. Or you can use LoopBuddyand Builder (the easy way) Create unlimited queries and Loop layouts Override any section The front page The archive pages An individual post or page Search results Create a new section A “blog” archive A custom 404 page A sitemap
  • 20. no coding or thememodifications required!
  • 21. With LoopBuddy,you control the Loop
  • 22. Try out LoopBuddy andbe blown away at the possibilities Try it at: http://trials.ithemes.com/config/loopbuddy Buy it at: http://pluginbuddy.com/purchase/loopbuddy