Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个博客,我经常需要更新我的文章。现在,我希望在主页上显示更新的文章(就好像它们是今天创建的一样)。“粘性”帖子不能解决我的问题,我也没有找到任何可以为我解决问题的插件。更改“创建”日期也不是一个解决方案,因为所有帖子都有一个类似 myblog/YYYY/MM/DD/blogpost 的网址,它会改变......所以,有什么想法吗?:)
非常感谢!
没关系。
<?php global $query_string; ?> <?php query_posts($query_string . 'order=DESC&orderby=modified'); ?>
做这项工作。