WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Roger Coathup
    Member
    Posted 3 years ago #

    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/

  2. salocined
    Member
    Posted 3 years ago #

    have the same problem...
    Any workaround?

  3. Break5
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic