Advanced Custom Fields File with Events Manager
-
I would like to be able to attach pdfs to my events. I am already using ACF throughout my site. I added the Field titled more_details to my ACF and attached it to events. I have tried calling #_ATT{more_details} and that only outputs the attachment id.
I have tried using this following code, where I define and get the value of the ACF before calling the event, and that doesn’t work either. Any ideas how I can get this to work>
global $EM_Event; /* @var $EM_Event EM_Event */ $file = get_field('more_details'); echo EM_Events::output(array('format'=> ' <div id="eventlist"> #_EVENTIMAGE <h3>#_ATT{sub_headline}</h3> <a href="'.$file.'">MORE DETAILS</a> </div> ', 'category'=>36)); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Advanced Custom Fields File with Events Manager’ is closed to new replies.