ARE YOU KIDDING ME????
Thank you so much – it was really just that. OMG I can’t believe that the json file really has to be called block.json!!!
Was I really the only one who didn’t get that?
Thanks again
hey all, I’ve checked the path that returns my json file and it’s definitely the right path but I still can’t register my block.
I triple-checked everything:
function register_acf_blocks() {
register_block_type( __DIR__ . '/blocks/custom-block/custom-block.json' );
}
add_action( 'init', 'register_acf_blocks' );
In my themefolder I’ve got a folder “/blocks/custom-block/” with my json file “custom-block.json” and a “custom-block.css” and “custom-block.php” file.
I’m working on a local install, ACF is latest (6.0.7) WP is latest (6.1.1) and I get no errors or warnings.
Anyone got other ideas why the block won’t register?
This is slowly driving me mad …
Thanks
OMG I was only focused on the key/value comparison and was wondering how I could compare two dates with “LIKE” … I am stupid!
Thanks again
Hi John, thanks for the link. I’ve looked at that page but didn’t realise my problem was covered there. I’ve managed to get it to work but honestly have no clue why/how it works.
Thanks again!