I think it’s because of invalid markup. autop is trying (poorly) to fix code. Change your divs to spans and in your stylesheet set them as block.
Related Posts:
- Remove wpautop from shortcode content / remove whitespace in buffering
- wpautop() when shortcode attributes are on new lines break args array
- Why does WP not like my container?
- Is shortcode_unautop() broken?
- Raw output (preventing wpautop)
- Remove empty p-Tags in Shortcode content before non p-Tags
- Remove wpautop from specific shortcodes only
- basic shortcode – Why 1st paragraph not wrapped in p tag, but 2nd is
- Extra paragraph tags in an enclosing shortcode
- WordPress wpautop/shortcode generating invalid markup
- Wrap Shortcodes and wpautop
- Disable wpautop on Shortcode attributes
- Wpautop stops working after get_the_excerpt
- Can I prevent wordpress adding and tags to autoembeds
- How can I remove the wp_autop filter from a shortcode block in a block theme page template (twenty twenty-three)?
- shortcode causes broken paragraph tags
- Enqueue Scripts / Styles when shortcode is present
- how to show the syntax of a shortcode
- Get first video from the post (both embed and video shortcodes)
- Wordspress add into my javascripts
- Using preg_replace to separate gallery from the_content?
- List of all inbuilt WordPress shortcodes
- Adding shortcode inside Visual Composer raw HTML [closed]
- Shortcode not working inside html input
- do_shortcode based on _thumbnail_id
- Nested Shortcode Inside [caption] Doesn’t Process
- How can I get the [video] shortcode to allow query string parameters?
- How to handle a shortcode function directly?
- Turn a snippet of HTML and PHP into a shortcode
- How can I get the current user email instead of user ID?
- How to put an “include” inside a “do_shortcode”?
- Changing playlist shortcode thumbnail sizes?
- WordPress 4.7 Galery shortcode not working
- How to add and submit input fields using a shortcode?
- How can i remove the paragraph from shortcodes content?
- Easy way to show excerpts of specific posts on a page
- Shortcode content not displaying on Home page
- shortcode causing the_content() to return blank?
- WordPress shortcode display as plain text
- Replace / Remove Shortcode after 1st run / post
- What is wrong with my rewrite rule for a page URL with query parameters and short codes?
- WordPress Shortcode callback function with a plugin
- Can I wrap an unordered list inside a shortcode?
- How do I write this shortcode? [closed]
- WordPress shortcode for a section Template
- Media added with shortcodes not “linked” with post
- Saving post content to database with do_shortcode?
- Is it important to sanitize inputs in a shortcode that will be used in site that only I will post to?
- Shortcode default attributes over-riding non-default attributes
- Shortcode callback for add_action(‘wp_footer’)
- Single post content custom order
- Parse Error: unexpected ‘}’ while creating Shortcode with Loop [closed]
- Code is providing a row of data but not formatting it as table
- Gutenberg Shortcode Fail
- passing markup thought a shortcode attribute
- How to have shortcode autofilling the content if the attribution is specified?
- Shortcode argument multiple values
- How can I collect and output all attributes of all executed ShortCodes?
- Do I need to escape number in this shortcode function?
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- Substite Category Slug in a Shortcode
- Anchor text in Short code →
- Need 2 separate elements of add_shortcode for presentation
- Why ‘do_shortcode’ doesn’t work in a REST request?
- Basic custom Shortcode not working
- Shortcode to return an image based on post taxonomy
- Add variable in between do_shortcode
- How to show an image via shortcode
- How to put custom admin setting field into a shortcode
- shortcode – I need to throw a message or load a different page
- How to add site tags in alphabetical order to shortcode?
- WordPress post shortcode pagination not working
- Shortcode do not return a value
- Problem parsing long parameter in shortcode
- How to use multiple (or array) values in $content of shortcode?
- How to display content if user meta data isn’t empty with shortcode
- How to display total user count by specific role in WordPress as statistics?
- User name in referral URLs
- How to style inline code in block editor?
- Is it possible to capture the content outside/between shortcodes?
- Add Style to text in a PHP block
- How I can add placeholder in shortcode
- I’m using rtMedia and Youzer. Can Shortcodes be used to display a video gallery?
- Help with a function to create a shortcode
- How to add new images to existing shortcode configuration?
- Content included from pagination
- Shortcode with multiple paramaters
- Running Filter or Shortcode Before Query Prevents Excerpt from Showing
- Replace custom gallery shortcode with default gallery shortcode
- Custom shortcode is not working inside tabs
- Referring to site URL in shortcode argument
- Shortcode not accepting atts
- Code auto escaping is not working when using short codes
- Shortcodes: Return different based on atts
- Is it possible to change a shortcode parameter based on a media query?
- IFrame Shortcode plugin – issue
- How to call shortcode on button click
- How can you alter the name of attributes in a shortcode?
- Working with Shortcode, AJAX, Elementor
- How to exclude some cats from wp_list_categories using shortcut