Forums

[resolved] How to display articles that belong to cat=1, tag=red and tag=square? (4 posts)

  1. pingoochan
    Member
    Posted 3 years ago #

    Hi,

    I would like to display articles that belong to my first categories and that match with 2 tags. When I tip http://mywebsite.com/wordpress?cat=1&tag=red&tag=square, it won't work at all. I guess there is another way to do it.

    Thanks for the help!

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    The Codex article, query_posts(), has a section on combining parameters that should help you.

  3. sonny_b
    Member
    Posted 3 years ago #

    Might want to adapt some of the code posted here:
    http://wordpress.org/support/topic/152904?replies=34

  4. pingoochan
    Member
    Posted 3 years ago #

    Thanks to both of you! Problem solve!

Topic Closed

This topic has been closed to new replies.

About this Topic