Support » Plugins and Hacks » [Resolved] Exclude from query

[Resolved] Exclude from query

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


    You can switch OFF the Autosort and include ‘orderby’ => ‘menu_order’ just for queries where the sort need to apply.
    Also you can try to remove the plugin orderby filter, right before you run the query
    remove_filter(‘posts_orderby’, ‘CPTOrderPosts’, 99, 2);
    then put it back after the loop
    add_filter(‘posts_orderby’, ‘CPTOrderPosts’, 99, 2);
    to allow further queries to autosort.

    Or if you own the Advanced Post Types Order the ‘force_no_custom_order’ => TRUE can be used to make the filters to ignore the Autosort ON so it will return the order specified within the query. For more details and examples check on this link http://www.nsp-code.com/advanced-post-types-order-api/sample-usage/

    Perfect, Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Exclude from query’ is closed to new replies.