Display Posts in Modified Order in WordPress

By | 2018 年 7 月 14 日

In the theme editor, locate the index.php file.

Before have_posts() api call. Add the following code:

<?php query_posts($query_string . '&orderby=modified&order=desc'); ?>

Save the index.php.

发表评论

电子邮件地址不会被公开。 必填项已用*标注