[Plugin: Events Manager] Get startdate for current event
-
Hi,
I have written a function in functions.php that takes a date as argument and prints titles of wordpress posts based on a custom field with the date set. This function works fine.
What I want to do with this function is to show related wordpress posts in the event details for each event, based on startdate for the event (the date I set in the custom field in the posts).I hook this function to the event content like this:
function my_em_custom_content($content){ $content .= show_related_posts('<the_events_start_date>'); return $content; } add_filter('em_content','my_em_custom_content');
The problem is that I can’t figure out how to get the startdate (<the_events_start_date>) for the current event? Is there some global class parameter I can call or who to get this?
Please help!Thanks in advance
/ Daniel
- The topic ‘[Plugin: Events Manager] Get startdate for current event’ is closed to new replies.