Answers for "sort even dont exists meta wordpress"

0

sort even dont exists meta wordpress

$query->set( 'meta_query', array(
    'relation' => 'OR',
    array(
        'key' => 'custom_meta_key', 
        'compare' => 'EXISTS'
    ),
    array(
        'key' => 'custom_meta_key', 
        'compare' => 'NOT EXISTS'
    )
) );
$query->set( 'orderby', 'meta_value title' );
Posted by: Guest on May-20-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language