Created
January 30, 2014 16:25
-
-
Save pmgllc/8712457 to your computer and use it in GitHub Desktop.
Pull a featured image with custom size into a page template - #genesiswp
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 | |
// Display the featured image, with custom image size | |
add_action( 'genesis_entry_content', 'show_featured_image'); | |
function show_featured_image() { | |
$args = array( 'size' => 'rss' ); | |
return genesis_image($args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like it. I've used the_post_thumbnail() & its varying related functions to do the same.