get_posts Show all post return nothing!
-
i’m using this query:
$animeposts = array( 'post_type' => $queryvar, 'numberposts' => -1 , 'order'=>'ASC', 'tax_query' => array( //(array) - use taxonomy parameters (available with Version 3.1). 'relation' => 'AND', //(string) - Possible values are 'AND' or 'OR' and is the equivalent of ruuning a JOIN for each taxonomy array( 'taxonomy' => 'post_types', //(string) - Taxonomy. 'field' => 'slug', //(string) - Select taxonomy term by ('id' or 'slug') 'terms' => $types[0]->slug, //(int/string/array) - Taxonomy term(s). 'operator' => 'IN' //(string) - Operator to test. Possible values are 'IN', 'NOT IN', 'AND'. )), 'post__not_in'=>array($refid), 'orderby' => 'title');
in version 3.4 i have no problem but when i update to version 3.5 it return nothing!!
i change id withquery_posts
andpost_per_page=>-1
and nothing again!
please someone shed light on it
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_posts Show all post return nothing!’ is closed to new replies.