Shortcodes in separate tags appear on same line in browser
-
Hi,
Here is an example of some simple html code:
<p>[myshortcode]</p>
<p>[myshortcode]</p>
The outputs of the two shortcodes should be displayed on two separate lines in a browser as they are between separate <p> tags. However that is not happening. The outputs are shown on the same line.
So, if the output of [myshortcode] is “test”, instead producing the expected output of:
test
teston two separate lines, it produces:
test test
on the same line.
Why is this and is there a solution?
I have tested this on a default WordPress installation with no additional plugins apart from the one producing the [myshortcode] output and using one of the standard Twenty* themes.
Thank you in advance for any assistance.
- The topic ‘Shortcodes in separate tags appear on same line in browser’ is closed to new replies.