Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Correct syntax for using more than one conditional tag

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25788
    EamonnMac
    Member

    Hey guys, quick query – I’ve googled this but everyone seems to deal with just the ‘or’ or ‘else’ aspects of conditional tags, for example :

    <? php if (is_home() || is_category(‘3’)

    …being ‘if this is the home page or category 3 then…

    With the is_home and in_category tags, what is the correct syntax for writing ‘if this is the home page and in category 3 then…etc.?

    Thanks in advance!

    #62349
    #62351
    EamonnMac
    Member

    Sweet. Thanks man.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.