Post Types Order
[resolved] Plugin clashes with orderby parameter in query_posts (3 posts)

  1. Roger Coathup
    Posted 4 years ago #

    With this plugin activated, the orderby parameter is ignored in a custom query:


    $args = array (
    	'post_type' => 'mytype',
    	'orderby' => 'rand',
    	'posts_per_page' => -1);
    $psites = new WP_Query( $args );

    The rand parameter is ignored when the plugin is active.

    Is there any workaround - we want some of our pages displaying the posts in the order determined by the plugin, but we also need to be able override that in custom loops


  2. salocined
    Posted 4 years ago #

    have the same problem...
    Any workaround?

  3. Break5
    Posted 3 years ago #

    why is this marked resolved, I got the same problem...

    besides this, really handy plugin, but please offer a override functionality!


    I actually solved:

    Just uncheck auto-sort!

    * Screenshot

    Be sure to check your code accordingly to the explainations linked by "show examples" in plugin settings!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic