Just for anyone looking for a similar question. The acf/init hook fires during the WP init action. Basically, ACF runs an action on the WP init action. After ACF sets up certain thing it fires the acf/init action which cause other actions in ACF to run. The global $post variable in only available inside “The Loop”, or at least “A Loop” that uses it.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp