I discover that it’s a know bug, and will be fix in future release Reference here So then, i used this code… not pretty, but do the magic !, thanks
$content = do_shortcode( shortcode_unautop( $content ) );
if ( '</p>' == substr( $content, 0, 4 )
and '<p>' == substr( $content, strlen( $content ) - 3 ) )
$content = substr( $content, 4, strlen( $content ) - 7 );
return '<div my stuff>' . $content . '</div>';
Related Posts:
- How to Output HTML tags in do_shortcode?
- Stray closing paragraph tag when using shortcodes
- Can I strip HTML tags in the “Compare Revisions” screen?
- How execute shortcode with javascript
- Enclosing Shortcode Within Another Enclosing Shortcode Breaks Output Functionality
- Convert HTML Script to Shortcode [closed]
- Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes
- How to add shortcode to HTML file (not showing on website)
- How to make shortcode which returns HTML?
- Better way to display multiple plugin output on the same page?
- Returning HTML to Shortcode Block
- Shortcode not working inside div html
- the_content() not showing the content in good order (with a shortcode)
- Insert HTML in content property and render it using shortcodes
- How to completely prevent WordPress from destroying/modifying my shortcode outputs?
- Shortcode always displaying at the top of the page
- short code output too early
- Create custom [sourcecode] shortcode, the right way?
- TED talks shortcode not working
- What is the best way to enable nested shortcodes?
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- how do you get the author’s username?
- do_shortcode inside AJAX callback
- shortcode_unautop shortcode not functioning
- How can I run shortcode after click with ajax
- Execute shortcode within shortcode
- How to create a shortcode to display a category description?
- shortcode not working and the relation to the_content()
- Correct way to pass information between seperate shortcode functions
- Extending Shortcode attributes
- Shortcode But Without The Equals Sign?
- If numberposts = -1 offset won’t work
- shortcodes between square and curly brackets
- Shortcode are not working in Option tree textarea
- How to set Contact Form 7 fields default value using shortcode attribute? [closed]
- Display post metadata: “title, category, author, date” with shortcode
- shortcode javascript not working on custom template file inside theme folder
- Check if post has gallery images/media
- Stop auto formatting in shortcodes
- Get URL Param Plugin and Inserting Result in Widget Code
- Add shortcode support to custom field
- Preserve shortcode content formatting
- Shortcode help: If no image entered take default
- How can I escape a section of my page which contains multiple shortcodes?
- Reloading a Mediaelement audio player
- Shortcode is not processed when added to option field using wp_editor
- Adding Shortcode Values to wp_head
- How to change the output of gallery shortcode
- Shortcodes: closing shortcode not being processed
- Retrieving post excerpt as a shortcode
- Insert PHP code via shortcode?
- Trying to call dynamic content as a shortcode attribute
- What is the correct syntax to append a URL using a shortcode for an iframe?
- Shortcodes in RSS excerpts
- enqueue script with get_shortcode_regex
- How to set a variable in a shortcode and reference it in another shortcode in the same post?
- Calling PHP Titles inside Javascript Markup
- How to get_post_meta in a shortcode in excerpt on archive pages
- WordPress upgrade adding additional quote marks to shortcode output
- Creating tabs shortcode
- SImple Example To Update User Info From Front End [duplicate]
- Which file renders the “Edit Gallery” Settings page?
- using shortcodes in theme content
- How to: Simple Nested Shortcode [closed]
- get_posts not working on homepage?
- Font size of HTML content
- ACF repeater + group shortcode
- Custom shortcode skips every 2nd shortcode
- Global $post returns 2 objects for my shortcode
- Gutenberg Shortcode Chooser Block
- How to cache a custom API call?
- Shortcode custom query not passing value
- How to create custom variables in wordpress
- WordPress 5.1 and Syntax highlighter, problem with HTML encoded special characters
- Onclick want to call shortcode in wordpress
- Working with Contact Form 7 pipes
- How to disable cache for the content returned by a shortcode
- Hide shortcodes content from the excerpt?
- How can I extract or parse data from post contents’ shortcodes into an array?
- Can we create a shorcode to move next page?
- Do embed shortcode on wordpress ajax request
- launch a shortcode from a link
- how to add acf value to other plugins shortcode?
- Only execute specific shortcodes
- short code output too early
- short code output too early
- About redundant code when I use shortcode to output the HTML from a variable
- how to show last 5 images from the one post gallery
- Add JavaScript in footer if shortcode used in page [duplicate]
- Is there a way I can return terms by name using a shortcode?
- How i make a shortcode from this code
- Shortcode Attributes – post__not_in array
- Shortcode content is empty [closed]
- Create a shortcode to display the “the_content ()” in my post [closed]
- Hook into existing shortcodes to manipulate the attributes?
- How can I hide the ACF shortcode when empty
- How to pass text input data to shortcode
- Using variable as shortcode parameter
- How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. ‘post-type’)?
- conditional shortcodes