Created
April 24, 2013 03:55
-
-
Save jayseventwo/5449496 to your computer and use it in GitHub Desktop.
Add featured image to the search/blog archive results. Add to templates/content.php in Roots theme
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 | |
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. | |
the_post_thumbnail(array(200,137)); // adjust to whatever size or empty | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment