Same issue here…
Somehow the button magically disappeared. 😀
Hello Amigo,
you mean something like this?
$content = get_the_content(false, false, 11);
$myblocks = parse_blocks($content);
foreach($myblocks as $block){
if($block['blockName'] == 'acf/business-info'){
echo render_block($block);
}
}
Thanks, i found that link a while ago, but i was to stupid to use it properly…
For anyone who might need it sometime:
function change_mce_options($settings) {
$new_formats = array(
'aligncenter' => array(
'selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img',
'classes' => 'textcenter',
)
);
$settings['formats'] = json_encode($new_formats);
return $settings;
}
add_filter('tiny_mce_before_init', 'change_mce_options');
wow, looks great. Do you use cloudflare?
Maybe this will help you:
function unsetGutenbergEditorStyles() {
add_filter('block_editor_settings', function ($editor_settings) {
unset($editor_settings['styles'][0]);
return $editor_settings;
}
);
}
add_action( 'admin_init', 'unsetGutenbergEditorStyles' );
Yeah, so this has been a long time ago but:
I somehow got on a vimeo blacklist and they blocked the requested server! I wrote a script to get thumbnails and there was a bug in the script that endlessly requested the thumbnails. So the whole URL got blocked by vimeo.
Maybe this helps someone…