How to write “Does Not Have Tag” in PHP?
-
Hello-
I’ve been trying to figure out a way to basically say the following:
if has tag =”jake” and does not have tag= “dylan” then do this:I’ve gotten the following, but does not seem to be working. Any suggestions?
Thanks!
<? $currenttag = (has_tag('jake') && !has_tag('dylan')) ? "class='current'" : ""; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to write “Does Not Have Tag” in PHP?’ is closed to new replies.