Hi everybody, I’m struggling with a query loop configuration which, in my mind, seemed to be very easy but it doesn’t work in any manner.
I created a CPT for courses using Meta Box and added some custom fields inside. One of these custom fields is a switch that is needed to identify a specific kind of course.
Being a switch type it returns just 2 values, 0 or 1 (so that’s why I thought it should have been easy to configurate); what I’m trying to achieve with the loop is getting a list of all the courses except the ones having the value “1” in that custom field but, obviously, it’s not working at all.
The name of custom field is “corsomaster” while the name of CPT is “corsi”.
Could you please help me understand what I’m doing wrong?
Thanks in advance to everybody.