• Resolved eliac7

    (@eliac7)


    Hello,
    I am trying to make a custom archive page for the categories of mec and I want to display the location. I tried with

    $single = new MEC_skin_single();
    $single_event_main = $single->get_event_mec(get_the_ID());
    $single_event_obj = $single_event_main[0];

    and
    $single->display_local_time_widget($single_event_obj); but didn’t work. I tried to see if it’s get saved on the post_meta but no luck. Any ideas?

    • This topic was modified 4 years ago by eliac7.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter eliac7

    (@eliac7)

    Well, I tried again and figured out that I had declared the variables outside the loop. It works now.

    Plugin Contributor webnus

    (@webnus)

    Hello @eliac7,

    I’m glad it is resolved.

    Best Regards

    Thread Starter eliac7

    (@eliac7)

    Hi again,
    Unfortunately, it’s not.
    $single_event_obj->data->locations[5]['name'] I have to echo this to get the location name (still hasn’t figured out what the “5” is, is getting changed by event to event ). The $single->display_local_time_widget($single_event_obj) returns nothing. Any ideas on how the $single->display_local_time_widget($single_event_obj) will work inside the while loop?

    • This reply was modified 4 years ago by eliac7.
    Thread Starter eliac7

    (@eliac7)

    To get the location name used $single_event_obj->data->locations[$single_event_obj->data->meta['mec_location_id']]['name'] but I am sure that the $single->display_local_time_widget($single_event_obj) should work but I am probably using it wrong inside the while loop.

    Plugin Contributor webnus

    (@webnus)

    Hello Again,

    Everything needed to customize MEC, you can find here:
    https://webnus.net/dox/modern-events-calendar/category/developer-document/

    If you find any issue in this article, so you can contact us via this email [email protected], We will get back to you as soon as possible.

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Archive Page for categories’ is closed to new replies.