-
Notifications
You must be signed in to change notification settings - Fork 190
Closed as not planned
Description
Describe the bug
ACF admin fields don't work good in Patterns editor. When you edit a pattern from post edit screen the styling from ACF breaks and looks unusable. And when you edit a pattern block through the pattern editor the ACF fields only present themselfs in the sidebar. Even with the "auto & edit" block.json setting.
To Reproduce
Steps to reproduce the behavior:
- Edit a page/post or CPT
- Click on block pattern -> edit original
- Click on the block to edit
- ACF styling broken
To Reproduce
- Goto view -> patterns
- Edit a pattern
- Click on the block to edit
- ACF only in sidebar
Expected behavior
Same behavior as the Gutenberg editor
Screenshots or Video
Problem in editor overlayer: https://devtof.nl/acfbroken.png
Problem in pattern editor: https://devtof.nl/acfbroken2.png
Code
acf-export-2025-04-29.json
block.json
Maybe problem of the bug.. not sure
global $all_blocks_allowed;
$all_blocks_allowed = array(
"tatof/archive-kennisbank",
);
function tf_allowed_block_types( $allowed_blocks, $post ) {
// Allow all blocks
global $all_blocks_allowed;
$allowed_blocks = $all_blocks_allowed;
return $allowed_blocks;
}
add_filter( 'allowed_block_types_all', 'tf_allowed_block_types', 10, 2 );
Version Information:
- WordPress Version [6.8]
- PHP Version [8.3.6]
- ACF Version [ACF PRO 6.4.0.1]
- Browser [chrome & brave latest]
robertkinsella, zielinskila, RomanZhakhovTR and FalkoJoseph
Metadata
Metadata
Assignees
Labels
No labels