MEC events and looper consumer

Hello, I’m trying to use Looper provider/consumer to show events on a certain page.
Title and excerpt show up, but I don’t know how show up the Date, the location and other thinghs.
F.e. {{dc:post:meta key=“mec_date”}} doesn’t show nothing. Any advice?

thank you

Hello @dcheese,

Thanks for writing in!

You will have to use the mec_start_date and the mec_end_date. You might as well need to display the following:

  • mec_location_name
  • mec_start_hour
  • mec_start_minutes
  • mec_start_ampm

Best Regards.

Thank you. Some questions:

  1. is there a way to show date in a format like d M Y instead of Y M d?
  2. mec_start_hour and mec_start_minutes show only one number. For example, if an event start on 9AM and I need to have the minutes, the results is 9.0, not 9.00. Any advice?
  3. {{dc:post:excerpt}} shows the entire text of the event. How I can reduce it to 20 words?

Hi @dcheese,

Please find the answer to your queries below.

  1. Regretfully, there is no option to mention the date format in the dynamic content tag.

  2. You can use {{dc:post:excerpt length=“20”}} which helps you to mention the length of the excerpt.

Hope it helps.
Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.