Forked from WesStraham/Genesis Portfolio Image Without Permalink
Created
March 16, 2014 09:10
-
-
Save nhatdongnguyen/9580483 to your computer and use it in GitHub Desktop.
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
/** | |
* Adds Featured Image and links it to the Post | |
* | |
* @author Wes Straham | |
* @since 1.0.0 | |
*/ | |
add_action( 'genesis_before_post_content', 'epik_portfolio_do_post_image' ); | |
function epik_portfolio_do_post_image() { | |
$img = genesis_get_image( array( | |
'format' => 'html', | |
'size' => 'portfolio-thumbnail', | |
'attr' => array( | |
'class' => 'alignnone post-image' | |
) ) ); | |
printf( $img ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment