Support » Plugin: Post Types Order » Not working using get_posts function

  • Resolved logicred


    Re-ordering works fine in back end, but when I use a get_posts function the new order is not retained:


    It is still ordering by ID. I can use the ‘orderby’ and ‘order’ params, but none of these reflect the re-ordering used by this plugin. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nsp-code


    Try including the ‘suppress_filters’ => FALSE within the parameters.



    Thanks! Interesting, but possible bug in WP…


    $args = array( ‘posts_per_page’ => 10, ‘suppress_filters’ => false, ‘category’ => 6 );

    THIS DOES NOT (it works, but the suppress_filters has no effect).

    $lastposts = get_posts(‘numberposts=10&category=5&suppress_filters=false’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working using get_posts function’ is closed to new replies.