WordPress.org

Ready to get started?Download WordPress

Forums

Need assistance on query_posts outputting correctly (1 post)

  1. WPChina
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic