I need to add a second section name to this code:

craft.entries.section('not homePage')

I can't figure out the correct formatting. I've tried:

craft.entries.section('not homePage,clientPage')
craft.entries.section('not homePage, not clientPage')

How do I add a second limiter?

1 Answer 1


A second limiter is added to the conditional like this:

craft.entries.section('and, not homepage, not clientPage')
  • We already had a similar question this morning. Do you know how to combine more complex conditionals?
    – carlcs
    Commented Jun 12, 2014 at 17:09
  • 1
    I'm learning. There isn't good documentation on this topic IMO. Commented Jun 12, 2014 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.