<?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>WPML &#187; WordPress-tips</title>
	<atom:link href="http://wpml.org/category/wordpress-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpml.org</link>
	<description>The Plugin for Building Multilingual WordPress Sites</description>
	<lastBuildDate>Tue, 07 Feb 2012 11:39:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>What do You Like Best in Other CMS?</title>
		<link>http://wpml.org/2010/07/what-do-you-like-best-in-other-cms/</link>
		<comments>http://wpml.org/2010/07/what-do-you-like-best-in-other-cms/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:39:37 +0000</pubDate>
		<dc:creator>Amir</dc:creator>
				<category><![CDATA[WordPress-tips]]></category>

		<guid isPermaLink="false">http://wpml.org/?p=5088</guid>
		<description><![CDATA[Much of the inspiration for WPML actually comes from Drupal, so I was thinking, maybe there are other great features in other content management systems which we&#8217;re missing? This post is mostly your. Tell us about cools and useful features in other content management system, which you can only dream about in WordPress. Remember to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Much of the inspiration for WPML actually comes from Drupal, so I was thinking, maybe there are other great features in other content management systems which we&#8217;re missing?</strong></p>
<p>This post is mostly your.</p>
<p>Tell us about cools and useful features in other content management system, which you can only dream about in WordPress.</p>
<p>Remember to tell:</p>
<ul>
<li>What it is</li>
<li>What it&#8217;s good for</li>
<li>How you work around it in WordPress</li>
<li>Is this a deal-breaker, or just another cool thing?</li>
</ul>
<p>Looking forward to some surprises <img src='http://d2salfytceyqoe.cloudfront.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wpml.org/2010/07/what-do-you-like-best-in-other-cms/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Writing plugins that don&#8217;t break when WordPress updates</title>
		<link>http://wpml.org/2009/05/writing-plugins-that-dont-break-when-wordpress-updates/</link>
		<comments>http://wpml.org/2009/05/writing-plugins-that-dont-break-when-wordpress-updates/#comments</comments>
		<pubDate>Thu, 28 May 2009 14:48:51 +0000</pubDate>
		<dc:creator>Amir</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[WordPress-tips]]></category>

		<guid isPermaLink="false">http://wpml.org/?p=1377</guid>
		<description><![CDATA[We&#8217;ve been trying out WPML on WordPress 2.8 (Beta 2) and it works just fine. Seeing that several other plugins we&#8217;re using did have some problems, I thought it would be interesting to write about how to make sure your own plugins and themes are resilient to WordPress updates. Tips for making plugins and themes [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1392" title="wp-migrations" src="http://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2009/05/wp-migrations.jpg" alt="wp-migrations" width="250" height="125" /><strong>We&#8217;ve been trying out </strong><strong>WPML on </strong><strong>WordPress 2.8 (Beta 2) and it works just fine.</strong></p>
<p>Seeing that several other plugins we&#8217;re using did have some problems, I thought it would be interesting to write about how to make sure your own plugins and themes are resilient to WordPress updates.</p>
<h3>Tips for making plugins and themes migrate flawlessly</h3>
<p>The WordPress codex is stuffed with instructions for writing good plugins. This is a short summary of key points to remember:</p>
<ul>
<li><strong>Never use obsolete calls</strong> &#8211; no matter how tempting it is.</li>
<li><strong>Always use the WP actions (hooks) and filters</strong> to access the database and don&#8217;t query or update it directly.</li>
<li>Use the WP classes when creating GUI elements &#8211; this way, when WordPress redesigns, so will your plugin&#8217;s admin.</li>
</ul>
<h3>Examples (don&#8217;t try these at home)</h3>
<h4>Getting WordPress options</h4>
<p>use:</p>
<blockquote><p><code>get_option('some_option_name');</code></p></blockquote>
<p>and not:</p>
<blockquote><p><code>$wpdb-&gt;get_var("SELECT option_VALUE FROM $wpsb-&gt;options WHERE option_name='some_option_name'");</code></p></blockquote>
<hr />
<h4>Getting a list of posts (including with a filter)</h4>
<p>use:</p>
<blockquote><p><code>$posts = query_posts('showposts=5'); //plus any other arguments</code></p></blockquote>
<blockquote><p><code>$posts = query_posts('showposts=5&amp;cat=3,4,5'); </code></p></blockquote>
<p>and not:</p>
<blockquote><p><code>$posts = $wpdb-&gt;get_results("SELECT * FROM $wpdb-&gt;posts WHERE post_status='publish' AND post_type='post' ORDER BY post_date DESC LIMIT 5");</code></p></blockquote>
<blockquote><p><code>$posts = $wpdb-&gt;get_results("SELECT * FROM $wpdb-&gt;posts p JOIN $wpdb-&gt;term_relationships r ON p.ID = r.object_id JOIN $wpdb-&gt;term_taxonomy x ON r.term_taxonomy_id = t.term_taxonomy_id JOIN $wpdb-&gt;terms t ON x.term_id = t.term_id WHERE p.post_status='publish' AND p.post_type='post' AND x.taxonomy='category' AND t.term_id IN (3,4,5) ORDER BY p.post_date DESC");</code></p></blockquote>
<hr />
<h4>Getting a list of tags</h4>
<p>use:</p>
<blockquote><p><code>$tags = get_terms('post_tag');</code></p></blockquote>
<p>and not:</p>
<blockquote><p><code>$tags = $wpdb-&gt;get_results("SELECT * FROM $wpdb-&gt;terms t JOIN $wpdb-&gt;term_taxonomy x ON t.term_id = x.term_id WHERE x.taxonomy='post_tag'");</code></p></blockquote>
<hr />
<h3>Summary</h3>
<p>Pretty simple, right?</p>
<p>Keep in mind that this list applies the same to theme functions. You might want to go over your <em>functions.php</em> file and make sure that&#8217;s the way it works.</p>
<p>BTW &#8211; very few people have voted in our <a href="http://wpml.org/2009/05/what-are-you-using-wpml-for/">poll</a> about where WPML should go. Don&#8217;t you care? You still have a chance. Go and <a href="http://wpml.org/2009/05/what-are-you-using-wpml-for/">vote now</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpml.org/2009/05/writing-plugins-that-dont-break-when-wordpress-updates/feed/</wfw:commentRss>
		<slash:comments>0</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 (Requested URI is rejected)
Database Caching 18/55 queries in 0.119 seconds using apc
Object Caching 545/577 objects using apc
Content Delivery Network via Amazon Web Services: CloudFront: d2salfytceyqoe.cloudfront.net

Served from: wpml.org @ 2012-02-09 03:05:32 -->
