Reply To: Mashup shortcde not limiting no post per page

Home Forums MapPress Support Mashup shortcde not limiting no post per page Reply To: Mashup shortcde not limiting no post per page

#18460
geraldjim
Participant

The copy and pate failed badly – sorry

Here it is again

 

Display posts where the custom field key is a set date and the custom field value is now. Displays only posts which date has not passed.

$args = array(
‘post_type’ => ‘Event’,
‘meta_key’ => ‘Expires’,
‘meta_value’ => date( “Ymd” ), // change to how “event date” is stored
‘meta_compare’ => ‘>’,
);
$query = new WP_Query( $args );