When using the entry_id param in {exp:channel:entries}, is it possible to do some advanced conditions like

entry_id="(not 58) AND 99|100|101"

Basically, what I was looking for is if you can use AND, OR and NOT.


This is not possible with this tag.

  • Ok, I guess I can't use {exp:channel:entries} then Dec 13 '13 at 5:45

You can probably accomplish what you're seeking to do by using the Channel Query plugin. It has all of the features of {exp:channel:entries}, with the flexibility of the Query module.

    sql="SELECT entry_id FROM exp_channel_titles WHERE /* your custom query here */"
    <!-- all channel entries variables can be used here -->
  • Nice add-on! I need to check if this is compatible with the latest ExpressionEngine version though. Dec 14 '13 at 1:26
  • The Channel Query plugin works fine for me with EE 2.7.2
    – Alex Kendrick
    Dec 16 '13 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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