Dynamic Rendering of Relationship Broken
-
Hi, I’ve been using Dynamic Render extensively. However, an update to ACFE broke the feature. I’ve since managed to track down the exact issue.
I use the Flexible content field to wrap all the sections of a page. Here’s my field group structure:
…..
– Flexible Content #1
— Layout (single layout option)
— Relationship field <— Issue
– Flexible Content #2
….The relationship field is linked to another CPT which also has a similar structure with all content nested inside a layout within a flexible content field. My dynamic-render.php loops through the related post to fetch some values to then render it in the preview of that layout. debug.log points at an error on the line with the ??:
$event_fields = get_field('region_event_information_section', $event->ID);
if ($event_fields) :
$layout = $event_fields[0]; // Get first layout
?? $event_title = $layout['event_title']; ??
$venue = $layout['venue'];
<?php endif;What changed? What must I change?
Thanks for this terrific plugin!
- You must be logged in to reply to this topic.