format=Cparameter Automatic paragraph generation is not working properly. A. Ditto! It’s a bug.
Answer: It’s a bugWe’ve just been investigating this problem ourselves.
Creating the problemTo reproduce the problem we’ve created a simple test using
where the content of the post to be embedded also contains a shortcode. e.g.
[bw_pages id=15562 post_type=shortcode_example format=C]
This is a plain post with the shortcode for WordPress before the more ( [wp] ), and nothing after.<!--more-->
Demo?So here we use the [bw_pages] shortcode. With some automatic paragraphs before and after the shortcode.
This is a plain post with the shortcode for WordPress before the more ( WordPress ), and nothing after.
And some hr’s to delineate the output of the shortcode. When using
format=Eit’s fine. But when using
format=Cthe content gets scrunched.
ExplanationIt’s complicated. Basically, wpautop() is having a hard time trying to work out what to do. That’s not the full answer. But it’s good enough for now.
hover to slideToggle source