query_posts and trash items – strange
-
Hi, I noticed that those two queries produce different results, meaning that the one with the array also returns unwanted items from trash. Of course there is no need for array but it returns items from trash even if I specify the array as
array('publish','draft')
. I am not sure if this is only custom taxonomy related behaviour or a general one. I am using that in the author.php, hence the$curauth->ID
and the rest.first one
$dentfix_query = array ( 'post_type'=>array('statusdentar','tratamente'), 'author'=>$curauth->ID, 'post_status'=>'publish', 'dinti'=>'1'.$e ); query_posts( $dentfix_query );
and second one
$dentfix_query = array ( 'post_type'=>array('statusdentar','tratamente'), 'author'=>$curauth->ID, 'post_status'=>array('publish'), 'dinti'=>'1'.$e ); query_posts( $dentfix_query );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘query_posts and trash items – strange’ is closed to new replies.