Adding ACF Fields To MEC Category Template

Hi,

As Modern Events Calendar is not yet customisable using Pro Layouts, I am trying to find a workaround using ACF.

I have created the fields and applied them to MEC categories in the WP admin area. However, I cannot work out how to add the fields to the template or functions.php so that they display on the front-end. Do you have any guidance on how to do this, please?

Thanks,
Christopher

Hi Christopher,

Thanks for reaching out.
You can get the ACF field values using the the_field function as shown below. You can also get more information in this article.

<?php the_field('about_author'); ?>

Hope it helps.
Thanks

Hi Tristup,

Thank you. Are you able to confirm the correct file to add the ACF fields to the MEC categories, please? The file I believe it may be is:
/public_html/website.co.uk/wp-content/plugins/modern-events-calendar/templates/taxonomy-mec-category.php, but I cannot see where the php you mention above should be placed.

What I want to have is the following order on the category archive pages:

  • Category Title (standard template code)
  • ACF field (Category Description (Top))
  • Sub Category grid (standard template code)
  • ACF field (Category Description (Bottom))

The ACF fields are in the Groups called MEC Categories

I am grateful for your support and guidance,
Christopher

Hi Christopher,

What you are expecting is required customization which is beyond the scope of our Theme Support. I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

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