WP is removing things like data-slide-to="0'
because it thinks it’s cleaning up your HTML for you. Whenever you have somewhat custom HTML like this, use a shortcode instead. You happen to be in luck – there’s already a plugin that creates the shortcode for you.
If you don’t want to use a plugin, and you are using a custom theme or a custom child theme already, you could review the code in the plugin and build something similar into your theme.
Related Posts:
- Get first post from wp_query
- How can I retrieve multiple get_post_meta values efficiently?
- Change permalinks for post type ‘post’ only
- wp_insert_post is automatically modifying my post content
- How to upload post thumbnail while wp_insert_post?
- Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
- How to load paginated post pages via ajax
- How to limit user to publish post per day and per role?
- How to change post to page
- Syntax Highlighter XML striping
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Query posts distinct authors
- Change padding to text indent in “Increase indent” TinyMCE
- Determining Slug Before and After Edit
- Posts added with wp_insert_post are moved to trash automatically
- Set font size automatically according to number of words in post
- Show number of posts AND number on current page
- Remove Posts Quick Edit link for specific user role? WP 3.3
- Display All Sticky Post Before Regular Post
- How to display an icon when a new post is published and then remove it when a specific time past?
- How to change bulk post status
- exclude particular posts in archive.php
- How to display post tags
- Sql syntax error
- Random post permalink
- Debugging WP routing
- Create a WordPress post using curl comand from Linux console?
- WordPress menu that shows all posts in a certain category like w3schools
- Filter Posts by Excluding Categories
- Filter Posts By Tag
- Custom Post Templates
- How to limit displayed posts on wordpress
- Creating a Page of Posts
- how can I put an image in a post with original size
- Exclude newest post from category X but show rest
- post-page: reference to parent page?
- Query Posts multiple conditions
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Set terms in a custom post
- How to include the latest post of a specific category on a matching page
- post categories
- Is it possible to run wp_kses on all posts?
- Move first half of posts to one parent page, second half to the other page
- Check if checkbox is marked on publish/update post
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Can I search posts and pages for css classes?
- Need to remove duplication content on home page in wordpress theme
- how to get post order by post id wp_query?
- Is it possible to add/tick a category to a post when it is created?
- How to display all posts divided/ordered by post date? [closed]
- Get posts and include taxonomy term
- Adding bootstrap classes to video shortcodes
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Single Post in Tab/Slider
- get_posts from a category id doesn’t work
- Change page creation layout
- Get post number both in the loop and in the post
- posts_per_page returning only one post
- After ajax image is outside the “ tag
- Sticky Post from page 2 and on
- Get images from the post
- Can WordPress handle following functionalities?
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- How to change the order of elements within a post?
- Right align a youtube video
- Post meta not working
- how to show comments only author which send own posts in wordpress
- Adding an option to post editor to show a site disclaimer or message
- Css and function issue on author archive page
- How do I fix broken links to images in imported posts’ post_content?
- Blog open in new Tab
- Posts order in grid
- Get post attachment with post id
- How to show random post order in specific category each refresh this category page
- Get Category in save_post Hook
- Refresh wordpress post without reloading browser
- how to make special modal for each post
- How can I set the permalink of an article / page equal to the permalink of an existing article / page?
- Administrator Posts
- On WordPress Search, how to search post from Author meta also
- Get post id outside loop : Notice: Trying to get property of non-object
- WP_Query to get posts in a specific tag or has post_format
- How can I view my posts in ascending order by number of views
- Override wp_link_pages pagebreak with filter
- Pagination for single post
- Sort / Filter Queries
- get_page_by_title() not working if special characters are present
- How can add posts without category into category
- Hide categories from showing above a Post
- Get first comment link on the post itself
- how to create a new page that is not in the hierarchy?
- Setting default category for display
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- how to add pagination to the organize series plugin
- Index.php is ordering posts strangely
- Exclude sub sub categories from displaying in the archive page
- How do I add an article to specific page?
- Posts not showing up on Blog page
- Display posts in row Horizontally [closed]
- How to var dump urls for all posts