• 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)
  • Thread Starter skitelluride531

    (@skitelluride531)

    Basically, what I am trying to accomplish here is giving a certain

    • the class of current when only posts with the tag of “jake” are on the page.
Viewing 1 replies (of 1 total)
  • The topic ‘How to write “Does Not Have Tag” in PHP?’ is closed to new replies.