Created
January 2, 2024 23:59
-
-
Save henshaw/f7129e6b83892ef3739c585ca3067dff to your computer and use it in GitHub Desktop.
Dynamically inserting the article timestamp in WordPress
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
<time datetime="<?php the_time('c'); ?>"><?php the_time('m/j/Y'); ?> <?php the_time('g:ia T'); ?></time> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced on Google News Guide: How to optimize your site and article content to appear in Google News