Skip to content

Bugs Block patterns / Reusable blocks / core/block #955

@tatof

Description

@tatof

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:

  1. Edit a page/post or CPT
  2. Click on block pattern -> edit original
  3. Click on the block to edit
  4. ACF styling broken

To Reproduce

  1. Goto view -> patterns
  2. Edit a pattern
  3. Click on the block to edit
  4. 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions