Forums

Logical AND for tag pages (2 posts)

  1. Leirith
    Member
    Posted 1 year ago #

    Hi,

    I was wondering if it's possible to show a tag page that includes all posts that have two or more tags that I specify, e.g. show a list of all posts that have both the tags "cats" AND "dogs".

    Thanks!

  2. zoonini
    help me help you
    Posted 1 year ago #

    Would this work for you:

    is_tag(array('cats','dogs'));

    Reference: http://codex.wordpress.org/Function_Reference/is_tag

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags