In dynamic_dropdown_func()
, at the end try echo $event_dates;
instead of return $event_dates;
.
Also, I’m wondering why you declare global $wpdb;
when you don’t seem to use it?
In dynamic_dropdown_func()
, at the end try echo $event_dates;
instead of return $event_dates;
.
Also, I’m wondering why you declare global $wpdb;
when you don’t seem to use it?