Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created July 10, 2016 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/d50bd23fa583a9cc25ce437ea9926cf8 to your computer and use it in GitHub Desktop.
Save hellofromtonya/d50bd23fa583a9cc25ce437ea9926cf8 to your computer and use it in GitHub Desktop.
Genesis After Entry Event
function genesis_standard_loop() {
...
if ( have_posts() ) :
do_action( 'genesis_before_while' );
while ( have_posts() ) : the_post();
do_action( 'genesis_before_entry' );
printf( '<article %s>', genesis_attr( 'entry' ) );
...
echo '</article>';
do_action( 'genesis_after_entry' );
endwhile; //* end of one post
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment