Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created May 12, 2015 15:49
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/0f3ebacdfc302776422d to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/0f3ebacdfc302776422d to your computer and use it in GitHub Desktop.
Output the featured image, directly below the entry content, for Pages only
<?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