Hey dutch_developer,
I’ve experienced the issue with a few different users and it’s usually caused by the theme over-riding the WordPress content formatter with it’s own custom formatting function which is messing up the formatting of the feed. Do you have access to your theme via FTP? If so, could you try adding the following to your functions.php file and then wrapping the [custom-facebook-feed] shortcode in ‘raw’ shortcodes like so: [raw][custom-facebook-feed][/raw]
Add this to functions.php:
function cff_formatter($content) {
$new_content = '';
$pattern_full = '{(\[raw\].*?\[/raw\])}is';
$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
$pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
foreach ($pieces as $piece) {
if (preg_match($pattern_contents, $piece, $matches)) {
$new_content .= $matches[1];
} else {
$new_content .= wptexturize(wpautop($piece));
//$new_content .= $piece; <-- uncomment and delete line above to disble wpautop
}
}
return $new_content;
}
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
add_filter('widget_text', 'do_shortcode');
add_filter('widget_text', 'cff_formatter', 99);
add_filter('the_content', 'cff_formatter', 99);
Please let me know whether that works for you,
John