This is how I would do it :
1/ create a filter to access the post content before it’s displayed on page.
See http://codex.wordpress.org/Plugin_API/Filter_Reference/the_content
2/ Inside your fonction called (ie : my_the_content_filter in the example from the Codex)
adapt this code :
https://stackoverflow.com/questions/5037592/how-to-add-rel-nofollow-to-links-with-preg-replace
Cheers !
Related Posts:
- A plugin for having rel=”nofollow” in posts?
- How to set all external links to a certain domain to “nofollow”?
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- Removing rel=”nofollow” from links posted in Post Content
- SEO Friendly URL on dynamic product page produced via shortcode
- Plugin for TinyMCE to create reference to other posts
- Why the internal link get converted into a comment?
- claim a permalink and all sublinks in plugin
- How to call a plugin function from index.php
- Rewriting every url
- Change post permalink to external URL from custom field
- Prevent page slug from interfering with custom post type archive permalink?
- Passing URL parameters to WordPress pages and pretty url
- Publish Post After Click On A Link
- How to prefix `attachment` permalinks with `attachment`?
- Alter post slug by a filter that is fired just after a post is created
- How to get the custom page get_permalink?
- How to set “with_front’=>false” to a plugin-generated cpt?
- Conditional Display of Links in Widgets
- Custom url structure for custom template
- WordPress web page struggling with performance
- Social sharing post’s shortlink instead of permalink
- Mixed unrelated taxonomy in permalink
- XML sitemap over product variations
- Regenerate images with automatic ALT and TITLE attributes
- How to set a custom title per language?
- How to add an image from web-link?
- How to change custom post type pemalink Hierarcy
- qTranslate conflicts with SEO-plugins [closed]
- How to make a proper custom post type link
- Pagination Broken on Static Pages but Works on Blog Articles
- Outbound link autometic converted into linkdirect , and not opening
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- Is it possible to use multiple post_name, post_title and post_content?
- Modifying Author Link to add Author Meta in URL
- Change permalinks of custom post type ‘question’ as post id or any random number once
- install robots.txt to wordpress website admin
- WP Plugin for onpage link suggestions [closed]
- Reoccurring 404 Errors on all subpages
- Permalinks stopped working after migration with WP all-in-one migration plugin
- How to remove custom post type and add category and post name
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- Plugin generated taxonomies’ permalinks with custom placeholders
- Check if SEO plugin installed
- Show Sitename on Yoast SEO Title tag [closed]
- Yoast SEO settings unavailable in an archive page from wordpress plugin
- how to connect the author profile with google webmaster tools in multiuser blog?
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- Is changing post from category in a large blog a good practice?
- XML Sitemap Generator can’t notify google and bing
- How to remove index meta tag
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Disable plugin If slug contains specific word
- How do I create a custom permalink structure for a page template
- Need to change link URL embedded in multiple posts to new link URL
- how to replace hostnames on certain external links?
- I want to filter my products with attributes [closed]
- How to auto strip hyperlinks & images in wordpress post
- How to embed a new string in url?
- Permalinks and pagination are not working in WordPress with WP e-Commerce plugin
- help intercepting save_post through plugin
- WordPress Sitemap for MSSQL
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- custom wordpress theme and yoast seo injecting text in body
- Oops! That page can’t be found
- Error in Fetching Custom Post Type parent Category URL (slug)
- Hidden permalink different from displayed permalink
- WP search box on page not finding .PDF files
- Remove Keywords From Webpage But Still Use for SEO
- Child theme modifications not showing up
- Rewrite/Change custom taxonomy slug
- Create new page in wordpress plugin which doesn’t exist
- How page with random php file with query params generated
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- .com creates automated link in post
- How to update all in-site redirect URLs to destination URLs at once
- Writing SEO for Homepage when homepage is set to display latest posts
- Scroll to ID broken in main menu
- post id or permalink auto-incrementing number and reset everyday
- Custom author page for custom role
- Custom role not listed
- added code to permalink (URL)
- User Affiliate Token Generator?
- Rogue splash page keeps popping up
- Same Title on two different post type with single custom taxonomy
- Yoast Seo Plugin meta title not showoing [closed]
- How to disable wordpress page rewrite rule?
- Problem with Duplicate Meta / tag description in Webmaster Tool [duplicate]
- How to maintain WordPress permalink structure with custom content with URL parameters?
- How to Set Limit with WordPress Get Bookmarks Shortcode
- Change post permalink to external URL from custom field
- Why links are not linked if edited comment?
- How to remove links generated by SEO-smart-links?
- How to block external download link access if visitor not referred from WP?
- HTML link within my plugin settings page
- WordPress Customise
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- Page with redirect
- Getting 400 Error in wordpress website