WordPress.org

Ready to get started?Download WordPress

Forums

Changing the Post Order. (9 posts)

  1. dorianj
    Member
    Posted 4 years ago #

    Is there a way to control the order of posts numerically?

    For example, I want to assign a number to each post and this number will determine the order that the post is displayed in. We have assembled/are assembling a site (collaboration of many people) and we want everything to be displayed in the chronological order that the events took place. We don't want them displayed by Post Date which is the WordPress default. I've looked at plugins, but they only allow for alphabetical or categorical sorting, nothing that gives explicit control of the post order.

    Any advice is appreciated. I'm using Thesis 1.6 theme.

  2. Justin Shreve
    Member
    Posted 4 years ago #

    Hi dorianj,

    It looks like a plugin such as postmash-filtered might work. The description describes the plugin letting you reorder posts through and interface. I think this might be what you are looking for.

    Thanks,

    [signature moderated Please read the Forum Rules]

  3. dorianj
    Member
    Posted 4 years ago #

    Thanks. I had tried that plugin, but it did not work. In fact, it did nothing no matter how much I rearranged the post order in the admin interface.

  4. Justin Shreve
    Member
    Posted 4 years ago #

    Even with the template edit mentioned in the install notes? It just simply stayed ordered by date?

  5. dorianj
    Member
    Posted 4 years ago #

    Yes. :-(

  6. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    you could manually change the publish date to reflect the desired order:
    (admin - posts - quickedit - date)

    or use custom fields and sort the output using query_posts():
    http://codex.wordpress.org/Template_Tags/query_posts#Custom_Field_Parameters

  7. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    Check with this plugin too:

    http://wordpress.org/extend/plugins/custom-post-order/

    Thanks,

    Shane G.

  8. David Gard
    Member
    Posted 4 years ago #

    You can do it without plugins, and two methods spring to mind -

    1. You can simply change the Post Date on each individual Post so that they display in the desired order.
    2. You can add meta data to each Post and sort by that -
      $args = Array('meta_key' => date_of_post, 'orderby' => meta_value, 'order' => ASC);
      $my_posts = get_posts($args)
      foreach($my_posts as $my_post){
          the_content();
      }

      If you are to use this method I would recommend putting the date in yyyy-mm-dd format, so that it can be ordered correctly using the above code

  9. dorianj
    Member
    Posted 4 years ago #

    These are some great suggestions! I will test some out. I hope this thread will help someone else attempting the same thing.

Topic Closed

This topic has been closed to new replies.

About this Topic