Home › Forums › Add-ons › Flexible Content Field › Pass field from Flexible Content into a widget › Reply To: Pass field from Flexible Content into a widget
Hi @Vasili
Thanks for the info.
It is most likely that within a widget, ACF does not know which post to load the value from.
You can test this by adding the following code above global $post;
$post_id = get_field_ID();
echo '<pre>';
var_dump( $post_id );
echo '</pre>';
Can you check the variable value and compare against the expected post ID?
Thanks
E
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.