Support

Home Forums Event Espresso Premium Using ACF fields in the [ESPRESSO_MY_EVENTS] uncollapsed area

Using ACF fields in the [ESPRESSO_MY_EVENTS] uncollapsed area

Posted: May 8, 2019 at 7:11 am

Viewing 2 reply threads


ICLE

May 8, 2019 at 7:11 am

I have removed the content area from the open dropdown, but would like to add back in four acf field values and a few |||”pipes”||| for formatting.

I am assuming I will be placing some HTML or a PHP statement where I removed the old line to print “the_content” at line 55 in the child theme file of “content-espresso_my_events-event_section.template.php”

The four acf fields are:
cle_value_main
cle_value_ethics
cle_value_professionalism
cle_value_trial_practice

Current code is at: http://wpbin.io/86nckk


Josh

  • Support Staff

May 8, 2019 at 1:14 pm

Hi,

ACF provides a template tag for displaying custom fields:
https://www.advancedcustomfields.com/resources/the_field/

Since the post ID for each event is required, your code will follow this example:

<span><?php the_field('text_field', $event->ID()); ?> |</span>


ICLE

May 9, 2019 at 7:31 am

Very nice!
https://monosnap.com/file/6ukJxwpjlWJG39qhBXn4v0YlwAfjxn

I am now going to try to get my googlemaps to work…
I will loop back through my settings first and make a new ticket after reading what others have asked. Please close this ticket.

Viewing 2 reply threads

The support post ‘Using ACF fields in the [ESPRESSO_MY_EVENTS] uncollapsed area’ 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