Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Created November 8, 2013 15:21
Show Gist options
  • Save JiveDig/7372515 to your computer and use it in GitHub Desktop.
Save JiveDig/7372515 to your computer and use it in GitHub Desktop.
Add new post thumbnail if it exists Add class to thumbnail
if ( has_post_thumbnail() ) {
the_post_thumbnail('book-thumbnail', array('class' => 'new-class') );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment