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…
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.