<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Review Of Web &#187; batch edit posts</title> <atom:link href="http://reviewofweb.com/tag/batch-edit-posts/feed/" rel="self" type="application/rss+xml" /><link>http://reviewofweb.com</link> <description>Make the most of technology</description> <lastBuildDate>Sat, 12 May 2012 16:13:48 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>How to batch edit your posts in one shot?</title><link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/</link> <comments>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comments</comments> <pubDate>Sat, 27 Dec 2008 05:19:40 +0000</pubDate> <dc:creator>Ankur Jain</dc:creator> <category><![CDATA[Blogging]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[batch edit posts]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[PHPMyAdmin]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/</guid> <description><![CDATA[The above SQL statement replaces all the occurrences of OLD_CONTENT with NEW_CONTENT inside the content. Batch edit your wordpress blog posts using mysql REPLACE fucntion. PHP MyAdmin. Wordpress<p><a
href="http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/">How to batch edit your posts in one shot?</a> is a post from <a
href="http://ReviewOfWeb.com/">ReviewOfWeb</a></p> ]]></description> <content:encoded><![CDATA[<p></p><p>You have a lot of blog posts on your wordpress self hosted blog where you refer to a particular URL. Now somehow that URL got changed and you need to edit your posts. To change all those URL’s, one way is to go one by one, open and edit <img
title="MySQL Replace" style="display: inline; margin-left: 0px; margin-right: 0px" height="67" alt="MySQL Replace" src="http://reviewofweb.com/wp-content/uploads/2008/12/image36.png" width="120" align="right" border="0" />all your posts. Not a smart way.</p><p>Other way would be to use MySQL and batch edit them at a click of a button. No need to be a techie, anyone can do this.</p><p>This was useful for me when recently I made a <a
href="http://reviewofweb.com/blogging/tutorial-moving-from-blogger-to-wordpress/">move from blogger to wordpress</a>. There were about 25 posts where I needed to change a particular URL. Here is how I did and you can do this in under 5 minutes.</p><ol><li>Log on to PHPMyadmin. [Your webhost should have provided the URL to access it.]&#160;</li><li>Select your database name from the drop down given on the left hand side.</li><li>In SQL tab type <font
color="#008000" size="2"><strong>UPDATE wp_posts SET post_content = replace(post_content, &#8216;<em>OLD CONTENT</em>’, &#8216;<em>NEW CONTENT</em>&#8216;); </strong></font>and hit GO.</li></ol><p>The above SQL statement replaces all the occurrences of OLD_CONTENT with NEW_CONTENT inside the content(post_content) of all posts(wp_posts). Make sure that wp_posts is indeed the name of your posts table. On shared hosting the name of this table is different sometimes.</p><p>For techies: Here is the syntax of MySql Replace function <a
href="http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace"><code>REPLACE(<em><code>str</code></em>,<em><code>from_str</code></em>,<em><code>to_str</code></em>)</code></a></p></p><div
class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b617acdc-c3db-4f03-af9a-4241c94baf0f" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a
href="http://technorati.com/tags/PHPMyAdmin" rel="tag">PHPMyAdmin</a>,<a
href="http://technorati.com/tags/mysql" rel="tag">mysql</a>,<a
href="http://technorati.com/tags/replace+function" rel="tag">replace function</a>,<a
href="http://technorati.com/tags/batch+edit+all+posts" rel="tag">batch edit all posts</a>,<a
href="http://technorati.com/tags/wordpress" rel="tag">wordpress</a></div><p><a
href="http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/">How to batch edit your posts in one shot?</a> is a post from <a
href="http://ReviewOfWeb.com/">ReviewOfWeb</a></p> ]]></content:encoded> <wfw:commentRss>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 4/6 queries in 0.003 seconds using disk: basic
Object Caching 749/749 objects using disk: basic

Served from: reviewofweb.com @ 2012-05-22 01:44:05 -->
