Affiliate marketing is very popular and profitable business. Anyone can make a regular money with a successful affiliate business. But before start affiliate business you need a website. As my recommend I say use WordPress. Using WordPress visual post editor you can easily add an affiliate link to your affiliate products. But today I will share very automatically and fast way to add affiliate links automatically in your word. Suppose, you are going to use Amazon affiliate program so each time and every post you have to add a link to your Amazon word.
Do you not prefer automatically Replace Words With Affiliate Links?
Example: When you write Amazon it automatically linked to your affiliated product “http://amazon.com/ref_id”
Same as for eBay “http://ebay.com/ref_id”
Let’s do this right now. Open your functions.php file from your currently active theme then copy below code and paste in your theme functions file.
Automatically Replace Words With Affiliate Links Function code.
$replace_words = array(
//text to search => text to replace
'amazon' => '<a href="http://amazon.com/ref_id">Amazon</a>',
'ebay' => '<a href="http://ebay.com/ref_id">Ebay</a>',
'buy at amazon' => '<a href="http://amazon.com/ref_id">buy at amazon</a>'
$text = str_replace(array_keys($replace_words), $replace_words, $text);
Bonus: Free WordPress Theme for your Amazon affiliate website.
Warning for using a free theme:
*Change links and replaces with your website name.
*Deeply check theme file is there any hacking code or other website links.
If you need more help don’t delay to ask me. I am here ready to give an easy guideline. Just comment or send message me. I will beck you asap. Message Now .
Don’t forget to bookmark and share this code with others new learner like you.