Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active September 2, 2015 22:54
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 reasonstousegenesis/80a212040fe55a4fb49b to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/80a212040fe55a4fb49b to your computer and use it in GitHub Desktop.
Enable or disable the entry meta after content for different post types with Genesis
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Enable or disable the entry meta after content for different post types with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-entry-meta-after-content/
*/
add_action( 'init', 'rtug_entry_meta_after_content', 11 );
function rtug_entry_meta_after_content() {
add_post_type_support( 'page', 'genesis-entry-meta-after-content' );
// replace page with your post type ID if necessary
remove_post_type_support( 'post', 'genesis-entry-meta-after-content' );
// replace post with your post type ID if necessary
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment