There are free and premium WordPress plugins that allow you to automatically replace your post words affiliates links. Although I use MaxBlogPress Ninja affiliate plugin, but one more excellent SEO Smart links plugin which improves the overall number of SEO blog by automatically linking your content, as well as automatically convert keywords you specify in the links (branch).
Developed by Vladir Prelovac, known and respected WordPress SEO expert, SEO Smart links is one of the most popular SEO plugins for WordPress used random bloggers, Internet marketers and SEO professionals. Matt Cutts from Google announced that clever internal linking is one of the key strategies for SEO in the year 2011. Has been downloaded more than 300000 times today, SEO Smart links premium was installed as the best keyword affiliate links plugin.
You can find a free version of this plugin on SEO Smart links that you can do the same job: SEO Smart links automatically, you can associate keywords and phrases in your posts and comments with corresponding posts, pages, categories and tags on your blog.
There is another easy way to replace an affiliate link, all you need to add the following code in the function.php file. It's simple and free way, but have limitations and will not give you more control as well as a plug-in SEO Smart link. Don't forget to enter your words/links, as shown in the example code.
function replace_text_wps ($ text) {$ Replace = array ("//" should be replaced by the word "= > ' replace with ' wordpress ' =wordpress> ' ', ' excerpt ' =Aging> ' ', ' function ' =function> ' '); $ text = str_replace (array_keys ($ replace), replace $, $ text); return $ text;}add_filter (' the_content ', ' replace_text_wps '); add_filter (' ' the_excerpt ', "replace_text_wps");This code is courtesy of Chard Kevin from WpSnipp, and we must be grateful to him!