Sort by custom date
-
I am using an Events Manager plugin and I list the events through WP Show Posts. The events plugin makes use of an event start date custom field named
_event_start_datewhich I need to sort my events with.My plan is to convert the date to a timestamp so I can then use the following shortcode to sort through the resulting number:
[wp_show_posts id="369" settings="meta_key=_event_start_date&orderby=meta_value_num&order=ASC"]I am also aware of the
strtotime()PHP function but, how can I do the conversion inside a WPSP function that will only affect the event start date while I display the events with WPSP?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Sort by custom date’ is closed to new replies.