Wordpress HTML5 time format


/ Published in: HTML
Save to your folder(s)

Hello,
Here is snippet to show wordpress posted date using html5 time tag.


Copy this code and paste it in your HTML
  1. <time datetime="<?php the_time('c'); ?>" pubdate>
  2. <?php the_time('F jS, Y'); ?>
  3. </time>

URL: http://idragons.co/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.