Using variables inside of query_posts
-
I just posted this as a follow up to this thread, but then noticed that it was already marked resolved. I would like to know if there is a work around for using variables inside of query_posts.
query_posts(array('category__and'=>array(2,6)));
I would like to get a list of posts that are in the current category (my variable) and another (static) category – but I have not yet found a way to do this.
- The topic ‘Using variables inside of query_posts’ is closed to new replies.