Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress post date

// There are multiple ways to show the post published date in WordPress, lets see some:
<?php
		$post_date = get_the_date( 'D M j' );
        echo $post_date; //Place this line to the exact place you want to show the date
 ?> 
// I love this method:
 <?php the_date(); //Isn't it simple? ?> 
 // There is another one
 <?php echo get_the_date(); ?>
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #post #date
ADD COMMENT
Topic
Name
6+6 =