Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Before the Loop Hook – genesis_before_while
Lab: The Loop – Developer’s Guide to Customizing Genesis
Video Runtime: 11:38
Before the loop begins, which starts with the while
, there may be times when you want code to run. A good use case is when you want to reorder, remove, or add features that will render during the loop. The key to using this Genesis event is that you want it run only if there are posts, meaning only if the loop is going to run. Let’s explore the Genesis event: genesis_before_while
.
Who needs copy/paste? Right. Writing code from scratch is fun!
Episodes
Total Lab Runtime: 02:26:17
- 1 Lab Introductionfree 06:09
- 2 What the heck is The Loop?free 14:29
- 3 Calling the Loop Overviewpro 06:51
- 4 Genesis Do Custom Loop - Part 1pro 12:37
- 5 Genesis Do Custom Loop - Part 2pro 09:51
- 6 Standard Loop Overview - Part 1pro 08:30
- 7 Standard Loop Overview - Part 2pro 10:34
- 8 Standard Loop and WordPress Corepro 11:29
- 9 Before the Loop Hook - genesis_before_whilepro 11:38
- 10 Before the Entry Hook - genesis_before_entrypro 06:10
- 11 Entry Header Hook - genesis_entry_headerpro 17:38
- 12 Entry Header - Post Title - Part 1pro 13:07
- 13 Entry Header - Post Title - Part 2pro 07:48
- 14 Entry Header - Post Infopro 09:26