Forums Forums Search & Filter Pro Help on integrating Event Maker Plugin

Viewing 10 posts - 11 through 20 (of 20 total)
  • Anonymous
    #221300
    This reply has been marked as private.
    Trevor
    #221360
    This reply has been marked as private.
    Anonymous
    #221395
    This reply has been marked as private.
    Trevor
    #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 named event-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.

    Anonymous
    #222396
    This reply has been marked as private.
    Trevor
    #222459
    This reply has been marked as private.
    Anonymous
    #222514

    Trevor, thanks for getting fast back to me. I changed that, but it is not working like the demo. The results don’t load below as they should be… would you show me the way?

    thank you

    Trevor
    #222643
    This reply has been marked as private.
    Anonymous
    #222967
    This reply has been marked as private.
    Trevor
    #222969

    Thanks for letting me know. I will close this thread for now.

Viewing 10 posts - 11 through 20 (of 20 total)