You can postpone the wp_autop filter. WordPress has this filter enabled by default. And it is processing before the shortcode output.
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'wpautop' , 12);
Add this to your functions.php
and check if the problem persist!
See a similar problem here: stray <p> elements
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- Stop WordPress automatically adding tags to post content
- Keyboard shortcut for updating a page or post?
- Customizing HTML Editor Quicktags button to open a dialog for choosing insert options
- Allow user to “edit_others_posts” to save only, not publish
- WordPress removing tags?
- Let private posts stay in status “private” after edit through “editors”
- how to limit edit_form_after_title hook to page and post edit only?
- disable WP automatically inserted line breaks after an image
- Listen to Post action
- How to create WP Editor using javascript
- How to add editor’s name to entry meta byline?
- Remove hidden formatting when user paste text from MS Word into TinyMCE
- Update all posts automatically when using post_meta
- Search & Remove Specific Shortcode From All Posts
- Shortcode Not displayed at the Right Place [duplicate]
- Restrict access to post if it is currently being edited
- Change padding to text indent in “Increase indent” TinyMCE
- How can I allow editors to leave comments on posts that have not yet been published?
- How can I pass $post object to ‘save_post’ add_action?
- Specific loop in Shortcode
- How to add shortcode tags in single.php [closed]
- Custom function for “Submit for Review” hook
- add image map script to post
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- Code Blocks with WYSIWYG in blog post
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to create shortcode to show the 2 latest posts
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- Hide Post comments when displayed via WP_Query
- Strange problems when I try to insert HTML\XML code snippet in my posts
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Remove Shortcode […] from Blog Preview
- Visual / HTML tabs vanished on editor
- Display a post by ID attribute with shortcode
- Getting a 404 error when clicking edit page
- UberMenu list current user’s posts as menu items
- WordPress version 3.8 – Preview button not working for editor
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Number format for wp_count_posts()
- Duplicating Table of Contents for Paginated Post
- Query how many items to show in shortcode
- Make Post Editor Select Number of Columns To 1 By Default
- do_shortcode within post query
- Unautop / Sanitize content added to a post through a plugin
- Shortcode for tables which can include comma and linebreaks
- post/page content
- Pasting formatted text from MS-Word
- Keyboard shortcut for headings on safari
- All images on one line for each post
- any way to access variables from within post editor?
- Change published date and time using SQL query for page in every 5 hour
- What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
- Shortcode for Comments and Comment Boxes in Post Loop
- get category in list of posts // shortcode for custom related posts
- shortcode // get posts by ids
- Display “no post” message
- How can I create a shortcode to show the number of posts of actual day?
- Embedding Post Editor Into External Site
- How can I change the date format of the revision list?
- Featured Story Shortcode not outputting content
- Function is printing twice – any suggestions?
- How to pull sticky post permalink inside php?
- Contact Form 7 Shortcode not recognized inside another shortcode
- Display Post from Custom Post Type with Shortcode
- wp_insert_post() Add and specific ID to the body of that
- Contributor edits published post and sends for review – post is made private?
- Display simple html code in post
- Add a url parameter to the current post and read it in a shortcode
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- I need show posts by customer (Shortcode)
- How to allow some visitors to edit inline specific post
- Post formatting bug in WordPress
- Is it possible to query a category with specified posts?
- Shortcode: How to add custom posts?
- Theme does not respect spaces between paragraphs in pages
- Add category attribute to custom recent post shortcode
- Shortcode for printing post titles
- How to use extract shortcode in loop?
- Using Post ID and Page ID in same function
- How to custom sort-out editing-panel fields?
- Display only posts with comments
- Change the default video URL in a post to shortcode format
- Stripping tag from elements in post
- Post thumbnail is not shown in wp-admin
- How do I add an article to specific page?
- get value from post to sidebar
- WordPress Yoast SEO plugin Post Save/Update Issue
- If post has non-shortcode string
- Insert Shortcode exactly at the end of the content
- Trying to create shortcode listing custom posts, but formating not being included
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- Simple shortcode to check if a user has commented on a certain post
- Undefined Function Fatal Error with Shortcode [closed]
- How to use shortcode to get the second to newest post?
- How to allow Contributors to edit their own posts, whilst still needing to be reviewed by an admin?
- How can I strip a single tag from an email post
- How do you export and import wordpress blog posts and exclude pagebuilder shortcodes?
- Shortcode in loop always display data of first post on the page