开发者

Wordpress updated posts on home page

开发者 https://www.devze.com 2023-01-10 01:16 出处:网络
I\'ve got a blog where I often have to update my articles. Now, I want the updated articles to be shown on the home 开发者_运维知识库page (as if they were created today). \"Sticky\" posts don\'t solve

I've got a blog where I often have to update my articles. Now, I want the updated articles to be shown on the home 开发者_运维知识库page (as if they were created today). "Sticky" posts don't solve my problem and I didn't find any plugin that would do that for me. Changing the "created"-date isn't a solution as well because all posts have a url like myblog/YYYY/MM/DD/blogpost and it would change... so, any ideas? :)

Many thanks!


nevermind.

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

does the job.

0

精彩评论

暂无评论...
验证码 换一张
取 消