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
- Can YOAST SEO fields be removed from custom post type [duplicate]
- How to call a plugin function from index.php
- Rewriting every url
- Should a SEO plugin be necessary? [closed]
- How to generate expiring URL?
- How are plugins in the WordPress plugin directory ranked?
- Open external links in a new window
- Issues creating a tinyMCE plugin that creates a custom link
- 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
- Change Permalinks Structure to a Sequential Number for Each Post?
- How to attach Links into page/post or custom post type?
- 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?
- WP get_permalink Return Wrong URL
- Conditional Display of Links in Widgets
- Custom url structure for custom template
- Add a Custom Permalink option in the Permalink Admin Screen?
- WordPress web page struggling with performance
- add_filter the_content in functions.php not working
- Social sharing post’s shortlink instead of permalink
- How to get the permalink of a page when loading my plugin
- Tag link suggestion plugin
- Changing author slug for a custom role without using plugin
- Category Arabic Slug shows as symbols in plugin lists
- Custom author page for custom role
- Custom role not listed
- Members-only page, but accessible via sharable link
- added code to permalink (URL)
- How to setup same post slug for different categories?
- How to add add blank non-editable wp page like default blog for use with plugin
- Is it possible to change plugin’s Admin Panel Url?
- get_permalink is causing a whitescreen
- Share on social media created listing after submission
- User Affiliate Token Generator?
- 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
- Add Filter to get_next_posts_link
- Yoast Seo Plugin meta title not showoing [closed]
- add_external_rule – rules deleted when visiting permalinks page
- 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 programatically create a simple HTML page using the permalink of a WordPress post?
- Does Google detect files in the WordPress plugin directory
- 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
- Unwanted Links and Spam WordPress Pages and Posts
- Can I have a link within a WP UI Spoiler
- Why links are not linked if edited comment?
- homepage olderposts link showing page not found
- How to use Link Manager
- How do I add php to all links automatically?
- 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?
- Thumbnails and Lightbox
- Strange Search Query Appearing on Google Index – “/?q=Save+Us+From+Berlusconi”
- 404 not found problem with URL rewrite custom category
- Adding Category in URL in some post
- Automatically set posts to NoIndex depending on category?
- Do shortcodes affect page indexing by search engines?
- How to block external download link access if visitor not referred from WP?
- getting image alt text via ACF plugin in WordPress [closed]
- HTML link within my plugin settings page
- Simple Amazon Affiliate Plugin [closed]
- How to make temporary expiring link for a downloadable file
- WordPress Customise
- How should I force WordPress to give proper name for the uploading images?
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- Continuous jQuery Slider / Carousel Plugin with linkable slides [for WooCommerce]
- Seo Problems in My meta Discription [closed]
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- De-index plugin files
- WordPress Plugin and other pages not opening
- 404 Error on a WordPress Website, Error disappears for a while and again appears
- how to make yoast seo read text from custom fields in custom post type
- Page with redirect
- Getting 400 Error in wordpress website
- Changing the “OT Process” Plugin’s Default Slug of /process/
- wp-login 404 page not redirecting to homepage [closed]
- How to get selected variation from URL?
- WP_PLUGIN_URL equivalent
- Help Needed: Issue with Change Permalink on DirectoryPress Listing Pages
- Rank Math Seo register custom xml url
- WORDPRESS ,Can’t load image of post when sharing post via facebook [closed]