<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WP London</title>
	
	<link>http://wplondon.com</link>
	<description>Tips, Themes, Tutorials, everything about Wordpress</description>
	<lastBuildDate>Wed, 10 Feb 2010 11:46:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wplondon" /><feedburner:info uri="wplondon" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>wplondon</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to show multiple pages on one page</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/voH0lNUUttA/show-multiple-pages-page.html</link>
		<comments>http://wplondon.com/tips/show-multiple-pages-page.html#comments</comments>
		<pubDate>Wed, 10 Feb 2010 11:40:40 +0000</pubDate>
		<dc:creator>Takashi Irie</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[query_posts]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=187</guid>
		<description><![CDATA[As we know, query_posts is awesome. We are not only be able to retrieve posts but also pages by specifying its IDs on your theme templates. However if we want to multiple pages by using query_posts,the first thing we guess won&#8217;t work but here how to achieve it.

This is the first guess, right? But unfortunately, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2010/02/code.gif" alt="code How to show multiple pages on one page" title="code" width="125" height="125" class="alignleft size-full wp-image-189" />As we know, query_posts is awesome. We are not only be able to retrieve posts but also pages by specifying its IDs on your theme templates. However if we want to multiple pages by using query_posts,the first thing we guess won&#8217;t work but here how to achieve it.<br />
<span id="more-187"></span></p>
<p>This is the first guess, right? But unfortunately, this doesn&#8217;t work&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_id=5,9,10'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>What you need to do instead is&#8230;.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
   <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post__in'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">9</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   query_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>I hope it helps someone who is looking for a solution.</p>
<p><b>Thanks to <a href="http://wordpress.org/support/topic/286921" target="_blank">MichaelH</a> for this code. Awesome!</b></p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;title=How%20to%20show%20multiple%20pages%20on%20one%20page&amp;bodytext=As%20we%20know%2C%20query_posts%20is%20awesome.%20We%20are%20not%20only%20be%20able%20to%20retrieve%20posts%20but%20also%20pages%20by%20specifying%20its%20IDs%20on%20your%20theme%20templates.%20However%20if%20we%20want%20to%20multiple%20pages%20by%20using%20query_posts%2Cthe%20first%20thing%20we%20guess%20won%27t%20work%20but%20here%20how%20to%20" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;title=How%20to%20show%20multiple%20pages%20on%20one%20page&amp;notes=As%20we%20know%2C%20query_posts%20is%20awesome.%20We%20are%20not%20only%20be%20able%20to%20retrieve%20posts%20but%20also%20pages%20by%20specifying%20its%20IDs%20on%20your%20theme%20templates.%20However%20if%20we%20want%20to%20multiple%20pages%20by%20using%20query_posts%2Cthe%20first%20thing%20we%20guess%20won%27t%20work%20but%20here%20how%20to%20" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;t=How%20to%20show%20multiple%20pages%20on%20one%20page" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;title=How%20to%20show%20multiple%20pages%20on%20one%20page" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;title=How%20to%20show%20multiple%20pages%20on%20one%20page&amp;annotation=As%20we%20know%2C%20query_posts%20is%20awesome.%20We%20are%20not%20only%20be%20able%20to%20retrieve%20posts%20but%20also%20pages%20by%20specifying%20its%20IDs%20on%20your%20theme%20templates.%20However%20if%20we%20want%20to%20multiple%20pages%20by%20using%20query_posts%2Cthe%20first%20thing%20we%20guess%20won%27t%20work%20but%20here%20how%20to%20" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;title=How%20to%20show%20multiple%20pages%20on%20one%20page&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=As%20we%20know%2C%20query_posts%20is%20awesome.%20We%20are%20not%20only%20be%20able%20to%20retrieve%20posts%20but%20also%20pages%20by%20specifying%20its%20IDs%20on%20your%20theme%20templates.%20However%20if%20we%20want%20to%20multiple%20pages%20by%20using%20query_posts%2Cthe%20first%20thing%20we%20guess%20won%27t%20work%20but%20here%20how%20to%20" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html&amp;title=How%20to%20show%20multiple%20pages%20on%20one%20page" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20show%20multiple%20pages%20on%20one%20page%20-%20http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20show%20multiple%20pages%20on%20one%20page&amp;body=http%3A%2F%2Fwplondon.com%2Ftips%2Fshow-multiple-pages-page.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link How to show multiple pages on one page" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/voH0lNUUttA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/tips/show-multiple-pages-page.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wplondon.com/tips/show-multiple-pages-page.html</feedburner:origLink></item>
		<item>
		<title>How to fix More Fields 1.3 for Wordpress 2.9.1</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/DE8xSDxBcQw/fix-fields-13-wordpress-291.html</link>
		<comments>http://wplondon.com/tips/fix-fields-13-wordpress-291.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 14:35:33 +0000</pubDate>
		<dc:creator>Takashi Irie</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[more-fields]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=168</guid>
		<description><![CDATA[More fileds is very useful plugin but unfortunately the current version (1.3) has a problem and it&#8217;s reported as broken :( but here how to fix it!

Yes, it&#8217;s true, as soon as the plugin is activated, a lots of JavaScript function broke in the Wordpress backend. Fon instance, we can&#8217;t change permalink, can&#8217;t change publish [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2010/01/more-fields.jpg" alt="more fields How to fix More Fields 1.3 for Wordpress 2.9.1" title="more-fields" width="125" height="125" class="alignleft size-full wp-image-172" /><a href="http://wordpress.org/extend/plugins/more-fields/">More fileds</a> is very useful plugin but unfortunately the current version (1.3) has a problem and it&#8217;s reported as broken :( but here how to fix it!</p>
<p><span id="more-168"></span><br />
Yes, it&#8217;s true, as soon as the plugin is activated, a lots of JavaScript function broke in the Wordpress backend. Fon instance, we can&#8217;t change permalink, can&#8217;t change publish date, publish status..etc. Don&#8217;t worry, it&#8217;s easy to fix until the next version is released.</p>
<p>1. Find line 136 on &#8220;more-fields-object.php&#8221; in the plugin folder.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wp_default_scripts<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$scripts</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$src</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-content/plugins/more-fields/post.js'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$scripts</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">registered</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">src</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$src</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>2. swap &#8220;registerd&#8221; bit with &#8220;add_data&#8221; like below.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wp_default_scripts<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$scripts</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$src</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-content/plugins/more-fields/post.js'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$scripts</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add_data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">src</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$src</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Then everything working fine for now.<br />
Anyway, I really hope the plugin author fix this issue with the next version. </p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;title=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1&amp;bodytext=More%20fileds%20is%20very%20useful%20plugin%20but%20unfortunately%20the%20current%20version%20%281.3%29%20has%20a%20problem%20and%20it%27s%20reported%20as%20broken%20%3A%28%20but%20here%20how%20to%20fix%20it%21%0D%0A%0D%0A%0D%0AYes%2C%20it%27s%20true%2C%20as%20soon%20as%20the%20plugin%20is%20activated%2C%20a%20lots%20of%20JavaScript%20function%20broke%20in%20the%20Wor" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;title=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1&amp;notes=More%20fileds%20is%20very%20useful%20plugin%20but%20unfortunately%20the%20current%20version%20%281.3%29%20has%20a%20problem%20and%20it%27s%20reported%20as%20broken%20%3A%28%20but%20here%20how%20to%20fix%20it%21%0D%0A%0D%0A%0D%0AYes%2C%20it%27s%20true%2C%20as%20soon%20as%20the%20plugin%20is%20activated%2C%20a%20lots%20of%20JavaScript%20function%20broke%20in%20the%20Wor" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;t=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;title=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;title=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1&amp;annotation=More%20fileds%20is%20very%20useful%20plugin%20but%20unfortunately%20the%20current%20version%20%281.3%29%20has%20a%20problem%20and%20it%27s%20reported%20as%20broken%20%3A%28%20but%20here%20how%20to%20fix%20it%21%0D%0A%0D%0A%0D%0AYes%2C%20it%27s%20true%2C%20as%20soon%20as%20the%20plugin%20is%20activated%2C%20a%20lots%20of%20JavaScript%20function%20broke%20in%20the%20Wor" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;title=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=More%20fileds%20is%20very%20useful%20plugin%20but%20unfortunately%20the%20current%20version%20%281.3%29%20has%20a%20problem%20and%20it%27s%20reported%20as%20broken%20%3A%28%20but%20here%20how%20to%20fix%20it%21%0D%0A%0D%0A%0D%0AYes%2C%20it%27s%20true%2C%20as%20soon%20as%20the%20plugin%20is%20activated%2C%20a%20lots%20of%20JavaScript%20function%20broke%20in%20the%20Wor" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html&amp;title=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1%20-%20http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20fix%20More%20Fields%201.3%20for%20Wordpress%202.9.1&amp;body=http%3A%2F%2Fwplondon.com%2Ftips%2Ffix-fields-13-wordpress-291.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link How to fix More Fields 1.3 for Wordpress 2.9.1" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/DE8xSDxBcQw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/tips/fix-fields-13-wordpress-291.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://wplondon.com/tips/fix-fields-13-wordpress-291.html</feedburner:origLink></item>
		<item>
		<title>How to exclude categories from RSS feed</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/0_mhibQUhUM/exclude-categories-rss-feed.html</link>
		<comments>http://wplondon.com/tips/exclude-categories-rss-feed.html#comments</comments>
		<pubDate>Sun, 17 Jan 2010 23:22:12 +0000</pubDate>
		<dc:creator>Takashi Irie</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=159</guid>
		<description><![CDATA[Sometime we want to exclude some categories from RSS feeds, for instance, when we use Wordpress as CMS, or simply when we use some categories for admin purposes and so on. Don&#8217;t worry, it&#8217;s so easy to exclude specific category from your Wordpress feeds.

1. Let&#8217;s say your feed URL is&#8230;

http://yourdomain.com/feed

and find it in header.php in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2010/01/rss.jpg" alt="rss How to exclude categories from RSS feed" title="rss" width="125" height="125" class="alignleft size-full wp-image-160" />Sometime we want to exclude some categories from RSS feeds, for instance, when we use Wordpress as CMS, or simply when we use some categories for admin purposes and so on. Don&#8217;t worry, it&#8217;s so easy to exclude specific category from your Wordpress feeds.</p>
<p><span id="more-159"></span></p>
<p>1. Let&#8217;s say your feed URL is&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">http://yourdomain.com/feed</pre></div></div>

<p>and find it in header.php in your theme.</p>
<p>2. If you want to exclude a category whose ID is let&#8217;s say &#8220;5&#8243;, then you can do&#8230;.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">http://yourdomain.com/feed?cat=-5</pre></div></div>

<p>3. If you want to exclude another category whose ID is &#8220;10&#8243;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">http://yourdomain.com/feed?cat=-5&amp;cat=-10</pre></div></div>

<p>That&#8217;s it! Really easy isn&#8217;t it?</p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;title=How%20to%20exclude%20categories%20from%20WP+London%20feed&amp;bodytext=Sometime%20we%20want%20to%20exclude%20some%20categories%20from%20RSS%20feeds%2C%20for%20instance%2C%20when%20we%20use%20Wordpress%20as%20CMS%2C%20or%20simply%20when%20we%20use%20some%20categories%20for%20admin%20purposes%20and%20so%20on.%20Don%27t%20worry%2C%20it%27s%20so%20easy%20to%20exclude%20specific%20category%20from%20your%20Wordpress%20fee" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;title=How%20to%20exclude%20categories%20from%20WP+London%20feed&amp;notes=Sometime%20we%20want%20to%20exclude%20some%20categories%20from%20RSS%20feeds%2C%20for%20instance%2C%20when%20we%20use%20Wordpress%20as%20CMS%2C%20or%20simply%20when%20we%20use%20some%20categories%20for%20admin%20purposes%20and%20so%20on.%20Don%27t%20worry%2C%20it%27s%20so%20easy%20to%20exclude%20specific%20category%20from%20your%20Wordpress%20fee" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;t=How%20to%20exclude%20categories%20from%20WP+London%20feed" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;title=How%20to%20exclude%20categories%20from%20WP+London%20feed" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;title=How%20to%20exclude%20categories%20from%20WP+London%20feed&amp;annotation=Sometime%20we%20want%20to%20exclude%20some%20categories%20from%20RSS%20feeds%2C%20for%20instance%2C%20when%20we%20use%20Wordpress%20as%20CMS%2C%20or%20simply%20when%20we%20use%20some%20categories%20for%20admin%20purposes%20and%20so%20on.%20Don%27t%20worry%2C%20it%27s%20so%20easy%20to%20exclude%20specific%20category%20from%20your%20Wordpress%20fee" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;title=How%20to%20exclude%20categories%20from%20WP+London%20feed&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=Sometime%20we%20want%20to%20exclude%20some%20categories%20from%20RSS%20feeds%2C%20for%20instance%2C%20when%20we%20use%20Wordpress%20as%20CMS%2C%20or%20simply%20when%20we%20use%20some%20categories%20for%20admin%20purposes%20and%20so%20on.%20Don%27t%20worry%2C%20it%27s%20so%20easy%20to%20exclude%20specific%20category%20from%20your%20Wordpress%20fee" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html&amp;title=How%20to%20exclude%20categories%20from%20WP+London%20feed" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20exclude%20categories%20from%20WP+London%20feed%20-%20http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20exclude%20categories%20from%20WP+London%20feed&amp;body=http%3A%2F%2Fwplondon.com%2Ftips%2Fexclude-categories-rss-feed.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link How to exclude categories from RSS feed" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/0_mhibQUhUM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/tips/exclude-categories-rss-feed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wplondon.com/tips/exclude-categories-rss-feed.html</feedburner:origLink></item>
		<item>
		<title>Blogus, a Wordpress theme for travellers</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/apsLmHwIiOA/blogus-wordpress-theme-travellers.html</link>
		<comments>http://wplondon.com/themes/blogus-wordpress-theme-travellers.html#comments</comments>
		<pubDate>Sun, 25 Oct 2009 22:47:18 +0000</pubDate>
		<dc:creator>Maria</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[google map]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[travel blog]]></category>
		<category><![CDATA[travellers]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=130</guid>
		<description><![CDATA[Natty Wp has released a new Premium theme specially designed for travelers, Blogus.
The users can show their route using Google Map feature, add posts, photos, travel tips and be in touch with friends through every social media channel.

Some of the main features of the theme are:

Featured articles rotator lets you scroll the posts from Featured [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2009/10/blogus.jpg" alt="Blogus. Wordpress theme for travellers" title="Blogus. Wordpress theme for travellers" width="125" height="125" class="alignleft size-full wp-image-131" /><a href="http://www.nattywp.com/" target="_blank">Natty Wp</a> has released a new Premium theme specially designed for travelers, <a href="http://test.nattywp.com/preview.php?theme=blogus" target="_blank">Blogus</a>.</p>
<p>The users can show their route using Google Map feature, add posts, photos, travel tips and be in touch with friends through every social media channel.<br />
<span id="more-130"></span><br />
Some of the main features of the theme are:</p>
<ul>
<li>Featured articles rotator lets you scroll the posts from Featured category without refreshing the page.</li>
<li>NattyWP Google Map feature lets you add your travel map or current location.</li>
<li>Networks widget with all popular social networks. Stay connected.</li>
<li>A completely widgetized sidebar with custom widgets included in the theme packaging.</li>
<li>Completely CSS color controlled, offering you the most flexibility and the easiest customization, allowing you to change the colors of your entire site on the fly in seconds.</li>
<li>Amazing typography styles. <a href="http://test.nattywp.com/blogus/?p=268" target="_blank">Sample</a>.</li>
<li>8 custom NattyWP widgets.</li>
<li>4 different styles to choose from.</li>
</ul>
<p>The design is also quite nice. I&#8217;m not very fan of the background, but I think the content area has  a nice neat and clean design with a well cared typography. And the single theme package is just $25!</p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;title=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers&amp;bodytext=Natty%20Wp%20has%20released%20a%20new%20Premium%20theme%20specially%20designed%20for%20travelers%2C%20Blogus.%0D%0A%0D%0AThe%20users%20can%20show%20their%20route%20using%20Google%20Map%20feature%2C%20add%20posts%2C%20photos%2C%20travel%20tips%20and%20be%20in%20touch%20with%20friends%20through%20every%20social%20media%20channel.%0D%0A%0D%0ASome%20of" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;title=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers&amp;notes=Natty%20Wp%20has%20released%20a%20new%20Premium%20theme%20specially%20designed%20for%20travelers%2C%20Blogus.%0D%0A%0D%0AThe%20users%20can%20show%20their%20route%20using%20Google%20Map%20feature%2C%20add%20posts%2C%20photos%2C%20travel%20tips%20and%20be%20in%20touch%20with%20friends%20through%20every%20social%20media%20channel.%0D%0A%0D%0ASome%20of" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;t=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;title=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;title=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers&amp;annotation=Natty%20Wp%20has%20released%20a%20new%20Premium%20theme%20specially%20designed%20for%20travelers%2C%20Blogus.%0D%0A%0D%0AThe%20users%20can%20show%20their%20route%20using%20Google%20Map%20feature%2C%20add%20posts%2C%20photos%2C%20travel%20tips%20and%20be%20in%20touch%20with%20friends%20through%20every%20social%20media%20channel.%0D%0A%0D%0ASome%20of" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;title=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=Natty%20Wp%20has%20released%20a%20new%20Premium%20theme%20specially%20designed%20for%20travelers%2C%20Blogus.%0D%0A%0D%0AThe%20users%20can%20show%20their%20route%20using%20Google%20Map%20feature%2C%20add%20posts%2C%20photos%2C%20travel%20tips%20and%20be%20in%20touch%20with%20friends%20through%20every%20social%20media%20channel.%0D%0A%0D%0ASome%20of" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html&amp;title=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers%20-%20http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Blogus%2C%20a%20Wordpress%20theme%20for%20travellers&amp;body=http%3A%2F%2Fwplondon.com%2Fthemes%2Fblogus-wordpress-theme-travellers.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link Blogus, a Wordpress theme for travellers" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/apsLmHwIiOA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/themes/blogus-wordpress-theme-travellers.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wplondon.com/themes/blogus-wordpress-theme-travellers.html</feedburner:origLink></item>
		<item>
		<title>How to add span tag into category or page navigation</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/LPh-fAVwkHY/add-span-tag-category-page-navigation.html</link>
		<comments>http://wplondon.com/tutorials/add-span-tag-category-page-navigation.html#comments</comments>
		<pubDate>Sun, 25 Oct 2009 22:35:34 +0000</pubDate>
		<dc:creator>Takashi Irie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Rounded Corner]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[wp_list_categories]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=142</guid>
		<description><![CDATA[We like to use rounded corners to highlight navigation using CSS sliding doors technique, don&#8217;t we?
To achieve this, each navigation item would need to be sorrounded by span tag. When we hard-code the navigation it&#8217;s not a problem, but when we have to use wp_list_categories or wp_list_pages, it&#8217;s becoming a problem.

However, this snippet adds  [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2009/10/thumbnails.gif" alt="thumbnails How to add span tag into category or page navigation" title="thumbnails" width="125" height="125" class="alignleft size-full wp-image-143" />We like to use rounded corners to highlight navigation using CSS sliding doors technique, don&#8217;t we?</p>
<p>To achieve this, each navigation item would need to be sorrounded by span tag. When we hard-code the navigation it&#8217;s not a problem, but when we have to use <strong>wp_list_categories</strong> or <strong>wp_list_pages</strong>, it&#8217;s becoming a problem.<br />
<span id="more-142"></span><br />
However, this snippet adds <span> tag inside list item. You can just paste this into your header.php or a template files where you want to show navigation.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
	<span style="color: #b1b100;">echo</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@\&lt;li([^&gt;]*)&gt;\&lt;a([^&gt;]*)&gt;(.*?)\&lt;\/a&gt;@i'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;li$1&gt;&lt;a$2&gt;&lt;span&gt;$3&lt;/span&gt;&lt;/a&gt;'</span><span style="color: #339933;">,</span>wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'echo=0&amp;orderby=id&amp;title_li=&amp;depth=1'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Of course you can use this for page navigation too, you just swap <strong>wp_list_categories</strong> with <strong>wp_list_pages</strong>.</p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;title=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation&amp;bodytext=We%20like%20to%20use%20rounded%20corners%20to%20highlight%20navigation%20using%20CSS%20sliding%20doors%20technique%2C%20don%27t%20we%3F%0D%0A%0D%0ATo%20achieve%20this%2C%20each%20navigation%20item%20would%20need%20to%20be%20sorrounded%20by%20span%20tag.%20When%20we%20hard-code%20the%20navigation%20it%27s%20not%20a%20problem%2C%20but%20when%20we%20hav" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;title=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation&amp;notes=We%20like%20to%20use%20rounded%20corners%20to%20highlight%20navigation%20using%20CSS%20sliding%20doors%20technique%2C%20don%27t%20we%3F%0D%0A%0D%0ATo%20achieve%20this%2C%20each%20navigation%20item%20would%20need%20to%20be%20sorrounded%20by%20span%20tag.%20When%20we%20hard-code%20the%20navigation%20it%27s%20not%20a%20problem%2C%20but%20when%20we%20hav" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;t=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;title=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;title=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation&amp;annotation=We%20like%20to%20use%20rounded%20corners%20to%20highlight%20navigation%20using%20CSS%20sliding%20doors%20technique%2C%20don%27t%20we%3F%0D%0A%0D%0ATo%20achieve%20this%2C%20each%20navigation%20item%20would%20need%20to%20be%20sorrounded%20by%20span%20tag.%20When%20we%20hard-code%20the%20navigation%20it%27s%20not%20a%20problem%2C%20but%20when%20we%20hav" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;title=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=We%20like%20to%20use%20rounded%20corners%20to%20highlight%20navigation%20using%20CSS%20sliding%20doors%20technique%2C%20don%27t%20we%3F%0D%0A%0D%0ATo%20achieve%20this%2C%20each%20navigation%20item%20would%20need%20to%20be%20sorrounded%20by%20span%20tag.%20When%20we%20hard-code%20the%20navigation%20it%27s%20not%20a%20problem%2C%20but%20when%20we%20hav" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html&amp;title=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation%20-%20http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20add%20span%20tag%20into%20category%20or%20page%20navigation&amp;body=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fadd-span-tag-category-page-navigation.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link How to add span tag into category or page navigation" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/LPh-fAVwkHY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/tutorials/add-span-tag-category-page-navigation.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://wplondon.com/tutorials/add-span-tag-category-page-navigation.html</feedburner:origLink></item>
		<item>
		<title>Weekly review of the best Wordpress plugins and themes</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/VVVY51uYh-s/wordpress-discoveries-week.html</link>
		<comments>http://wplondon.com/plugins/wordpress-discoveries-week.html#comments</comments>
		<pubDate>Sun, 18 Oct 2009 19:33:53 +0000</pubDate>
		<dc:creator>Maria</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=114</guid>
		<description><![CDATA[My Wordpress discoveries of the week.
 This week I&#8217;ve been working on three different Wordpress sites, and as usual, I have a bunch of new Wordpress &#8216;magic tricks&#8217; :)

Twittar.
A plugin that Loads user’s avatar by matching the email address to the user’s Twitter email address. If user doesn’t have a Twitter account, it first tries [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-115" title="My Wordpress discoveries of the week" src="http://wplondon.com/wp-content/uploads/2009/10/wp_oct2.jpg" alt="My Wordpress discoveries of the week" width="125" height="125" /><b>My Wordpress discoveries of the week.</b></p>
<p> This week I&#8217;ve been working on three different Wordpress sites, and as usual, I have a bunch of new Wordpress &#8216;magic tricks&#8217; :)</p>
<p><span id="more-114"></span></p>
<p><strong>Twittar.</strong><br />
A plugin that Loads user’s avatar by matching the email address to the user’s Twitter email address. If user doesn’t have a Twitter account, it first tries to load user’s gravatar. If user doesn’t have a gravatar, it loads a default image.<br /><a href="http://www.smashingmagazine.com/2009/01/08/twitter-avatars-in-comments-wordpress-plugin/" target="_blank"></p>
<p>http://www.smashingmagazine.com/2009/01/08/twitter-avatars-in-comments-wordpress-plugin/</a><strong></strong></p>
<p><strong>Tweet Blender.</strong><br />
Another Wordpress Twitter widget but with support for for multiple authors, hashtags, and keywords all blended together.  It can also show tweets for multiple authors AND multiple keywords AND multiple hashtags all blended together into a single stream.<br /><a href="http://kirill-novitchenko.com/tweet-blender/" target="_blank"></p>
<p>http://kirill-novitchenko.com/tweet-blender/</a><strong></strong></p>
<p><strong>Cimy user extra fields</strong><br />
A plugin that allows us to create extra fields in the user profile registration page. This means we will be able to display dynamically any kind of information we want about our users.<br /><a href="http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/" target="_blank">http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/</a></p>
<p><strong>Video comments.</strong><br />
I know it&#8217;s a controversial plugin but it takes the online conversation to an even more interactive and engaging level by allowing readers to add a video or audio comment from their own web cam. It also works perfectly!<br /><a href="http://riffly.com/" target="_blank"></p>
<p>http://riffly.com/</a></p>
<p>I also found stumbling an old but yet very useful post with an awesome list of Free Wordpress themes in Smashing Magazines.<br /><a href="http://www.smashingmagazine.com/2009/05/18/100-amazing-free-wordpress-themes-for-2009/" target="_blank"></p>
<p>http://www.smashingmagazine.com/2009/05/18/100-amazing-free-wordpress-themes-for-2009/</a></p>
<p>Have a nice week!</p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;title=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes&amp;bodytext=My%20Wordpress%20discoveries%20of%20the%20week.%20This%20week%20I%27ve%20been%20working%20on%20three%20different%20Wordpress%20sites%2C%20and%20as%20usual%2C%20I%20have%20a%20bunch%20of%20new%20Wordpress%20%27magic%20tricks%27%20%3A%29%0D%0A%0D%0A%0D%0A%0D%0ATwittar.%0D%0AA%20plugin%20that%20Loads%20user%E2%80%99s%20avatar%20by%20matching%20the%20email%20address%20t" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;title=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes&amp;notes=My%20Wordpress%20discoveries%20of%20the%20week.%20This%20week%20I%27ve%20been%20working%20on%20three%20different%20Wordpress%20sites%2C%20and%20as%20usual%2C%20I%20have%20a%20bunch%20of%20new%20Wordpress%20%27magic%20tricks%27%20%3A%29%0D%0A%0D%0A%0D%0A%0D%0ATwittar.%0D%0AA%20plugin%20that%20Loads%20user%E2%80%99s%20avatar%20by%20matching%20the%20email%20address%20t" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;t=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;title=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;title=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes&amp;annotation=My%20Wordpress%20discoveries%20of%20the%20week.%20This%20week%20I%27ve%20been%20working%20on%20three%20different%20Wordpress%20sites%2C%20and%20as%20usual%2C%20I%20have%20a%20bunch%20of%20new%20Wordpress%20%27magic%20tricks%27%20%3A%29%0D%0A%0D%0A%0D%0A%0D%0ATwittar.%0D%0AA%20plugin%20that%20Loads%20user%E2%80%99s%20avatar%20by%20matching%20the%20email%20address%20t" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;title=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=My%20Wordpress%20discoveries%20of%20the%20week.%20This%20week%20I%27ve%20been%20working%20on%20three%20different%20Wordpress%20sites%2C%20and%20as%20usual%2C%20I%20have%20a%20bunch%20of%20new%20Wordpress%20%27magic%20tricks%27%20%3A%29%0D%0A%0D%0A%0D%0A%0D%0ATwittar.%0D%0AA%20plugin%20that%20Loads%20user%E2%80%99s%20avatar%20by%20matching%20the%20email%20address%20t" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html&amp;title=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes%20-%20http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Weekly%20review%20of%20the%20best%20Wordpress%20plugins%20and%20themes&amp;body=http%3A%2F%2Fwplondon.com%2Fplugins%2Fwordpress-discoveries-week.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link Weekly review of the best Wordpress plugins and themes" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/VVVY51uYh-s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/plugins/wordpress-discoveries-week.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wplondon.com/plugins/wordpress-discoveries-week.html</feedburner:origLink></item>
		<item>
		<title>How to limit the characters on post title</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/oZgH1yuSzY0/limit-characters-post-title.html</link>
		<comments>http://wplondon.com/tutorials/limit-characters-post-title.html#comments</comments>
		<pubDate>Sat, 10 Oct 2009 03:22:20 +0000</pubDate>
		<dc:creator>Takashi Irie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Recipes]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=91</guid>
		<description><![CDATA[Sometime, especially news type of contents, titles of post can be long and mess your neat layout. This is how to limit the post titles.

1. Copy and paste this code in your function.php

&#60;?php
function limit_title&#40;$title, $n&#41;&#123;
	if &#40; strlen &#40;$title&#41; &#62; $n &#41;&#123;
		echo substr&#40;the_title&#40;$before = ”, $after = ”, FALSE&#41;, 0, $n&#41; . ‘…’;
	&#125;else&#123; 
		the_title&#40;&#41;;
	&#125;
&#125;
?&#62;

2. To use [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2009/10/thumb.gif" alt="thumb How to limit the characters on post title" title="thumb" width="125" height="125" class="alignleft size-full wp-image-92" />Sometime, especially news type of contents, titles of post can be long and mess your neat layout. This is how to limit the post titles.<span id="more-91"></span><br />
<br class="clear"/><br />
1. Copy and paste this code in your function.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> limit_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #339933;">,</span> <span style="color: #000088;">$n</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">strlen</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #000088;">$n</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span>the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$before</span> <span style="color: #339933;">=</span> ”<span style="color: #339933;">,</span> <span style="color: #000088;">$after</span> <span style="color: #339933;">=</span> ”<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$n</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> ‘…’<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span> 
		the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>2. To use this function simply change the number of characters and paste it to your template file in where you want to limit the characters on post title.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> limit_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">30</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><b>Thanks to <a href="http://www.wpgeek.com/2009/07/limit-post-title/" target="_blank">WP Geek</a> for this code</b></p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;title=How%20to%20limit%20the%20characters%20on%20post%20title&amp;bodytext=Sometime%2C%20especially%20news%20type%20of%20contents%2C%20titles%20of%20post%20can%20be%20long%20and%20mess%20your%20neat%20layout.%20This%20is%20how%20to%20limit%20the%20post%20titles.%0D%0A%0D%0A1.%20Copy%20and%20paste%20this%20code%20in%20your%20function.php%0D%0A%0D%0A%0D%0A%0D%0A2.%20To%20use%20this%20function%20simply%20change%20the%20number%20of%20cha" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;title=How%20to%20limit%20the%20characters%20on%20post%20title&amp;notes=Sometime%2C%20especially%20news%20type%20of%20contents%2C%20titles%20of%20post%20can%20be%20long%20and%20mess%20your%20neat%20layout.%20This%20is%20how%20to%20limit%20the%20post%20titles.%0D%0A%0D%0A1.%20Copy%20and%20paste%20this%20code%20in%20your%20function.php%0D%0A%0D%0A%0D%0A%0D%0A2.%20To%20use%20this%20function%20simply%20change%20the%20number%20of%20cha" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;t=How%20to%20limit%20the%20characters%20on%20post%20title" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;title=How%20to%20limit%20the%20characters%20on%20post%20title" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;title=How%20to%20limit%20the%20characters%20on%20post%20title&amp;annotation=Sometime%2C%20especially%20news%20type%20of%20contents%2C%20titles%20of%20post%20can%20be%20long%20and%20mess%20your%20neat%20layout.%20This%20is%20how%20to%20limit%20the%20post%20titles.%0D%0A%0D%0A1.%20Copy%20and%20paste%20this%20code%20in%20your%20function.php%0D%0A%0D%0A%0D%0A%0D%0A2.%20To%20use%20this%20function%20simply%20change%20the%20number%20of%20cha" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;title=How%20to%20limit%20the%20characters%20on%20post%20title&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=Sometime%2C%20especially%20news%20type%20of%20contents%2C%20titles%20of%20post%20can%20be%20long%20and%20mess%20your%20neat%20layout.%20This%20is%20how%20to%20limit%20the%20post%20titles.%0D%0A%0D%0A1.%20Copy%20and%20paste%20this%20code%20in%20your%20function.php%0D%0A%0D%0A%0D%0A%0D%0A2.%20To%20use%20this%20function%20simply%20change%20the%20number%20of%20cha" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html&amp;title=How%20to%20limit%20the%20characters%20on%20post%20title" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20limit%20the%20characters%20on%20post%20title%20-%20http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20limit%20the%20characters%20on%20post%20title&amp;body=http%3A%2F%2Fwplondon.com%2Ftutorials%2Flimit-characters-post-title.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link How to limit the characters on post title" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/oZgH1yuSzY0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/tutorials/limit-characters-post-title.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://wplondon.com/tutorials/limit-characters-post-title.html</feedburner:origLink></item>
		<item>
		<title>How to exclude specific categories from the_category()</title>
		<link>http://feedproxy.google.com/~r/wplondon/~3/VJ3StS97nHs/exclude-specific-categories-thecategory.html</link>
		<comments>http://wplondon.com/tutorials/exclude-specific-categories-thecategory.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 01:19:25 +0000</pubDate>
		<dc:creator>Takashi Irie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://wplondon.com/?p=66</guid>
		<description><![CDATA[The templates tag, the_category(), is very handy to output all categories to which a post belongs. However, sometimes, we don&#8217;t want to show the all cateogries when we use some categories for admin purposes. For example, the popular plugin, Featured Content Gallery requires you to specify a category for the featured content and you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wplondon.com/wp-content/uploads/2009/10/code.gif" alt="code How to exclude specific categories from the category()" title="code" width="125" height="125" class="alignleft size-full wp-image-82" />The templates tag, the_category(), is very handy to output all categories to which a post belongs. However, sometimes, we don&#8217;t want to show the all cateogries when we use some categories for admin purposes. For example, the popular plugin, <a href="http://www.featuredcontentgallery.com/" target="_blank">Featured Content Gallery</a> requires you to specify a category for the featured content and you don&#8217;t want to show the featured content category in the list, and so on.<br />
<span id="more-66"></span></p>
<p>1. Paste this code in your theme&#8217;s function.php, and change &#8216;FirstCat&#8217; and &#8216;SecondCat&#8217; to category names that you want to exclude from the list.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> incomplete_cat_list<span style="color: #009900;">&#40;</span><span style="color: #000088;">$separator</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$first_time</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
  	<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$category</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cat_name</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'FirstCat'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cat_name</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'SecondCat'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$first_time</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> get_category_link<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">term_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; title=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;View all posts in <span style="color: #009933; font-weight: bold;">%s</span>&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span>  <span style="color: #339933;">.</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
        		<span style="color: #000088;">$first_time</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
      		<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$separator</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> get_category_link<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">term_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; title=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;View all posts in <span style="color: #009933; font-weight: bold;">%s</span>&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
      		<span style="color: #009900;">&#125;</span>
    	<span style="color: #009900;">&#125;</span>
  	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>2. To use this function, istead of using the_category(); paste this code in your index.php or single.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> incomplete_cat_list<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><b>Thanks to <a href="http://www.technokinetics.com/exclude-categories-from-the_category/" target="_blank">Technokinetics</a> for this great piece of code.</b></p>



Enjoyed this post? Share it!


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;title=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29&amp;bodytext=The%20templates%20tag%2C%20the_category%28%29%2C%20is%20very%20handy%20to%20output%20all%20categories%20to%20which%20a%20post%20belongs.%20However%2C%20sometimes%2C%20we%20don%27t%20want%20to%20show%20the%20all%20cateogries%20when%20we%20use%20some%20categories%20for%20admin%20purposes.%20For%20example%2C%20the%20popular%20plugin%2C%20Featured%20" title="Digg"><img src="http://wplondon.com/wp-content/themes/typebased/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;title=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29&amp;notes=The%20templates%20tag%2C%20the_category%28%29%2C%20is%20very%20handy%20to%20output%20all%20categories%20to%20which%20a%20post%20belongs.%20However%2C%20sometimes%2C%20we%20don%27t%20want%20to%20show%20the%20all%20cateogries%20when%20we%20use%20some%20categories%20for%20admin%20purposes.%20For%20example%2C%20the%20popular%20plugin%2C%20Featured%20" title="del.icio.us"><img src="http://wplondon.com/wp-content/themes/typebased/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;t=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29" title="Facebook"><img src="http://wplondon.com/wp-content/themes/typebased/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;title=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29" title="Mixx"><img src="http://wplondon.com/wp-content/themes/typebased/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;title=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29&amp;annotation=The%20templates%20tag%2C%20the_category%28%29%2C%20is%20very%20handy%20to%20output%20all%20categories%20to%20which%20a%20post%20belongs.%20However%2C%20sometimes%2C%20we%20don%27t%20want%20to%20show%20the%20all%20cateogries%20when%20we%20use%20some%20categories%20for%20admin%20purposes.%20For%20example%2C%20the%20popular%20plugin%2C%20Featured%20" title="Google Bookmarks"><img src="http://wplondon.com/wp-content/themes/typebased/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;title=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29&amp;source=WP+London+Tips%2C+Themes%2C+Tutorials%2C+everything+about+Wordpress&amp;summary=The%20templates%20tag%2C%20the_category%28%29%2C%20is%20very%20handy%20to%20output%20all%20categories%20to%20which%20a%20post%20belongs.%20However%2C%20sometimes%2C%20we%20don%27t%20want%20to%20show%20the%20all%20cateogries%20when%20we%20use%20some%20categories%20for%20admin%20purposes.%20For%20example%2C%20the%20popular%20plugin%2C%20Featured%20" title="LinkedIn"><img src="http://wplondon.com/wp-content/themes/typebased/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html&amp;title=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29" title="StumbleUpon"><img src="http://wplondon.com/wp-content/themes/typebased/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29%20-%20http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html" title="Twitter"><img src="http://wplondon.com/wp-content/themes/typebased/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20exclude%20specific%20categories%20from%20the_category%28%29&amp;body=http%3A%2F%2Fwplondon.com%2Ftutorials%2Fexclude-specific-categories-thecategory.html" title="email"><img src="http://wplondon.com/wp-content/themes/typebased/images/email_link.png" title="email" alt="email link How to exclude specific categories from the category()" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://wplondon.com/feed" title="RSS"><img src="http://wplondon.com/wp-content/themes/typebased/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://feeds.feedburner.com/~r/wplondon/~4/VJ3StS97nHs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wplondon.com/tutorials/exclude-specific-categories-thecategory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wplondon.com/tutorials/exclude-specific-categories-thecategory.html</feedburner:origLink></item>
	</channel>
</rss>

