Support

Account

Home Forums General Issues Filter Post By Query If the Value is Null Reply To: Filter Post By Query If the Value is Null

  • checking for NULL value in meta_queries is:
    $args = array(
    ‘numberposts’ => -1,
    ‘post_type’ => ‘post’,
    ‘meta_query’ => array(
    ‘relation’ => ‘OR’,
    array(
    ‘key’ => ‘regulation’,
    ‘compare’ => ‘NOT EXISTS
    )
    )
    )

    it is key word for SQL IS NULL