Support » Plugin: Intuitive Custom Post Order » Awesome!

  • Always worked perfect except once.Fixed it however.

    If not working for you guys, when making your query, override order with “menu_order” instead of date:

    <?php
    $args = array( ‘post_type’ => ‘post_type’, ‘orderby’ => ‘menu_order‘, ‘order’ => ‘asc’ );
    $the_query = new WP_Query( $args );
    ?>

    Vary on which way you declare this (See the authors notes on this) but use this and it should work as there is a Database entry for each post called menu order. This plugin simply uses ajax to update menu_order on drag. The wp ‘orderby’ parameter isn’t reading from a PHP function, it’s reading from the database itself.

Viewing 1 replies (of 1 total)
  • Thank you for the hint! It was working on my pretty large site with many CPTs and CTs, except one post type. Setting orderby to ‘menu_order’ via pre_get_posts forced it to work. The plugin should work out of the box (and always did for me), but I guess there are some edge cases where it doesn’t.

Viewing 1 replies (of 1 total)
  • The topic ‘Awesome!’ is closed to new replies.