Forums

Using variables inside of query_posts (1 post)

  1. brockangelo
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic