ACF Blocks

In order to make the crossposting plugin work with Advanced Custom Fields blocks all you need to do is to download and activate the add-ons below.

In case you’re using a multisite version of the plugin:

Download Simple Multisite Crossposting – ACF Blocks 1.2

For a regular plugin version:

Download Simple WP Crossposting – ACF Blocks 1.3

If something is still not working, please watch the video below:

What to do with broken characters?

Sometimes you may notice that after crossposting some characters in ACF blocks are converted from for example to u20ac. Don’t worry about that – it is just the way ACF handles its blocks content. Most of the characters I have already added to my add-on but if you found another one, you can replace it with this simple snippet of code.

add_filter( 'rudr_pre_crosspost_acf_block_value', 'acf_blocks_chars_fix' );
add_filter( 'rudr_swc_pre_crosspost_acf_block_value', 'acf_blocks_chars_fix' );

function acf_blocks_chars_fix( $value ) {
	
	$value = str_replace(
		array(  // specify the characters here, comma-separated
			'€', 
			'‘', 
		),
		array( // specify their codes here in the same order
			'\u20ac', 
			'\u2018', 
		), 
		$value
	);
	return $value;

}

In case you don’t know where to insert the code, please check this.

Need more help?