user4938206
user4938206

Reputation: 33

Timestamp Wordpress posts

I would really like to stamp all my posts with time posted. I would like it to be at the bottom of the posts.

Info: http://188.166.106.173/romerike/

I use a post to page plugin, and the code on the page is: [add_posts full=true category=romerike]

Image

Upvotes: 0

Views: 375

Answers (2)

Jakub Juszczak
Jakub Juszczak

Reputation: 7827

You can use get_post_time() for this. Just add it to your single.php where you want it.

Upvotes: 1

Bankzilla
Bankzilla

Reputation: 2096

Assuming it still uses the normal wordpress posts, here is the documentation. The formula is get_post_time( $d, $gmt, $post, $translate );

get_post_time( "Y/m/d g:i:s A", true, $post->id);

This will output something like the following 2010/11/06 12:50:48 AM

Upvotes: 1

Related Questions