Last active
December 10, 2017 14:47
-
-
Save jeremyjaymes/418003f5849719e17fae to your computer and use it in GitHub Desktop.
Add Microdata to WordPress Thumbnails
This file contains hidden or 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
/** | |
* Add microdata to WordPress thumbnails | |
*/ | |
//* Using the_post_thumbnail | |
the_post_thumbnail( 'image-size', array( 'itemprop' => 'Photo' ) ); | |
//* Using get_the_post_thumbnail | |
get_the_post_thumnail( 'image-size', array( 'itemprop' => 'Photo' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment