WordPress 首页文章列表按最后编辑更新时间排序
在 index.php 中一般都会有这样一段代码:<?php while (have_posts()) : the_post(); ?> 也许你的 index.php 中和这个不完全一样,但肯定也是长得很像。要想实现功能,只需要在这段代码前加上:<?php $posts = query_posts($query_string . '&orderby=modified');
在 index.php 中一般都会有这样一段代码:<?php while (have_posts()) : the_post(); ?> 也许你的 index.php 中和这个不完全一样,但肯定也是长得很像。要想实现功能,只需要在这段代码前加上:<?php $posts = query_posts($query_string . '&orderby=modified');