Support

Home Forums Event Espresso Premium Using an Advanced Custom Field in the Calendar Excerpt

Using an Advanced Custom Field in the Calendar Excerpt

Posted: May 6, 2021 at 4:59 pm


jbitman

May 6, 2021 at 4:59 pm

I have some custom fields added to events to help organize things for our users, and make messaging best for the ticket buyers as well.

Is there an easy way to change the field that the Calendar “excerpt” comes from? Right now, it is either the “content” field, or the “excerpt” field, if it is used.
——————————————————————————
My solution, if not:
1. Use the content field for the excerpt ONLY.
2. Use a custom field on my custom event page.
Is this the best solution?

Thank you!
Jason


Tony

  • Support Staff

May 7, 2021 at 10:00 am

Hi there,

There is a filter within the calendar that can be used to change the description, I have an example of doing this here:

https://gist.github.com/Pebblo/d80ea24588fdc02ea21692aef89704d9

You’d need to pull the value from your ACF field (which assume from the title is where you store your custom description) but the above should get you most of the way there.

The support post ‘Using an Advanced Custom Field in the Calendar Excerpt’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso