Hello all,
I read carefully through https://processwire.com/api/selectors/ but can't seem to get negative selector to work on a 2.4.11 install.
My setup:
-places with tags.
-"tags" field is a multi page select field.
When I do
$pages->get("/places")->children("tags*=food")
I get all children with tag "food".
But when I do
$pages->get("/places")->children("!tags*=food")
I get all children. But it should only return all children that do not have the tag "food".
The selector api states about negative selectors
So what am I doing wrong here? Might it be related to my tags field being a multi page select field?
What I'm ultimately trying to achieve is
$pages->get("/places")->children("tags*=food, !tags*=accomodation")
Cheers
Gerhard