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.
