Join Carrie Dils for an in-depth discussion in this video Using a custom Genesis loop, part of WordPress Themes: Customizing Themes with Genesis.
- [Instructor] In this video, I'd like to show you…how to use the genesis custom loop.…So here on line 198, in loops.php,…I'm here in the genesis framework,…we've got this genesis custom loop function.…And it takes an array of arguments.…So what our objective is here, is to pass in some arguments…that are different from the default WordPress query.…So in order to do this, I first need to start…by unhooking the regular loop…and then adding in this genesis custom loop.…
Let's take a look.…I'm going to go over to my functions.php file…in my genesis sample theme.…And I'm going to start on line 198.…Your line numbers may be different,…but if you're working along with the exercise files,…here we are.…And I'm going to start by saying remove action.…And on that genesis loop hook,…I want to get rid of the genesis do loop,…which is the name of the function for the primary loop.…And now I'm going to come back in and say,…we're going to add action,…and I want to stay on that genesis loop hook, but this time,…we're going to run a custom function on that loop.…
- 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.