Forums › Forums › Search & Filter Pro › Help on integrating Event Maker Plugin
Tagged: events, search result
- This topic has 19 replies, 2 voices, and was last updated 5 years, 1 month ago by Trevor.
-
Trevor(Private) September 23, 2019 at 2:23 pm #221580
Having taken a long look at things, you would need to re-code the places in the results.php template where you use those two functions.
I cannot see how those functions are fetching the term data by looking at that plugin code, so you would need to try standard WordPress coding protocols.
For
em_display_event_tags()
this is accessing a taxonomy namedevent-tag
. There are many examples of code snippets on how to do this on StackExchange, such as this simple snippet:foreach (get_the_terms(get_the_ID(), 'event-tag') as $event_tag_term) { echo $event_tag_term->name; }
The dates are stored as a custom field, named
_event_start_date
These appear to be date/time stamps, e.g.
2019-10-29 00:00:00
A snippet would look like this:
$start_date = get_post_meta( get_the_ID(), '_event_start_date', true ); // Check if the custom field has a value. if ( ! empty( $start_date ) ) { echo $start_date; }
Of course, you may want a prefix/title, additional HTML, commas for lists etc, but the above should at least fetch the data for you to then process.
-
AuthorPosts