Home › Forums › Backend Issues (wp-admin) › Anchor support – acf block type not working, after updating wp core to 5.9 › Reply To: Anchor support – acf block type not working, after updating wp core to 5.9
I am having the same issue since updating to WP 5.9. If I echo $block[‘anchor’], it shows in the editor right after saving, but when viewing the page, or reloading the edit screen again, the anchor is gone. The anchor string is also gone from the “HTML anchor” value in the Block’s Advanced Settings.
Anchor values remain for core WP blocks.
I have the following set in acf_register_block_type: ‘supports’ => array(
‘anchor’ => true
)
And the HTML Anchor text box shows in the Block Advanced Settings. It just does not persist.
I also do not see ‘anchor’ as a property outputting var_dump($block)
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.