Forums

Search for more than 1 tag (tag_slug__and) (2 posts)

  1. xdesi
    Member
    Posted 5 years ago #

    Hi,i'm currently using the following:

    'tag_slug__and'=>array('a')

    the question is how do i search for more than 1 tag, so i want to display all posts that contain tag a OR tag b!!!

  2. xdesi
    Member
    Posted 5 years ago #

    I am sorry for the bump but can nobody help me with this simple problem? I have tried searching but could not find an example in relation to mine??

    I tried using tag_slug__or'=>array('a','b')
    But this just returns all posts not the ones with the tag a or the tag b.
    I tried using tag_slug__and'=>array('a','b')
    This returns nothing at all.

    tag_slug__and'=>array('a')
    Works. But i want to display posts from multiple tags, so with tag a or tag b or tag c etc etc....

Topic Closed

This topic has been closed to new replies.

About this Topic