I should also mention that these options don’t seem to work as expected either:
//returns Posts where boolean_field = 1 (expected would be the opposite)
$query['boolean_field']['!='] = 1
$query['boolean_field']['ne'] = 1
Actually, what I’m really having trouble with now that I’ve fiddled with it some more, is the custom field queries not really working as expected. Maybe you can help shed some light.
//only returns posts with boolean_field checked
$query['boolean_field'] = '1';
//returns ALL POSTS regardless of what’s checked
$query['boolean_field'] = '0';
or
$query['boolean_field'] = '';
I can’t seem to just do a simple exclusion of a post from the query based on a checkbox. Is this working as intended?
I’m a huge dork and just remembered that I can use wordpress functions outside the loop by providing the post ID, which I can get from CCTM.
So, yeah. I’m a dolt. Carry on!