Formatting when only a shortcode on the line
-
I ran into a strange problem (or bug).
Say you type a post, with a couple of linebreaks in it. WP will automaticly convert them to paragraps by putting <p> and </p> on it.Let’s take the following text for example:
“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”
The line “Ut enim ad minim veniam.” would have a beginning and ending P tag in HTML code.
If whe put a shortcode on th same line, it would also be in the P tags.
But, if you replace the complete line with a shortcode, it will not get the P tags:“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
[some_shortcode]
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”
This is breaking up formatting.
When you put only one single character (a space for example) as the first character in the lin, formatting will be OK.
However I can’t allways put a extra character in fornt of tehe shortcode.Is this a bug, am I missing some clue or what?
- The topic ‘Formatting when only a shortcode on the line’ is closed to new replies.