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
- Should a SEO plugin be necessary? [closed]
- How are plugins in the WordPress plugin directory ranked?
- Change post permalink to external URL from custom field
- Publish Post After Click On A Link
- Alter post slug by a filter that is fired just after a post is created
- WP get_permalink Return Wrong URL
- Conditional Display of Links in Widgets
- Social sharing post’s shortlink instead of permalink
- How to get the permalink of a page when loading my plugin
- Tag link suggestion plugin
- Mixed unrelated taxonomy in permalink
- How to add an image from web-link?
- Load custom PHP on a custom URL via a plugin
- SEO smart plugin not working for words ending with ä, ö, å
- resetting permalinks after changing page names
- qTranslate conflicts with SEO-plugins [closed]
- Plugin appends ugly URL string to index
- How to make a proper custom post type link
- Pagination Broken on Static Pages but Works on Blog Articles
- WordPress Sitemap including pages that aren’t there
- Change permalinks of custom post type ‘question’ as post id or any random number once
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- 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?
- Yoast Force Rewrite Crashed Site [closed]
- 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
- Why is Google Search Console getting X-Robots-Tag noindex?
- How to remove index meta tag
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)
- Inserting shortcode in href – any ideas or workarounds?
- Need to change link URL embedded in multiple posts to new link URL
- how to replace hostnames on certain external links?
- How to auto strip hyperlinks & images in wordpress post
- How to embed a new string in url?
- How do I fill the Home Description?
- help intercepting save_post through plugin
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- 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
- 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
- .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
- Changing author slug for a custom role without using plugin
- Custom author page for custom role
- Custom role not listed
- get_permalink is causing a whitescreen
- Share on social media created listing after submission
- Rogue splash page keeps popping up
- Coming soon pages with rest of site in maintenance mode
- 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?
- How to markup wordpress site using Schema.org?
- 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
- Unwanted Links and Spam WordPress Pages and Posts
- Why links are not linked if edited comment?
- How to remove links generated by SEO-smart-links?
- How do I increase the 255 character limit on the ‘description’ field for link library links?
- Strange Search Query Appearing on Google Index – “/?q=Save+Us+From+Berlusconi”
- Do shortcodes affect page indexing by search engines?
- HTML link within my plugin settings page
- How to make temporary expiring link for a downloadable file
- WordPress Customise
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- De-index plugin files
- Page with redirect
- Getting 400 Error in wordpress website
- wp-login 404 page not redirecting to homepage [closed]
- How to get selected variation from URL?
- Rank Math Seo register custom xml url
- WORDPRESS ,Can’t load image of post when sharing post via facebook [closed]