function genesis_standard_loop() { if ( have_posts() ) { /** * Fires inside the standard loop, before the while() block. * * @since 2.1.0 */ do_action( 'genesis_before_while' ); while ( have_posts() ) { the_post(); /** * Fires inside the standard loop, before the entry opening markup. * * @since 2.0.0 */ do_action( 'genesis_before_entry' ); genesis_markup( [ 'open' => '<article %s>', 'context' => 'entry', ] ); /** * Fires inside the standard loop, to display the entry header. * * @since 2.0.0 */ do_action( 'genesis_entry_header' ); /** * Fires inside the standard loop, after the entry header action hook, before the entry content. * opening markup. * * @since 2.0.0 */ do_action( 'genesis_before_entry_content' ); genesis_markup( [ 'open' => '<div %s>', 'context' => 'entry-content', ] ); /** * Fires inside the standard loop, inside the entry content markup. * * @since 2.0.0 */ do_action( 'genesis_entry_content' ); genesis_markup( [ 'close' => '</div>', 'context' => 'entry-content', ] ); /** * Fires inside the standard loop, before the entry footer action hook, after the entry content. * opening markup. * * @since 2.0.0 */ do_action( 'genesis_after_entry_content' ); /** * Fires inside the standard loop, to display the entry footer. * * @since 2.0.0 */ do_action( 'genesis_entry_footer' ); genesis_markup( [ 'close' => '</article>', 'context' => 'entry', ] ); /** * Fires inside the standard loop, after the entry closing markup. * * @since 2.0.0 */ do_action( 'genesis_after_entry' ); } // End of one post. /** * Fires inside the standard loop, after the while() block. * * @since 1.0.0 */ do_action( 'genesis_after_endwhile' ); } else { // If no posts exist. /** * Fires inside the standard loop when they are no posts to show. * * @since 1.0.0 */ do_action( 'genesis_loop_else' ); } // End loop. }