Last active
September 2, 2015 22:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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