2015-05-25 51 views

回答

1

您可以使用get_post_time()這一點。 只需將它添加到你的single.php你想要的地方。

+0

如果我想將其添加到標題? – user4938206

1

假設它仍然使用正常的WordPress的職位,here is the documentation。其計算公式爲get_post_time($d, $gmt, $post, $translate);

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

這將輸出類似下面的2010/11/06 12:50:48 AM

+0

是的,謝謝。但我在哪裏把這個? – user4938206

+0

什麼是插件 – Bankzilla

+0

向頁面添加帖子 – user4938206