Custom Query Tag = and Tag !=
-
I am trying to do a custom query and it works fine using:
$query= 'tag=' . $value. '&showposts=1&random=true';
My only concern is I also want to say where tag = a string, but also that post doesn’t contain some other tags.
For example if I have 2 posts, one with tags = design, poster, happy. Then another post with the tags = design, art, nsfw. I would like to have a way to say, if the post has the tag ‘nsfw‘ skip this item in the query result.
Any ideas?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Query Tag = and Tag !=’ is closed to new replies.