Support » Plugin: Post Types Order » [Plugin: Post Types Order] Plugin clashes with orderby parameter in query_posts

  • Resolved Roger Coathup

    (@rogercoathup)


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

    e.g.

    $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

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • have the same problem…
    Any workaround?

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

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

    EDIT:

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post Types Order] Plugin clashes with orderby parameter in query_posts’ is closed to new replies.