query_posts as an array
-
Had the current query_posts working…
<?php query_posts( 'posts_per_page=5&cat=6&post_status=future,publish&order=ASC')?>
Wanted to add tag to the query, from my understanding you cannot query on both category and tag unless you use an array. Implemented the following with no data returned…
<?php query_posts(array('cat'=>'6','tag_slug__and'=>array($current),'showpost'=>'5','post_status'=>'future,publish','order'=>'ASC') );?>
There is one record that should be returned. Is there an error in the code?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘query_posts as an array’ is closed to new replies.