[Support request] After Header hook problem

Home Forums Support [Support request] After Header hook problem

Home Forums Support After Header hook problem

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #226610
    marcel

    Hey tom !
    I try this and no work..

    <?php if ( is_tax(“Sauna”) ) : ?>
    Sauna
    <?php endif; ?>

    <?php if ( is_tax(“Spa”) ) : ?>
    Spa
    <?php endif; ?>

    No detect de tax.. , in sauna category page show : Sauna Spa
    in piscina category page show : Sauna Spa

    Some content..

    Thanks

    #226665
    Tom
    Lead Developer
    Lead Developer

    If both are displaying, it means that the conditional returns true for both pages.

    Another possible reason is you don’t have “Execute PHP” checked.

    #226671
    marcel

    THANKS TOM. But Execute PHP” checked in both..

    #226673
    marcel

    When is checked display nothing
    If not checked display : Sauna Spa

    #226693
    Tom
    Lead Developer
    Lead Developer

    If nothing is displaying when Execute PHP is checked, it means the conditional is returning false.

    You’ll need to make sure you’re using it correctly and calling the right name: https://codex.wordpress.org/Function_Reference/is_tax

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.