<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to batch edit your posts in one shot?</title>
	<atom:link href="http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/</link>
	<description>Make the most of technology</description>
	<lastBuildDate>Tue, 10 Jan 2012 22:34:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ayman</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2715</link>
		<dc:creator>Ayman</dc:creator>
		<pubDate>Fri, 26 Aug 2011 07:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2715</guid>
		<description>Oh I guess the code didnt show up. I meant to say that it looks somewhat like this (i hope this works)

[a href=&quot;https://market.android.com/details?id=XXXX&quot;][img src=&quot;http://tablified.com/wp-content/uploads/2011/07/androidicon.png&quot; alt=&quot;&quot; title=&quot;Click to Download from Android Market&quot; width=&quot;300&quot; height=&quot;48&quot; class=&quot;alignnone size-full wp-image-4507&quot; /][/a]

replace the &quot;[ or ]&quot; with &quot;&quot;.</description>
		<content:encoded><![CDATA[<p>Oh I guess the code didnt show up. I meant to say that it looks somewhat like this (i hope this works)</p>
<p>[a href="https://market.android.com/details?id=XXXX"][img src="http://tablified.com/wp-content/uploads/2011/07/androidicon.png" alt="" title="Click to Download from Android Market" width="300" height="48" class="alignnone size-full wp-image-4507" /][/a]</p>
<p>replace the &#8220;[ or ]&#8221; with &#8220;&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayman</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2714</link>
		<dc:creator>Ayman</dc:creator>
		<pubDate>Fri, 26 Aug 2011 07:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2714</guid>
		<description>I could use some help. This doesn&#039;t seem to work for me. I get a 1064 error. Here&#039;s what I am trying to do. In each post I have a link that looks somewhat like this:

&lt;a href=&quot;https://market.android.com/details?id=XXXX&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

The difference between each post is the XXXX. So what I wanted to do was replace the whole thing and make it look like this:

[app]XXXX[/app]

So what I did in the SQL was type:

UPDATE wp_posts SET post_content = replace(post_content, ‘&lt;a href=&quot;https://market.android.com/details?id=’, ‘[app]‘);

then I was going to repeat the step for the second half of the code; doing this:

UPDATE wp_posts SET post_content = replace(post_content, ‘&quot;&gt;&lt;/a&gt;’, ‘[/app]‘);

But unfortunately it didnt work. This is the error I got:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;href=&quot;https://market.android.com/details?id=â€™, â€˜[app]â€˜)&#039; at line 1

Not really sure what that means. Can anyone help me out?</description>
		<content:encoded><![CDATA[<p>I could use some help. This doesn&#8217;t seem to work for me. I get a 1064 error. Here&#8217;s what I am trying to do. In each post I have a link that looks somewhat like this:</p>
<p><a href="https://market.android.com/details?id=XXXX" rel="nofollow"></a></p>
<p>The difference between each post is the XXXX. So what I wanted to do was replace the whole thing and make it look like this:</p>
<p>[app]XXXX[/app]</p>
<p>So what I did in the SQL was type:</p>
<p>UPDATE wp_posts SET post_content = replace(post_content, ‘<a href="https://market.android.com/details?id=’, ‘[app]‘);</p>
<p>then I was going to repeat the step for the second half of the code; doing this:</p>
<p>UPDATE wp_posts SET post_content = replace(post_content, ‘"></a>’, ‘[/app]‘);</p>
<p>But unfortunately it didnt work. This is the error I got:</p>
<p>#1064 &#8211; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;href=&quot;<a href="https://market.android.com/details?id=â€™" rel="nofollow">https://market.android.com/details?id=â€™</a>, â€˜[app]â€˜)&#8217; at line 1</p>
<p>Not really sure what that means. Can anyone help me out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2619</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Thu, 02 Jun 2011 16:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2619</guid>
		<description>Let it be noted that if you try this:
 &lt;code&gt;UPDATE wp_posts SET post_content = replace(post_content, &#039;&quot;&#039; , &#039;&#039;);&lt;/code&gt;
You will get an SQL error. In my case getting rid of the  helped. Hope this helps someone out there.</description>
		<content:encoded><![CDATA[<p>Let it be noted that if you try this:<br />
 <code>UPDATE wp_posts SET post_content = replace(post_content, '"' , '');</code><br />
You will get an SQL error. In my case getting rid of the  helped. Hope this helps someone out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2598</link>
		<dc:creator>Ankur</dc:creator>
		<pubDate>Tue, 03 May 2011 18:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2598</guid>
		<description>@Notebook HP aka Hey - Seems you had a bad day. We approve comments in a batch, sometimes it may take 7-10 days before you will see your comment published.</description>
		<content:encoded><![CDATA[<p>@Notebook HP aka Hey &#8211; Seems you had a bad day. We approve comments in a batch, sometimes it may take 7-10 days before you will see your comment published.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hey</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2597</link>
		<dc:creator>Hey</dc:creator>
		<pubDate>Tue, 03 May 2011 06:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2597</guid>
		<description>Didnt aprove my comment about mysql adm!
Go fuck ur self and ur blog!</description>
		<content:encoded><![CDATA[<p>Didnt aprove my comment about mysql adm!<br />
Go fuck ur self and ur blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Notebook HP</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2593</link>
		<dc:creator>Notebook HP</dc:creator>
		<pubDate>Sat, 23 Apr 2011 01:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2593</guid>
		<description>What about editing &quot;bulk&quot; post titles via phpAdmin?
Thing it&#039;s blog was written in PT-br , now to make all post_name (URL) us english I need to change every post name via wp-admin. But there are 2.500 posts! So I got how to export just post_name table and translated them via Systran. But how do I upload it? First I need to &quot;clean&quot; any data from post_name table them how to import it? via txt? File must be equal structure from which one I export it?
Thanks</description>
		<content:encoded><![CDATA[<p>What about editing &#8220;bulk&#8221; post titles via phpAdmin?<br />
Thing it&#8217;s blog was written in PT-br , now to make all post_name (URL) us english I need to change every post name via wp-admin. But there are 2.500 posts! So I got how to export just post_name table and translated them via Systran. But how do I upload it? First I need to &#8220;clean&#8221; any data from post_name table them how to import it? via txt? File must be equal structure from which one I export it?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Maclintok</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2586</link>
		<dc:creator>Jason Maclintok</dc:creator>
		<pubDate>Mon, 18 Apr 2011 13:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2586</guid>
		<description>Hey Ankur, I am facing the same issue as stated by Mahesh. I has tried to use the trick you suggested but can&#039;t get it working. Can you guide me through this?</description>
		<content:encoded><![CDATA[<p>Hey Ankur, I am facing the same issue as stated by Mahesh. I has tried to use the trick you suggested but can&#8217;t get it working. Can you guide me through this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2563</link>
		<dc:creator>Ankur</dc:creator>
		<pubDate>Sun, 03 Apr 2011 13:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2563</guid>
		<description>You should be able to do that by checking for the word &quot;DOWNLOAD&quot; at the end of post. I would suggest you to always have a backup in place. Do a SELECT first, once you are satisfied then only do an UPDATE</description>
		<content:encoded><![CDATA[<p>You should be able to do that by checking for the word &#8220;DOWNLOAD&#8221; at the end of post. I would suggest you to always have a backup in place. Do a SELECT first, once you are satisfied then only do an UPDATE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh</title>
		<link>http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2562</link>
		<dc:creator>Mahesh</dc:creator>
		<pubDate>Sun, 03 Apr 2011 04:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://reviewofweb.com/blogging/batch-edit-wordpress-posts-mysql-replace-function/#comment-2562</guid>
		<description>Good trick. But, what if I want some some text to be removed from all the posts?
Like, I have some posts, at the end of the each post, there is a word DOWNLOAD. I want that word to be removed from all the posts. How can I do this?</description>
		<content:encoded><![CDATA[<p>Good trick. But, what if I want some some text to be removed from all the posts?<br />
Like, I have some posts, at the end of the each post, there is a word DOWNLOAD. I want that word to be removed from all the posts. How can I do this?</p>
]]></content:encoded>
	</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 1/7 queries in 0.012 seconds using disk: basic
Object Caching 891/892 objects using disk: basic

Served from: reviewofweb.com @ 2012-02-11 18:48:55 -->
