Reply To: Mashup shortcode to show by event date

Home Forums MapPress Support Mashup shortcode to show by event date Reply To: Mashup shortcode to show by event date

#12731
amir200770
Participant

Hi Chris,

Thanks for that. I just tried the following

$query = “post_type=events&meta_key=event_end_date&meta_value=” . date(‘Ymd’) . “&meta_compare='<‘”;
echo do_shortcode(‘[mashup width=”100%” height=”400″ query=”‘ . $query .'”]’);

and unfortunately it still returns no POIs (just a map of the globe). And I definitely have events with event_end_date < date(Ymd).

It’s almost as if the shortcode does not understand date(Ymd) or meta_compare.

Any thoughts?