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
From the course: WordPress: Customizing Themes with Genesis
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
The core of Genesis Framework3m 42s
-
(Locked)
Template files in Genesis Framework2m 26s
-
(Locked)
The child theme template structure4m 42s
-
(Locked)
The WordPress loop2m 53s
-
(Locked)
The Genesis loop2m 16s
-
(Locked)
Action hooks and filters in WordPress4m 6s
-
(Locked)
Action hooks and filters in Genesis2m 39s
-
(Locked)
Challenge23s
-
(Locked)
Solution1m 40s
-
(Locked)
-
-
-