-
-
Save KnowTheCodePro/8c88f937c23b05945bc0993bf5b1c0f0 to your computer and use it in GitHub Desktop.
Genesis standard loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( have_posts() ) : | |
do_action( 'genesis_before_while' ); | |
while ( have_posts() ) : the_post(); | |
... | |
endwhile; | |
do_action( 'genesis_after_endwhile' ); | |
else : //* if no posts exist | |
do_action( 'genesis_loop_else' ); | |
endif; //* end loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment