[英]How can I get updated row from MySQL in wordpress site?
我想顯示從MySQL到wordpress網站的更新行的時間和日期。 我怎樣才能做到這一點?
假設您要顯示帖子被修改的日期/時間,請查看下面的鏈接。
http://codex.wordpress.org/Function_Reference/the_modified_date#Date_and_Time
// Displays the date and time.
<p>Modified: <?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?></p>
// Modified: December 2, 2006 at 10:36 pm
Modified Date: <?php the_modified_date('F j, Y'); ?> at <?php the_modified_date('g:i a'); ?>
使用此功能可以獲取修改日期
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.