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
If get_field_ID()
(not a field, but a WP variable) is false, then WP does not have a global $post at the time of your widget.
This explains why ACF is not able to load.
Where in the template is this widget loaded?
On what page is the widget loaded, or perhaps all?
You will need to find a way to get a post_id (numeric value) for ACF to load the value from.
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.