Home › Forums › General Issues › Flexible content Inception › Reply To: Flexible content Inception
A bit of informations:
I’ve set two error_log on my code. The first one gives me the ID of the shortcode, the second, it’s ‘acf_fc_layout’ name.
# Without [taz_features id=”4″] inside my carousel slide content: All is fine
[06-Dec-2017 20:05:12 UTC] 1
[06-Dec-2017 20:05:12 UTC] before_after
[06-Dec-2017 20:05:12 UTC] 5
[06-Dec-2017 20:05:12 UTC] carousel
# With [taz_features id=”4″] inside my carousel slide content: Infinite loop?
Note that the second error_log never passes…
[06-Dec-2017 20:06:09 UTC] 1
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[06-Dec-2017 20:06:09 UTC] 4
[…]
Here’s the part of the code where I do those error_log
$shortcodeID = (int)$a['id'];
error_log($shortcodeID);
$rowData = taz_get_field_data($shortcodeID);
error_log($rowData['acf_fc_layout']);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz
— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.