I used JQuery to fix this problem and target the specific elements.
In particular, I used: wrap, wrapInner, wrapAll, replaceWith, unWrap, and remove.
Related Posts:
- Paragraphs removed when using get_post_custom()?
- Best Way to Add UnEditable HTML to Posts
- Benefits to using semantic HTML in post content? [closed]
- Stop WordPress Wrapping Images In A “P” Tag
- Stop WordPress automatically adding tags to post content
- Get content from one page and show it on another page
- Strategy for handling hierarchical pages with empty parent content
- How to remove Nextpage tag inside posts text depending of utm_campaign
- strip only specific tags (like ), but keep other tags (like )
- How can you make sure authors’ posts are longer than 250 words?
- JSON not valid after json_encode posts
- Removing the title attribute from links in the post content
- HTML code in Custom field
- Add default content to post (for specific category)
- How to wrap every image in a post with a div?
- Programmatically inserting page breaks
- Hide parts of the post content on the home page
- Filter/Remove HTML Elements on all posts and pages
- Load post content into div with ajax
- get_post_custom stripping styling issue
- why does HTML Tag not working in Post and Page
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- Testing for post title in ‘if/else’ statement returns no content
- Same content shared between multiple posts?
- how load content as pop-up using ajax
- How to get only text from wordpress post content?
- Add scripts on custom post add/edit pages Not Working
- Add code just after Post content
- WordPress’ visual editor messing up my (nested) lists (and other things as well)
- Batch process: remove first image from post content
- Articles are text-only in any “Category” instead of HTML
- Why content_arr[‘extended’] removes paragraph tags?
- Ajax Dynamic Archives not showing correct results
- is there a way to show the the post title after the image?
- How to get rid of shortcodes in post content once and for all
- Add Word Limit to Posts
- Ajaxify This Code
- Pausing and Resuming WP_Query results
- Is Hfeed class for all pages needed
- Show only posts with images and a fixed amount of posts
- How to create new post content templates for my users?
- Anyone know why wordpress converts some html entities to their numeric equivalents?
- How do I do a page break?
- How to get a post’s content? [closed]
- Why does a published post only displays the title and not the content in the site? [closed]
- The_excerpt() doesn’t parse – how to change that?
- Divs appearing everywhere in post content
- Page and post loop same template
- Creating a WordPress Post via REST API – HTML or Markdown?
- HTML Form Submit to table in same page
- the_content() Not Grabbing All Content
- Can’t save WordPress post with “/etc/” in it
- content summary of a post disappears If an images added at the beginning of the post. how to solve it?
- Hide parts of the post content after typing it’s name or searching it by category
- How to exclude the word “class” from being matched in search?
- Preview page/post revisions without overwriting current content
- Posts and Pages w. private visibility don’t show up in existing content
- Locally change the font family [closed]
- Right align a youtube video
- definining own teaser text for post
- Add text and change style to post programmatically depending on category
- why my urdu text is not aligned properly when written in wordpress blog post?
- How to Remove HTML Elements from Post Excerpt?
- My website is showing today’s date instead of published date since db migration to a new wordpress
- Related post not showing table of content
- WordPress 5: prevent link from displaying page title instead of URL
- How to get unmodified post content?
- I have inserted a post’s content in homepage.php by the post-id. The font isn’t matching with the theme. How do I change font of this content?
- WordPress Recent Post with the badge “New” on the side of the title post
- Remove HTML tags from all posts
- Checking if a post contains an html tag
- How to generate an HTML link automatically from URL in a users’ post
- Show all posts from the tags without having to set all of them
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Nothing appears using get_the_excerpt() in category.php
- WordPress each user has each content for a page,how to do that?
- Add caption to thumbnails in content
- Adding editable content above posts
- How to get post_content while the post is being edited
- Custom template for different post types
- Correcting the content width when sidebar is inactive?
- Posts don’t appear on Template Page
- Multiple approval from editors before publishing?
- How to get all the terms of a post
- Get part of a page url
- How can i show only 30% of the “the_content(“More…”)”?
- How to use wp_editor(); in functions.php then retrieve content in the template
- Add default content to post (for specific category)
- jquery: getting contents of #content field on post page
- Stripping tag from elements in post
- What does WordPress mean by they have full rights to content [closed]
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- Wrap posts from a category in HTML
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- wordpress pinboard theme [closed]
- How can I add a custom caclulation form in post?
- How to automatically convert a form with HTML link into post
- Automatically search and replace link in content (pages/posts)?
- Notify/check if the content of a custom gutenberg block has changed on save_post
- Posts Page in WordPress loading bare HTML of my homepage