Support » Plugin: Post Types Order » Order didnt work then i save from taxonomy filter

  • Resolved manaraga

    (@manaraga)


    If a order and save from taxonomy filter i didnt see result. But when i order and save form archive (all posts) then i see result! We saving from tax not applied?

    Query what i used is:
    WP_Query(array('orderby' => 'menu_order', 'order' => 'DESC', 'showposts' => -1,'cat' => $cat, 'tax_query' => array('relation' => 'AND', array('taxonomy' => 'brands', 'field' => 'id', 'terms' => $brand), $country1, $country2)));

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

Viewing 1 replies (of 1 total)
  • I solved its by myself! Moving cat to the tax_query allowed show correct order by tax!

    This works:
    WP_Query(array(‘orderby’ => ‘menu_order’, ‘order’ => ‘DESC’, ‘showposts’ => -1, ‘tax_query’ => array(‘relation’ => ‘AND’, array(‘taxonomy’ => ‘brands’, ‘field’ => ‘slug’, ‘terms’ => $term), array(‘taxonomy’ => ‘category’, ‘field’ => ‘id’, ‘terms’ => $child2), $country1, $country2)));

Viewing 1 replies (of 1 total)
  • The topic ‘Order didnt work then i save from taxonomy filter’ is closed to new replies.