I’m working with this code:
<?php the_post_thumbnail('full'); ?>
What I’m trying to do is wrap it in a this tag:
<img>because I want to add Structured Data Markup like so:
<img itemprop="image" class="alignright size-full wp-image-753" alt="" src="image.jpg"/>
Does anybody know how to do this?
- The topic ‘Schema.org: Editing the_post_thumbnail code?’ is closed to new replies.