Skip to content

Instantly share code, notes, and snippets.

@davidpede
Last active April 16, 2026 15:17
Show Gist options
  • Select an option

  • Save davidpede/a00fbd35ff7c0f69815c to your computer and use it in GitHub Desktop.

Select an option

Save davidpede/a00fbd35ff7c0f69815c to your computer and use it in GitHub Desktop.
pdoResources where examples
&where=`{ "template:IN" : [ 1,2,3 ] }
&where=`{ "template:NOT IN" : [ 1,2,3 ] }
&where=`[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}]`
@achterbahn
Copy link
Copy Markdown

Example 3:
&where=[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}]
(Watch the square brackets!)

@stewartorr
Copy link
Copy Markdown

For anyone who found this wondering how do you do a NOT it's like this

&where=`{"featured:!=":"true"}`

Or if it's a checkbox, you might need. something like this

&where=`{"featured:!=":"true","OR:featured:IS":null}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment