I need help.
I want to get entries based on multiple field search. It works for basic field types like selectbox or plain text but I can't get it to work with Categories Fields.
The field size is a selectbox field and works good. The color is a Categories field and doesn't work.
$criteria = craft()->elements->getCriteria(ElementType::Entry); $criteria->section = "houses"; $criteria->size = "big"; $criteria->color = "white"; // <== HOW??? $entries = craft()->elements->buildElementsQuery($criteria)->queryAll();
How do I get entries with a specific Categories Field value?
Thanks for any help.