Created
May 12, 2015 15:49
-
-
Save reasonstousegenesis/0f3ebacdfc302776422d to your computer and use it in GitHub Desktop.
Output the featured image, directly below the entry content, for Pages only
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. | |
/** | |
* Output the featured image, directly below the entry content, for Pages only | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/conditional-tags/ | |
*/ | |
add_action( 'genesis_entry_content', 'rtug_featured_image' ); | |
function rtug_featured_image() { | |
if ( is_page() ) { | |
genesis_image(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment