How you get the date of a post in WordPress

Author:Kostas Sp Published On:October 5, 2014 Under:Wordpress

 
 

In this post we will examine how you can get the date of a post
 
php functions
 

 
You may try this code.
Usually this is a command before the content

 

<li class="icon-date"><?php echo get_the_date( 'Y-m-d' ); ?></li>
<li class="icon-time"><?php the_time( 'H:i:s' ); ?></li>
 
<?php the_content(); ?>
   
Tags:
 

Leave a Reply


7 − two =

.
 
Categories
TEST

Anything in here will be replaced on browsers that support the canvas element

Tags