From the course: WordPress: Customizing Themes with Genesis

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Genesis loop

The Genesis loop

From the course: WordPress: Customizing Themes with Genesis

Start my 1-month free trial

The Genesis loop

- [Instructor] The Genesis loop works the same way as the WordPress loop in the sense that it loops through posts and pages to display content. The primary difference is that it includes various hooks that give us the flexibility to jump into the loop at any time to move or modify what's coming out. So here we are in the Genesis framework files specifically in loops.php. And this is where the loop magic happens. So we start here with this function called genesis_do_loop. And inside of that we've got an if statement to determine if some certain conditions exist, but what I really want to point out to you here is this genesis custom loop and this genesis standard loop. Most of the time we're going to be using the Genesis standard loop. And what that is, it outputs basic HTML but it's using hooks to do this. So let's look at this genesis_standard_loop. And here's that function. So it looks familiar to that WordPress…

Contents