Support » Fixing WordPress » Need assistance on query_posts outputting correctly

  • WPChina

    (@wordpresschina)


    I want to output posts this month from either Category 1 or Category 3 or Tag=movie or Tag=video

    If I only want to do cat=1 or cat=3, that is easy this way:

    query_posts("year=$current_year&monthnum=$current_month&cat=1,3");

    But I can’t figure out how to add the tags in there to be OR, not AND, with the categories. Does anyone have an idea?

    Thank you for your help!

  • The topic ‘Need assistance on query_posts outputting correctly’ is closed to new replies.