<?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>WpFunc &#187; categories</title>
	<atom:link href="http://wpfunc.com/tag/categories/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Best Of 2009!</title>
		<link>http://wpfunc.com/collections/best-of-2009.html</link>
		<comments>http://wpfunc.com/collections/best-of-2009.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 23:02:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Collections]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[easy life]]></category>
		<category><![CDATA[funcitons]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[old posts]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[share on facebook]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=349</guid>
		<description><![CDATA[I collect 5 Best WordPress Tricks For You. We make upgrades but sometimes our servers can&#8217;t support our changes. Let&#8217;s Begin with this tricks!
Here is the List Of Best ones!
5. How to Modify List Like Categories and Blogroll in WordPress (Wp Recipes)
http://www.wprecipes.com/how-to-modify-lists-like-categories-and-blogroll-in-wordpress 
4. 10 More WordPress Hacks for Easy Life
http://www.blogohblog.com/10-more-wordpress-hacks-for-easy-life/
3. WordPress 2.9: Display Post İmage [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I collect 5 Best WordPress Tricks For You. We make upgrades but sometimes our servers can&#8217;t support our changes. Let&#8217;s Begin with this tricks!<span id="more-349"></span></p>
<h3>Here is the List Of Best ones!</h3>
<p><strong>5.</strong> How to Modify List Like Categories and Blogroll in WordPress (Wp Recipes)</p>
<p><a href="http://www.wprecipes.com/how-to-modify-lists-like-categories-and-blogroll-in-wordpress">http://www.wprecipes.com/how-to-modify-lists-like-categories-and-blogroll-in-wordpress</a><strong> </strong></p>
<p><strong>4.</strong> 10 More WordPress Hacks for Easy Life</p>
<p><a href="http://www.blogohblog.com/10-more-wordpress-hacks-for-easy-life/">http://www.blogohblog.com/10-more-wordpress-hacks-for-easy-life/</a><strong></strong></p>
<p><strong>3. </strong>WordPress 2.9: Display Post İmage With Backward Compability</p>
<p><a href="http://www.wprecipes.com/wordpress-2-9-display-post-image-with-backward-compatibility">http://www.wprecipes.com/wordpress-2-9-display-post-image-with-backward-compatibility</a></p>
<p><strong>2. </strong>Show Your Ads On Only Old Posts</p>
<p><a href="http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html">http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html</a></p>
<p><strong>1. </strong>Add a Share On Facebook Button Without any Plugin</p>
<p><a href="http://www.wpfunc.com/wordpress/add-a-share-on-facebook-button-without-any-plugin.html">http://www.wpfunc.com/wordpress/add-a-share-on-facebook-button-without-any-plugin.html</a></p>
<p>Have a Happy Year! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/collections/best-of-2009.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show your categories in two Columns!</title>
		<link>http://wpfunc.com/wordpress/show-your-categories-in-two-columns.html</link>
		<comments>http://wpfunc.com/wordpress/show-your-categories-in-two-columns.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 17:47:09 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[categories in two columns]]></category>
		<category><![CDATA[else]]></category>
		<category><![CDATA[elseif]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[sidebar.php]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=228</guid>
		<description><![CDATA[I said about if and else with two or more single.php article. Also you can use this simple functions on your categories. You can show your categories in two columns. This a simple code and you can apply it only copy/paste :)
Here is the code;
We use wp_list_categories(); function when we calling our categories. But if [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I said about if and else with <a href="http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html" target="_blank">two or more single.php</a> article. Also you can use this simple functions on your categories. You can show your categories in two columns. This a simple code and you can apply it only copy/paste :)<span id="more-228"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">We use <em><strong>wp_list_categories</strong><strong>();</strong></em> function when we calling our categories. But if we change this function we can change our category listing. Just copy and paste this function in your <span style="color: #ff0000;"><em><strong>sidebar.php</strong></em></span> file and show your categories in two columns.</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php
$cats = explode(&quot;&lt;br /&gt;&quot;,wp_list_categories('title_li=&amp;echo=0&amp;depth=1&amp;style=none'));
$cat_n = count($cats) - 1;
for ($i=0;$i&lt;$cat_n;$i++):
if ($i&lt;$cat_n/2):
$cat_left = $cat_left.'&lt;li&gt;'.$cats[$i].'&lt;/li&gt;';
elseif ($i&gt;=$cat_n/2):
$cat_right = $cat_right.'&lt;li&gt;'.$cats[$i].'&lt;/li&gt;';
endif;
endfor;
?&gt;
&lt;ul class=&quot;left&quot;&gt;
&lt;?php echo $cat_left;?&gt;
&lt;/ul&gt;
&lt;ul class=&quot;right&quot;&gt;
&lt;?php echo $cat_right;?&gt;
&lt;/ul&gt;</pre>
<p style="text-align: justify;">After that we have to change our <em><strong>style.css</strong></em> for <em><strong><span style="color: #ff0000;">left</span></strong></em> and<em><strong><span style="color: #ff0000;"> right</span></strong></em> terms. her is the code;</p>
<pre class="brush: css; title: ; notranslate">.right {float:left; width:140px;}
.left {float:left; width:140px;}</pre>
<p style="text-align: justify;">That&#8217;s All. Have a nice day!</p>
<p style="text-align: justify;">The Original Post: <em><strong><a href="http://www.blogohblog.com/10-wordpress-hacks-to-make-your-life-even-easier/" target="_blank">Blog-Oh-Blog</a></strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/show-your-categories-in-two-columns.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use Two or More Single.php</title>
		<link>http://wpfunc.com/wordpress/use-two-or-more-single-php.html</link>
		<comments>http://wpfunc.com/wordpress/use-two-or-more-single-php.html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 23:32:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[core file]]></category>
		<category><![CDATA[else]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[single.php]]></category>
		<category><![CDATA[vectorss]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=19</guid>
		<description><![CDATA[In WordPress, we can use only one single.php. But sometimes we need different single pages for different categories. Also my friend Hakan needs 2 different single.php for his site. We build a blog page for his Vectorss site but we had a problem with ads and published pictures. We have to change this single pages. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In WordPress, we can use only one single.php. But sometimes we need different single pages for different categories. Also my friend Hakan needs 2 different single.php for his site. We build a blog page for his <a href="http://www.vectorss.com" target="_blank">Vectorss</a> site but we had a problem with ads and published pictures. We have to change this single pages. After this problem, i was search and found a litte information about this problem. In this information there is a sentence like this &#8220;<em>You can solve this problem with if and else</em>&#8220;. I think about this  and i write some function. It&#8217;s Worked!<span id="more-19"></span><span class="attention"><strong>With this function/recipe you will change your core single.php file. If you have no information about WordPress coding -so you&#8217;re a newbie- you can get some support if you send a mail to me. Don&#8217;t touch your single.php if you don&#8217;t know about WordPress</strong></span></p>
<h3 style="text-align: justify;">Yep, lets start!</h3>
<p style="text-align: justify;">We cnahge our core single.php also you have to make a back-up this file. And you have to make 2 copy of this core file,  and <em><strong>single-blog.php</strong><strong>single-default.php</strong></em> (<em>single-default is a copy of our core file</em>). And upload these 2 files to your host (in template folder). After that, open your single.php on your server (with a ftp program ex: CuteFtp) and clean all code in this file and add this codes to single.php ;</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
$post = $wp_query-&gt;post;
if ( in_category('3') ) {
 include(TEMPLATEPATH . '/single-blog.php'); }
 else { include(TEMPLATEPATH . '/single-default.php');
}
?&gt;</pre>
<p style="text-align: justify;">We make a duplicate with this code. But we give a special command to this code. With If, we said to code &#8220;<em>if we click a post in category 3 you have to call single-blog.php to us</em>&#8220;. If we get a normal category post, our core single.php call single-default.php to us. After this code our core single.php will be a tunnel page for us.</p>
<p style="text-align: justify;">And if you wanna make more single pages for your different categories you can duplicate this code.</p>
<h3>Here is the second code:</h3>
<pre class="brush: plain; title: ; notranslate">&lt;?php
$post = $wp_query-&gt;post;
if ( in_category('3') ) {
include(TEMPLATEPATH . '/single-blog.php'); }
elseif ( in_category('15') ) {
include(TEMPLATEPATH . '/single-foto.php'); }
elseif ( in_category('18') ) {
include(TEMPLATEPATH . '/single-video.php'); }
else { include(TEMPLATEPATH . '/single-default.php');
}
?&gt;</pre>
<p>Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/use-two-or-more-single-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

