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
- Get parent page url to show up when it is in child pages
- Why is there a link tag with rel “profile” pointing to gmpg.org?
- How to use wpLink without editor?
- Add CSS Class to Link in TinyMCE editor
- How to print translation supported text with HTML URL
- Get the prev / next page links only (not title, etc)
- Add a class to links in the visual editor (how to get old dialog back)
- How to re-enable the links manager?
- Wondering how to turn your firefox bookmarks into a WordPress blog?
- How can I link to the most recent post in a category?
- Links redirecting to localhost after migration to server
- Is it possible to link to draft pages?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- How can I find all internal links that are pointing to post/page?
- Open external links in a new window
- Creating a Link Directory using WordPress?
- Count and show Clicks on external links in a single page/post
- How to use wp_rel_nofollow to add nofollow to external links only?
- get_category_link() is returning nothing
- Menu Link Redirect Based on Username or User ID
- Is there any way to set default for “Insert/Edit Link” to “Open link in new window”?
- root-relative links for multiple parked domains
- Get link value only from the_content()?
- How to splice in wp_links links into the loop?
- widget to output a link to archive view
- Navigation link to specific user page
- Is there an easy way to create a links index page?
- Can’t add a class to links in the visual editor since WP 3.1?
- How to remove link from an image in a post?
- Conditional Display of Links in Widgets
- how can i add a menu link that goes to an external page
- HTTPS page link in menu
- How do I remove or disable “Or link to existing content” in “insert link” dialogue?
- Retrieving all Links from a Post?
- Link Category Description
- Auto-embed link info from URLs in link post format?
- programatically change href to onclick=window.open
- Disable automatic content hyperlinking
- Open link in a new tab checked by default when adding a new link in visual post editor
- Deep linking to an accordion tab with Visual Composer
- Setting a page link in the footer?
- How to add/change a value of $wpdb property/var?
- Need advice on how to add links in users profile page?
- Generate Random Post Links Somewhere in the post
- How to hide a customization link themes menu in wordpress?
- Related links – from other sites
- Getting only the most recent bookmark?
- WordPress links/bookmarks – need to urlencode because spaces are getting stripped
- 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?
- How do I make my navigation bar link to an external page?
- Plugin that inserts favicon next to links
- Create anchor from Wysiwyg editor
- Is there any way of changing the post order via user click?
- Get post / page ID from ACF Link field
- Creating a navigation link to my front-page
- Why is the Links Manager visible?
- How to remove author name and link from a shared link preview?
- wp_get_attachment_link to add title attribute to link tag around image
- How to add wechat (weixin) link to navigation menu?
- Can I generate then display a mixed list of linked and unlinked terms
- Relative links for performance?
- Make page tab link to pdf
- Delete link on single-custom.php with redirection
- Admin only menu/page
- Customize the WordPress Default Gallery Output
- Dont’t change active Button while I’m listing a category?
- How to change server name on WordPress Installation?
- How to prevent a page from being linked in the menu/crossbar
- 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 convert all links to no follow links of particlular section of a webpage
- How to use
- Taxonomy linked to pages
- Linking from Menu and a Page to the latest post from a specific category
- Delete post by giving its link
- After duplicating site to a sub folder, links send user to original site
- Automaticly replace a link with other “new link”
- Links are not working on All Plugins Page
- How to add a WordPress page with multiple picture links?
- Problem with meta box in Links
- Is there a way to hide WordPress behind a web visible directory?
- Twitter links in widget don’t work?
- Links in nonalphabetic order
- Copy button for anchor link
- How can I modify all existing tags while keeping the urls themselves?
- How to automatically nofollow a set domains? (I seem to have half of the answer)
- WordPress links https overwrite issue
- My custom link works only on home page
- Custom loop pagination links not working
- Read more link to external webpage
- I want to allow the use of a data-flw attribute in links in comments