<?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: Accessing content for non-active languages with qTranslate</title>
	<atom:link href="http://hotchkissconsulting.net/2010/01/accessing-content-for-non-active-languages-with-qtranslate/feed/" rel="self" type="application/rss+xml" />
	<link>http://hotchkissconsulting.net/2010/01/accessing-content-for-non-active-languages-with-qtranslate/</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 14 Aug 2011 10:41:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jacky Andrew</title>
		<link>http://hotchkissconsulting.net/2010/01/accessing-content-for-non-active-languages-with-qtranslate/#comment-365</link>
		<dc:creator>Jacky Andrew</dc:creator>
		<pubDate>Sun, 14 Aug 2011 10:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://hotchkissconsulting.net/?p=271#comment-365</guid>
		<description>Doing the same thing, but with much less: 
 
$getpost = get_post($post-&gt;ID); 
if (preg_match_all(&#039;/--&gt;(.+?)&lt;!--:--&gt;/&#039;, $getpost-&gt;post_title, $titles)): 
    $titles = $titles[1]; 
endif; 
if (preg_match_all(&#039;/--&gt;(.+?)&lt;!--:--&gt;/&#039;, $getpost-&gt;post_content, $content)): 
    $content = $content[1]; 
endif; 
 
Now your titles are in an array $titles. $titles[0] being english and $titles[1] being hebrew.  Same for the content with $content. </description>
		<content:encoded><![CDATA[<p>Doing the same thing, but with much less:</p>
<p>$getpost = get_post($post-&gt;ID);</p>
<p>if (preg_match_all(&#039;/&#8211;&gt;(.+?)&lt;!&#8211;:&#8211;&gt;/&#039;, $getpost-&gt;post_title, $titles)):</p>
<p>    $titles = $titles[1];</p>
<p>endif;</p>
<p>if (preg_match_all(&#039;/&#8211;&gt;(.+?)&lt;!&#8211;:&#8211;&gt;/&#039;, $getpost-&gt;post_content, $content)):</p>
<p>    $content = $content[1];</p>
<p>endif;</p>
<p>Now your titles are in an array $titles. $titles[0] being english and $titles[1] being hebrew.  Same for the content with $content.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

