• Hi,

    On the site I have an custom template that makes an WP_Query to fetch certain type of custom post type. WP_Query is working correctly and ordering thins accordingly to the args array. When I move one post with your plugin the WP_Query stops working correctly. The order is only by title and I can’t change it to anything else, most of the args are not working. When I move the post back to its original position everything is still broken. When I deactivate your plugin everything starts to work again.

    My args is as simple as:
    $args = array(
    ‘post_type’ => ‘asunnot’,
    ‘posts_per_page’ => -1,
    ‘meta_key’ => ‘tyyppi’,
    ‘orderby’ => ‘meta_value_num’,
    ‘order’ => ‘DESC’
    );

    I have fixed the problem for now by deactivating the plugin. This is more just as a note if there is a potential bug in the plugin.

The topic ‘Ordering breaks WP_Query’ is closed to new replies.