Home › Forums › Gutenberg › Your site doesn’t include support for the "acf/block-name" block. › Reply To: Your site doesn’t include support for the "acf/block-name" block.
Like this? (This is what I did on the three plugins I thought of that would be affected, and this seems to work).
/////////////////
// INCLUDE ACF //
/////////////////
// Define path and URL to the ACF plugin.
define( 'ELODIN_SECTION_BLOCK_ACF_PATH', plugin_dir_path( __FILE__ ) . 'vendor/acf/' );
define( 'ELODIN_SECTION_BLOCK_ACF_URL', plugin_dir_url( __FILE__ ) . 'vendor/acf/' );
if( !class_exists('ACF') ) {
// Include the ACF plugin.
include_once( ELODIN_SECTION_BLOCK_ACF_PATH . 'acf.php' );
// Customize the url setting to fix incorrect asset URLs.
add_filter('acf/settings/url', 'elodin_sections_block_acf_settings_url');
}
function elodin_sections_block_acf_settings_url( $url ) {
return ELODIN_SECTION_BLOCK_ACF_URL;
}
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.