Join Carrie Dils for an in-depth discussion in this video What is the WordPress Loop?, part of WordPress Themes: Customizing Themes with Genesis.
- [Instructor] In programming terms,…a loop is a series of commands that gets executed over…and over until some particular condition is met.…Here we are in the WordPress codex,…which is the WordPress documentation,…and we've got this simple example of a loop.…And it basically says, hey, we're checking to see…if there are any posts to display, and if there are,…then while we have them, let's display…some stuff about them.…And a basic WordPress theme template might look exactly…like this, we would just add a get header function call…to the beginning, and after that, the get sidebar…and get footer, and then with the loop…sandwiched in between.…
In terms of WordPress theme-ing, the loop is used…in any PHP template file where you want…to display information about a post.…The loop loops through each post retrieved…through the current page one at a time.…Now, whether the loop retrieves a single post,…such as a single blog post, or a whole bunch of posts,…such as an archive page, depends on the context…of where the loop is used,…
- Setting the stage for your customization
- Selecting a child theme to customize
- The core of the Genesis framework
- Child theme template structure
- Action hooks and filters in WordPress and Genesis
- Editing theme files
- Editing the style sheet
- Working with functions
- Adding a custom header image
- Registering a widget area
Skill Level Beginner
1. Setting the Stage for Your Customization
2. Explaining Genesis and WordPress
3. Editing Theme Files
4. Working with the Loop
Next steps1m 23s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.