Skip to content

Instantly share code, notes, and snippets.

@WesStraham
Created October 12, 2013 02:30
Show Gist options
  • Select an option

  • Save WesStraham/6945028 to your computer and use it in GitHub Desktop.

Select an option

Save WesStraham/6945028 to your computer and use it in GitHub Desktop.
Remove prettyPhoto Image
// Add Featured Image for the Portfolio posts in this Page Template
add_action('genesis_before_post_content', 'legacy_portfolio_do_post_image');
function legacy_portfolio_do_post_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) );
printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment