Skip to content

Instantly share code, notes, and snippets.

@nunotmp
Created June 16, 2014 23:56
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 nunotmp/b086eb6b7093520eda51 to your computer and use it in GitHub Desktop.
Save nunotmp/b086eb6b7093520eda51 to your computer and use it in GitHub Desktop.
Genesis Post hooks 2.0 and Legacy
//* HTML5 Hooks
add_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 );
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
add_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'genesis_do_post_content_nav', 12 );
add_action( 'genesis_entry_content', 'genesis_do_post_permalink', 14 );
add_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
add_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
add_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
add_action( 'genesis_after_entry', 'genesis_get_comments_template' );
//* Pre-HTML5 hooks
add_action( 'genesis_before_post_title', 'genesis_do_post_format_image' );
add_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_post_content', 'genesis_do_post_image' );
add_action( 'genesis_post_content', 'genesis_do_post_content' );
add_action( 'genesis_post_content', 'genesis_do_post_permalink' );
add_action( 'genesis_post_content', 'genesis_do_post_content_nav' );
add_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_after_post_content', 'genesis_post_meta' );
add_action( 'genesis_after_post', 'genesis_do_author_box_single' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment