Do you want to preserve the images title attribute? If not here is a code that fixes that for you:
add_filter('the_content', 'remove_title_attr');
function remove_title_attr($text) {
// Get all title="..." tags from the html.
$result = array();
preg_match_all('|title="[^"]*"|U', $text, $result);
// Replace all occurances with an empty string.
foreach($result[0] as $html_tag) {
$text = str_replace($html_tag, '', $text);
}
return $text;
}
Found it here. It works on c9.io. I believe it will work in your case, too.
Edit 1: This will remove the title attribute from all your posts’ content. Do you want to remove it globally from all elements?
Related Posts:
- What is the canonical way to link to pages?
- Remove all links to a specific website
- Enumerating over a category of links
- Add the title attribute to links
- Site migration and how to write internal links with migration in mind
- How to use wpLink without editor?
- How to print translation supported text with HTML URL
- How to re-enable the links manager?
- Is it possible to link to draft pages?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Count and show Clicks on external links in a single page/post
- get_category_link() is returning nothing
- Is there any way to set default for “Insert/Edit Link” to “Open link in new window”?
- root-relative links for multiple parked domains
- Navigation link to specific user page
- HTTPS page link in menu
- How do I remove or disable “Or link to existing content” in “insert link” dialogue?
- Auto-embed link info from URLs in link post format?
- Disable automatic content hyperlinking
- Deep linking to an accordion tab with Visual Composer
- How to add/change a value of $wpdb property/var?
- Custom Post Type archive link in WYSIWYG editor
- Add Link Text Back to Insert/edit link Box
- How to add more than one RSS Feed Link for wordpress
- How to list all external URLs that I have posted on my WordPress blog?
- Is there any way of changing the post order via user click?
- Creating a navigation link to my front-page
- How to remove author name and link from a shared link preview?
- How to add wechat (weixin) link to navigation menu?
- Relative links for performance?
- Delete link on single-custom.php with redirection
- Customize the WordPress Default Gallery Output
- Dont’t change active Button while I’m listing a category?
- How do i set the read more link?
- Plugin for wikipedia style references in WP?
- Problem creating an edit link for a custom post type
- How to use
- After duplicating site to a sub folder, links send user to original site
- How to add a WordPress page with multiple picture links?
- Twitter links in widget don’t work?
- WordPress links https overwrite issue
- Custom loop pagination links not working
- Add text excerpt and pictures to hyperlinks?
- WordPress changes URL?
- Parent/child pages and link structure the right way
- Link below the footer removal
- How to change all external links to “nofollow” but only for Contributor role?
- link to single most recent post, regardless of category
- WordPress relative links for regular non image links
- Trouble getting the Blog page to show up correctly
- How Do I Link My Whole Featured Article Image?
- Change homepage’s logo link [duplicate]
- Allow insecure embedded content in a SSL secured website
- remove the title attribute from links [closed]
- How to prevent WordPress from abbreviating long slugs?
- How do I create a root link in wordpress to a PDF file?
- Position a hard-coded menu item
- Embed/Link external web pages into my WordPress blog (Like Facebook grabs Image, Title, and Description)
- Show custom field value as a link
- How to auto add nofollow to links in custom field?
- Previous and older set of posts links
- Page to show a link to every file in an directory
- Put password on a wordpress link in a article
- Links In Sidebar not displaying
- Display category page number links for older posts
- Blogroll/Lins Menu not visible in my backend?
- How do I exclude main pages and link only to sub pages?
- What’s the URL to my blogs (from my home page – which is a “page”)
- Snippet to Format Elementor Text Box Throws Error
- how do I turn off whatever causes links to be embedded as URL’s site title
- How to make entire in blog post page linked?
- how give a link to an Elementor Pro widget with variable part
- ddnss linking problem
- Best practice to generate token for email action
- New to WP: links on static homepage are not working
- Rotate prefix for external domain links using functions.php?
- Making download links from short code
- bloginfo(); outputs wrong urls without https on inner pages
- how to display country/region/subject/post reasonably
- remove or hide Link Relationship (XFN) form Menus tab
- Multisite – Display different header content based on which site is accessed
- Add a data attribute to list item element in menu
- Problem to get the link of the default ‘post’ post type like the orther custom types
- Prevent “nofollow” from Being Inserted into BBPress Posts
- How do I change the “href” link that corresponds with an “li class” statement?
- How do I map two domains to the same wordpress installation?
- Links offset on my page
- How to link to specific part of a page in wordpress permalinks
- Custom WP deactivate an email activation link sent to user’s email.
- WordPress link to show popup box
- remove the ‘page’ URL parameter in previous/next posts link
- Internal linking search box not working – WP 3.2
- Blogroll import/export with categories and descriptions
- WordPress: How to make a subsubdirectory
- External Links Not Working [closed]
- How do I edit a links published date?
- Link to blogg-page
- I’ve been trying for an hour to remove the underline from links; I don’t understand why something that should be so simple is so difficult [closed]
- gallery link not displaying photos
- Allow Linking to draft posts from classic editor