Support

Account

Home Forums General Issues Querying relationship with True / False Reply To: Querying relationship with True / False

  • 
    ......
                  'meta_query' => array(
                    array(
                      'key' => 'courses_offered',
                      'value' => '"' . get_the_ID() . '"',
                      'compare' => 'LIKE',
                    // added the next 2 lines
                    ),
                    array(
                      // what does this represent
                      // those that are active or inactive
                      // if you toggle the field on to make it inactive
                      // then the value here should be 0
                      'key' => 'status',
                      'compare' => '==',
                      'value' => '1'
                    )
                  )