Support

Account

Home Forums General Issues Event Date Sorting Reply To: Event Date Sorting

  • Hi John,

    Thanks so much for your help with this; hugely appreciated!

    As it happens, no sooner than I had posted my question on these here boards, I came up with the following solution, and it was very similar to yours, so hopefully it’s a case of great minds thinking alike and all that!

    Thanks again for your reply, and it’s all working brilliantly now!

    Alex

    $meta_query = array(
    				
    				'relation' => 'OR',
    
    				array(
    					'key' => 'end_date',
    					'compare' => '>=',
    					'value' => $today,
    				),
    				
    				array(
                        'key' => 'event_date',
                        'value' => 'standard',
                        'compare' => 'NOT LIKE',
                    ),
    				
    			);