{"id":1514,"date":"2008-04-27T03:20:58","date_gmt":"2008-04-27T11:20:58","guid":{"rendered":"http:\/\/www.krunk4ever.com\/blog\/2008\/04\/27\/changing-amazon-affiliates-id\/"},"modified":"2008-04-27T03:20:58","modified_gmt":"2008-04-27T11:20:58","slug":"changing-amazon-affiliates-id","status":"publish","type":"post","link":"https:\/\/www.krunk4ever.com\/blog\/2008\/04\/27\/changing-amazon-affiliates-id\/","title":{"rendered":"Changing Amazon Affiliates ID"},"content":{"rendered":"<p>So now that I have multiple places where I link to Amazon.com items using <a href=\"http:\/\/www.amazon.com\/?tag=krunk4everblog-20\">my affiliates ID<\/a>, I&#8217;ve decided to create multiple Amazon affiliates ID to track where things were coming from.<\/p>\n<p>I knew there was a way to mass edit strings in my blog posts and a quick search resulted in:  <a href=\"http:\/\/www.mediacollege.com\/computer\/database\/mysql\/find-replace.html\">How to Find &amp; Replace Data in MySQL<\/a><\/p>\n<blockquote><p>To find a string in a certain field and replace it with another string:<\/p>\n<p><code>update [table_name] set [field_name] = replace( [field_name], '[string_to_find]', '[string_to_replace]' );<\/code><\/p><\/blockquote>\n<p>So a quick <code>update wp_posts set `post_content` = replace( `post_content`, 'krudoethekrue-20', 'krunk4everblog-20' );<\/code> did the trick.<\/p>\n<p>Now I&#8217;ll be able to track if people are coming through my <a href=\"http:\/\/www.hd-trailers.net\">HD-Trailers site<\/a>, my <a href=\"http:\/\/www.hd-trailers.net\/blog\/\">HD-Trailers blog<\/a>, or my Krunk4ever! blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So now that I have multiple places where I link to Amazon.com items using my affiliates ID, I&#8217;ve decided to create multiple Amazon affiliates ID to track where things were coming from. I knew there was a way to mass edit strings in my blog posts and a quick search resulted in: How to Find &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.krunk4ever.com\/blog\/2008\/04\/27\/changing-amazon-affiliates-id\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Changing Amazon Affiliates ID&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[518,517,519],"_links":{"self":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1514"}],"collection":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/comments?post=1514"}],"version-history":[{"count":0,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1514\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/media?parent=1514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/categories?post=1514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/tags?post=1514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}