<?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: Language dependent IDs</title>
	<atom:link href="http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpml.org</link>
	<description>Using WordPress to build full multilingual websites</description>
	<lastBuildDate>Wed, 10 Mar 2010 22:49:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: amir</title>
		<link>http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/comment-page-1/#comment-3885</link>
		<dc:creator>amir</dc:creator>
		<pubDate>Thu, 17 Dec 2009 12:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=1966#comment-3885</guid>
		<description>Using low level MySQL calls is much more difficult than using WPML&#039;s API functions. Try using icl_object_id for that.

If you need technical help, better use the forum: http://forum.wpml.org</description>
		<content:encoded><![CDATA[<p>Using low level MySQL calls is much more difficult than using WPML&#8217;s API functions. Try using icl_object_id for that.</p>
<p>If you need technical help, better use the forum: <a href="http://forum.wpml.org" rel="nofollow">http://forum.wpml.org</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madaíl</title>
		<link>http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/comment-page-1/#comment-3884</link>
		<dc:creator>Madaíl</dc:creator>
		<pubDate>Thu, 17 Dec 2009 11:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=1966#comment-3884</guid>
		<description>Hi there, awesome work with WPML.

I&#039;ve read this through and as ive got no knowledge about php, could you enlight me how i should use the code in this specific one from the theme i use? this is the code:

&lt;code&gt;function get_categname($cat_id)
{
	global $wpdb;
	$cat_name = $wpdb-&gt;get_var(&quot;SELECT name FROM $wpdb-&gt;terms WHERE term_id = &#039;&quot;.$cat_id.&quot;&#039;&quot;);
	return $cat_name;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi there, awesome work with WPML.</p>
<p>I&#8217;ve read this through and as ive got no knowledge about php, could you enlight me how i should use the code in this specific one from the theme i use? this is the code:</p>
<p><code>function get_categname($cat_id)<br />
{<br />
	global $wpdb;<br />
	$cat_name = $wpdb-&gt;get_var("SELECT name FROM $wpdb-&gt;terms WHERE term_id = '".$cat_id."'");<br />
	return $cat_name;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amir</title>
		<link>http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/comment-page-1/#comment-3356</link>
		<dc:creator>amir</dc:creator>
		<pubDate>Tue, 17 Nov 2009 19:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=1966#comment-3356</guid>
		<description>This is a bit more complicated. If the theme supplied the category ID (as it should), you would just use the object_id function to get the ID of the translated category.

Since it supplies a name, you first need to find the ID (according to the name) and the look up the translated ID.</description>
		<content:encoded><![CDATA[<p>This is a bit more complicated. If the theme supplied the category ID (as it should), you would just use the object_id function to get the ID of the translated category.</p>
<p>Since it supplies a name, you first need to find the ID (according to the name) and the look up the translated ID.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justin style</title>
		<link>http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/comment-page-1/#comment-3354</link>
		<dc:creator>justin style</dc:creator>
		<pubDate>Tue, 17 Nov 2009 19:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=1966#comment-3354</guid>
		<description>Ok i have added the function, but how do i add the category to the featured slider, the category i want to reference is named &#039;featured&#039; in my default language, and if i set it to that name in the theme options the slider works. but once i swap to secondary language it doesnt find the translated category.
                                
</description>
		<content:encoded><![CDATA[<p>Ok i have added the function, but how do i add the category to the featured slider, the category i want to reference is named &#8216;featured&#8217; in my default language, and if i set it to that name in the theme options the slider works. but once i swap to secondary language it doesnt find the translated category.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BladHaund</title>
		<link>http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/comment-page-1/#comment-3206</link>
		<dc:creator>BladHaund</dc:creator>
		<pubDate>Fri, 06 Nov 2009 09:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpml.org/?page_id=1966#comment-3206</guid>
		<description>I&#039;m trying to implement a news feed in the sidebar that pulls content from a category within the same site, and produces output via the RSS sidebar widget. The pulled link needs to change according to the language. Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to implement a news feed in the sidebar that pulls content from a category within the same site, and produces output via the RSS sidebar widget. The pulled link needs to change according to the language. Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
