format=C
parameter Automatic paragraph generation is not working properly.
A. Ditto! It’s a bug.
Answer: It’s a bug
We’ve just been investigating this problem ourselves.Creating the problem
To reproduce the problem we’ve created a simple test using
[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=E
it’s fine. But when using format=C
the content gets scrunched.
Explanation
It’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