<?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>a trastear un poco &#187; programming</title>
	<atom:link href="http://blog.wikifotos.org/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wikifotos.org</link>
	<description>El lugar donde un servidor comparte sus desvaríos con todo el mundo.</description>
	<lastBuildDate>Sat, 21 Jan 2012 17:48:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Update posts language after installing WPML plugin for wordpress</title>
		<link>http://blog.wikifotos.org/2009/06/03/update-posts-language-after-installing-wpml-plugin-for-wordpress-2/</link>
		<comments>http://blog.wikifotos.org/2009/06/03/update-posts-language-after-installing-wpml-plugin-for-wordpress-2/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 22:57:32 +0000</pubDate>
		<dc:creator>sucotronic</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wpm]]></category>

		<guid isPermaLink="false">http://blog.wikifotos.org/?p=894</guid>
		<description><![CDATA[WPML is a plugin that enables a worpress site to write post in different languages. You only have to install the plugin and all works.. wel not all. If you already have lot of articles written in your language, the main page of your site will show anything due that there is no pages with [...]]]></description>
			<content:encoded><![CDATA[<p>WPML is a plugin that enables a worpress site to write post in different languages. You only have to install the plugin and all works.. wel not all. If you already have lot of articles written in your language, the main page of your site will show anything due that there is no pages with that language. However, you can execute a small SQL sentence to solve this problem, here we go:</p>
<pre class="brush: sql">
INSERT INTO wp_icl_translations(element_type, element_id, trid, language_code)
SELECT &#039;post&#039;, `ID`, 1, &quot;es&quot; FROM `wp_posts` WHERE `post_status`=&quot;publish&quot;
</pre>
<p>and for the categories also:</p>
<pre class="brush: sql">
INSERT INTO wp_icl_translations(element_type, element_id, trid, language_code)
SELECT &#039;category&#039;, `term_taxonomy_id`, 0, &quot;es&quot; FROM `wp_term_taxonomy` WHERE `taxonomy`=&quot;category&quot;;
</pre>
<p>and last, make some cleaning tasks:</p>
<pre class="brush: sql">
UPDATE `wp_icl_translations` SET `source_language_code` = &quot;&quot;
</pre>
<p>* Replace the &#8220;es&#8221; string with the appropriate language. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wikifotos.org/2009/06/03/update-posts-language-after-installing-wpml-plugin-for-wordpress-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

