Moving Updated Posts to Top? (3 posts)

  1. ZeroFill
    Posted 5 years ago #


    I tried searching but couldn't find any answers. It would be great if someone could help out.

    Does anyone know if there is a feature or plugin that would automatically move updated posts to the top? I use WP to keep people up to date on our IT systems and would like to be able to just update posts to give updates rather than making new posts. Also, updating the post date/time is not an option since it would skew the original timestamp.

    I'm currently using the Recently Updated Pages plugin so folks can see what was updated, but I feel it would be more beneficial if they were actually promoted back to the top instead.


  2. Michael
    Forum Moderator
    Posted 5 years ago #

    you could try and add a custom query before the loop on your template;

    using the orderby=modified parameter:

    for instance:

    <?php global $query_string;
    query_posts($query_string . '&orderby=modified'); ?>
  3. ZeroFill
    Posted 5 years ago #

    Thanks alchymyth! That did the trick.

    For anyone else wanting to do this, edit the template's index.php file and add the code right after <?php if(have_posts()) : ?> or something similar at the top.

Topic Closed

This topic has been closed to new replies.

About this Topic