开发者

Determine date/time of original post

Is there a wa开发者_开发问答y to determine the original date/time of a Wordpress blog post?

Take for example this blog post. There is no way to determine the date/time of the original posting. However if you leave a comment then the date/time it was left is published.


That's not a blog "post", but a page. It doesn't share the date it was posted because it's meant to act as a web page that can change over time, not a post with information that may correlate to a single point in time.


If you are asking how to show the date/time on a page, this is absolutely possible. You can use the following code to display it. Just paste this code in the loop that is used in the page.php file of your theme

<?php the_time('F jS, Y') ?>

In order to style the date as you wish, see this page: http://codex.wordpress.org/Formatting_Date_and_Time

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜