Support » Plugin: Reorder Posts » [Plugin: Metronet Reorder Posts] New reorder page in admin but no reorder on live site

Viewing 8 replies - 1 through 8 (of 8 total)
  • I have the same issue. I believe it’s because the query being run against the posts needs to use ‘menu_order’ as the ‘order’ parameter. So, modifying the query in just that one aspect (via a template file) should solve the problem.

    I’m still trying to figure out how to do that without using query_posts() and rewriting the entire query. :-/

    Okay, figured it out.

    Just before the beginning of the main loop

    <?php if (have_posts()): ?>

    add the following lines:

    $wp_query->set('orderby', 'menu_order');
    $wp_query->set('order', 'DESC');

    You can change ‘DESC’ to ‘ASC’ if you want to reverse the order.

    That should solve your issue. 🙂

    Plugin Author Ryan Hellyer


    Hi. I’m the developer of the plugin.

    What you are experiencing is not a bug in the plugin, that’s just how it works. I guess I need to document that better to avoid confusion.

    The plugin intended for changing the post order, not the post date.

    You would typically use a plugin like this in conjunction with a custom post-type. The core code of this was originally built to handle the reordering of e-commerce products within a custom e-commerce plugin. I abstracted that out into the plugin you downloaded so that it could be reused on multiple sites. It was never designed with reordering by date in mind, although it looks like mhamann has kindly found a solution to achieve that for anyone who feels that would be useful.

    Hey Mhamann,

    Would you please help me implement your solution to my site? I would like to have the order of my site descend from most current to oldest. Here’s is my site:

    Im using Reflex wordpress theme.


    I am trying to use this plugin to simply reorder single posts by the order that I put them in using your drag and drop listing of my single posts…NOT by date. This doesn’t work. Can you please explain in detail what needs to be changed to make this work. I do not write PHP so I need to know which file to modify and what to change. I tried adding mhamann’s code…
    $wp_query->set(‘orderby’, ‘menu_order’);
    $wp_query->set(‘order’, ‘DESC’);

    this didn’t do anything. By the description of the plugin I would figure it would just reorder by the listing from top to bottom where I place them.

    Plugin Author Ryan Hellyer


    Unfortunately you need some knowledge of PHP to implement this. It looks like you have it set to “menu_order”, which is what you need.

    Your plugin already does this…
    //Output non hierarchical posts
    $post_query = new WP_Query(
    ‘post_type’ => $this->post_type,
    ‘posts_per_page’ => -1,
    ‘orderby’ => ‘menu_order’, /*this line sets to “menu_order”*/
    ‘order’ => $this->order,
    ‘post_status’ => $this->post_status,
    Please tell me where else this must be set (what .php file in the build?)

    Plugin Author Ryan Hellyer


    I don’t know what you are trying to achieve, so I can’t help sorry. There are an infinite number of ways in which you could use this plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Metronet Reorder Posts] New reorder page in admin but no reorder on live site’ is closed to new replies.