• I’m building a custom single events page and I tried to display the date of a recurring event (with multiple entries, not displayed as a single event). Unfortunately…

    get_post_meta( get_the_ID(), ‘mec_start_date’, true );

    … pulls the start date of the first event in that row (e.g. 2021-03-01) but not the start date of the event that is currently displayed (e.g. 2022-02-20). Same of course with the end date. I used the functions you suggest here:

    https://webnus.net/dox/modern-events-calendar/overriding-mec-single-event-page/

    Interesting: The countdown widgets displays a correct countdown time. So how can I display the date and time related to the current event?

    Workaround:

    $single = new MEC_skin_single();
    $single_event_main = $single->get_event_mec(get_the_ID());

    In $single_event_main the very last array [date] seems to contain the actual date for the current event. But I think this is not the way it is intended to get it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor webnus

    (@webnus)

    Hello @ksvgn2018,

    I fully examined the issue you have raised on this topic and could not see it on my end. How can we replicate your steps to arrive at the issue on a fresh WordPress installation?

    Perhaps it conflicts with other plugins, so for troubleshooting, please deactivate all your plugins and let the MEC remain active only, set your theme on default, then reload the page, if the issue was solved, then activate your plugins one by one and your theme, refresh your page and check to see which plugin is causing the issue.

    Please keep us informed,

    Best Regards

    Thread Starter ksvgn2018

    (@ksvgn2018)

    Thank you for your reply. If it’s a conflict with another Plug-in I suspect either “Yoast SEO” or “Polylang”. I might try it on a fresh installed WordPress in the future and if it happens again, I will get back to you with more information.

    For now I did more customization with the actual array values I mentioned, that works just fine and leaves me with more freedom in design.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom single event page – wrong date with recurring events’ is closed to new replies.