Creates a shortcode to display the date/time when a post/page was last updated (with optional formatting).
There are a lot of posts online about how to get rid of the errors:
Warning: Missing required field “updated”
Warning: Missing required hCard “author”
But when you're using Genesis Framework then you already know that editing single.php is futile.
Simply install the plugin, go to a page/post > Edit page/post and at the bottom of the post (or anywhere else if you prefer) add the shortcode
<span class="updated">[lastupdated]</span>. Then check this page/post on the Structured Data Testing Tool and you will see the above errors are no more.
Thank you Luke!!!
For those who want to replace their post creation date with the "last updated" date, it works perfectly. Thank you!
You must log in to submit a review. You can also log in or register using the form near the top of this page.