0

I am Developing a WordPress Theme which have some shortcodes to display content.

The problem I am having is, extra p elements are being added within shortcodes.

I can disable wpautop with filter, which fixes this issue but I am curious if its a good practice to disabe this default feature of wordpress.

Also, Is there any way to fix formatting with disabling wpautop ?

Thanks

1

I would say no, its bad practice to disable it.

The simple truth is disabling wpautop pretty much breaks the line spacing in the visual editor, and if your clients are going to want to use the visual editor, which most of them do.

Also, Is there any way to fix formatting with disabling wpautop ?

Here is a good related post that might help: https://stackoverflow.com/questions/5940854/disable-automatic-formatting-inside-wordpress-shortcodes

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.