After examining the code using developer tools, I was able to figure out the problem. Code was being wrapped in the pre
tags which were causing the code to break its proper structure.
Found the solution for the pre
tags issue here which solved the problem.
Related Posts:
- How do I use Shortcodes inside of HTML tags?
- WordPress Shortcode and Dynamic CSS
- Placing raw HTML inside a WordPress shortcode
- Template part inside shortcode, unexpected reult
- Shortcode content output but not in correct place
- How create a Shortcode with hover and complex options
- Handling PHP/HTML inside the output of a shortcode function
- Calling PHP Titles inside Javascript Markup
- Shortcode displaying at the top of the page [duplicate]
- Shortcode in Shortcode/HTML Graphics and Pictures
- couldnt show short code atts in category
- How can I edit the final HTML structure of the whole web page
- How to return html as a string from php for WordPress
- How can I create a shortcode from an html and php code written together
- When using shortcode, content stops generating after the_content
- Show contact 7 form in popup
- Is there a better way to output HTML as a shortcode?
- WordPress Ajax always returns a 404 error
- How to return a string that has a variable inside in a shortcode?
- Passing a shortcode attribute to a sub-function
- WordPress Wysiwyg Content not being displayed
- How do I add HTML to a PHP function [closed]
- is_page “range” for if statement?
- How can I generate random numbers inside my shortcodes on each implementation?
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- How to get the POST TITLE using the POST ID?
- Load a page into a div with Ajax
- Different loop output every x posts in custom post type
- Converting HTML Template to WordPress Theme
- Multiple options not staying selected after saving
- Showing a different gallery in a seperate post
- Create own WordPress shortcode gallery
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- parts of url disappear when using # inside href=”” [closed]
- Displaying recent posts on static page with template-part via shortcode
- Add .htm extention to a custom taxonomy
- get_template_part for specific page
- Returning data instead of echoing/printing
- Wrapping a Sidebar within
- List taxonomy term slugs within shortcode (do_shortcode)
- Add data-id attribute to child page links
- How to edit HTML of my website on WordPress? [closed]
- List all blogs, but exclude the main site
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- How to rename woocommerce-billing-fields
- PHP code inside Shortcode
- How to add post meta in while loop?
- Adding function to child theme’s function.php
- Action Hook Inside WordPress Plugin Shortcode
- Calling function in loop causes repeat data
- How can I include the user id inside of a shortcode php output?
- PHP Helper Class to create shortcodes
- Link to page with posts of specific type
- Displaying images outside the content
- how to get sentence values from wordpress shortcode parameter?
- Updating Metadata with Shortcode
- WordPress User Meta value variable into Google Gauge Chart
- List sub categories and corresponding posts of a parent category
- Create shortcode for metabox gallery
- PHP function for horizontal Woocommerce thumbnails and badges
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- separate list of programs in html/javascript coming from php
- Drop down question
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- AJAX and custom pages
- Advanced Custom Forms PHP formatting for do_shortcode
- overwrite wordpress gallery with custom gallery shortcode
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- WooCommerce multiple custom fields code
- How to override html codes in wordpress?
- Open/closed function [closed]
- What is wrong with this shortcode? to include external php file in WordPress posts
- Target a specific container to style on WordPress storefront theme
- Need to Echo A Url path to show on a wordpress page
- Create html tree sitemap
- Pass form attributes to another php template in wordpress
- Custom HTML form using PHP – help with ajax/username validation
- How to create a php page to collect information from a html page
- Can’t make product images clickable
- I need help implement a Javascript code into the PHP file
- WooCommerce – Print Processing orders [closed]
- Formatting Shortcode to Display in Visual Mode
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- Category – “No content found”
- Add extra markup to WP menus
- WordPress – Image href for home menu nav not working
- Overwriting a Shortcode
- Where to place PHP for shortcodes
- PHP Widget and do_shortcode
- If I define a variable in header.php, how do I make it available to templates?
- Shortcode not passing variable to included file
- A next page function with shortcode?
- using a shortcode in a hyperlink
- Can you not edit the HTML and PHP of your WordPress without paying?
- Parse error: syntax error, unexpected ‘}’ in
- Headers already sent error with get_template_part in REST API call
- Display total count of products in orders of a specific order status
- Add multiple HTML attributes to an Elementor button
- How to edit a widget code?