Skip to content

Instantly share code, notes, and snippets.


KnowTheCodePro/loops.php Secret

Created May 10, 2016
What would you like to do?
Genesis standard loop
if ( have_posts() ) :
do_action( 'genesis_before_while' );
while ( have_posts() ) : the_post();
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