accepted answer - credit @Stephen
Well, I never saw a short code made this way, so I put together some code to test your script. And I get the same results with code that works great with standard shortcode code.
Standard Shortcode Format
[shortcode name1="value1" name2="value2"]
I do not believe that this is the result of wpautop (), but the result of how the shortcode attributes are parsed. Take a look at the above example and you will see that to separate short letters and pairs of name => values, only spaces without spaces are used (ie there are no spaces between the name and "=", only one space between each name => value pair ) In this context
also considered a space.
I have not succumbed to specific internal short code parsing, so I cannot offer a hook or filter suggestion that will help. Another user may have some ideas.
If you have to format your short code as if you have one, I think you will have to write your own code to parse the array passed to your short code function. All values ββare there so you can put them together.
Another option would be to provide a form for the end user to enter values ββand then fill out a short code in your content.
Update my answer
Something about my answer overheard me, so I looked again. And you are right. Wpautop () affects page output. But I do not think that this is the reason for your problems with short numbers.
source share