<?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; else</title>
	<atom:link href="http://www.wpfunc.com/tag/else/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Show your categories in two Columns!</title>
		<link>http://www.wpfunc.com/wordpress/show-your-categories-in-two-columns.html</link>
		<comments>http://www.wpfunc.com/wordpress/show-your-categories-in-two-columns.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 17:47:09 +0000</pubDate>
		<dc:creator>KaiseRCrazY</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 [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html' rel='bookmark' title='Permanent Link: How to make a magazin style wordpress dropdown menu?'>How to make a magazin style wordpress dropdown menu?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html' rel='bookmark' title='Permanent Link: Use Two or More Single.php'>Use Two or More Single.php</a></li>
<li><a href='http://www.wpfunc.com/wordpress/list-your-rss-feeds-via-wp-list-category.html' rel='bookmark' title='Permanent Link: List Your RSS Feeds via wp_list_category'>List Your RSS Feeds via wp_list_category</a></li>
</ol>]]></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;">&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;">.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>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;title=Show%20your%20categories%20in%20two%20Columns%21&amp;notes=I%20said%20about%20if%20and%20else%20with%20two%20or%20more%20single.php%20article.%20Also%20you%20can%20use%20this%20simple%20functions%20on%20your%20categories.%20You%20can%20show%20your%20categories%20in%20two%20columns.%20This%20a%20simple%20code%20and%20you%20can%20apply%20it%20only%20copy%2Fpaste%20%3A%29%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AWe%20'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;title=Show%20your%20categories%20in%20two%20Columns%21&amp;bodytext=I%20said%20about%20if%20and%20else%20with%20two%20or%20more%20single.php%20article.%20Also%20you%20can%20use%20this%20simple%20functions%20on%20your%20categories.%20You%20can%20show%20your%20categories%20in%20two%20columns.%20This%20a%20simple%20code%20and%20you%20can%20apply%20it%20only%20copy%2Fpaste%20%3A%29%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AWe%20'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;t=Show%20your%20categories%20in%20two%20Columns%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Show%20your%20categories%20in%20two%20Columns%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;title=Show%20your%20categories%20in%20two%20Columns%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;title=Show%20your%20categories%20in%20two%20Columns%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-categories-in-two-columns.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html' rel='bookmark' title='Permanent Link: How to make a magazin style wordpress dropdown menu?'>How to make a magazin style wordpress dropdown menu?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html' rel='bookmark' title='Permanent Link: Use Two or More Single.php'>Use Two or More Single.php</a></li>
<li><a href='http://www.wpfunc.com/wordpress/list-your-rss-feeds-via-wp-list-category.html' rel='bookmark' title='Permanent Link: List Your RSS Feeds via wp_list_category'>List Your RSS Feeds via wp_list_category</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/show-your-categories-in-two-columns.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Add Author Name to Author Archive</title>
		<link>http://www.wpfunc.com/wordpress/how-to-add-author-name-to-author-archive.html</link>
		<comments>http://www.wpfunc.com/wordpress/how-to-add-author-name-to-author-archive.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 17:00:47 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[else]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=41</guid>
		<description><![CDATA[Hi everybody. Yes we will add author name to archive, admin/editor/publisher archive pages show their name like &#8220;Author archive for (author name)&#8221;. Lets begin&#8230;
First, open your archive.php from your theme folder. This is a sample code, it can be different in your theme.
Find
&#60; ?php /* If this is an author archive */ } elseif (is_author()) [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/automatically-insert-authors-bio-on-each-post.html' rel='bookmark' title='Permanent Link: Automatically Insert Author&#8217;s Bio on each post'>Automatically Insert Author&#8217;s Bio on each post</a></li>
<li><a href='http://www.wpfunc.com/wordpress/highlight-the-author-comments.html' rel='bookmark' title='Permanent Link: Highlight the Author Comments!'>Highlight the Author Comments!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/detect-user-browser-and-apply-a-stylesheet.html' rel='bookmark' title='Permanent Link: Detect User Browser And Apply A StyleSheet'>Detect User Browser And Apply A StyleSheet</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hi everybody. Yes we will add author name to archive, admin/editor/publisher archive pages show their name like &#8220;Author archive for (author name)&#8221;. Lets begin&#8230;<span id="more-41"></span></p>
<p style="text-align: justify;">First, open your <span style="color: #ff0000;"><strong><em>archive.php</em></strong></span> from your theme folder. This is a sample code, it can be different in your theme.</p>
<h3>Find</h3>
<pre class="brush: plain;">&lt; ?php /* If this is an author archive */ } elseif (is_author()) { ?&gt;
&lt;h2&gt;Author Archive for&lt;/h2&gt;</pre>
<h3>And replace with;</h3>
<pre class="brush: plain;">&lt; ?php /* If this is an author archive */ } elseif (is_author()) { ?&gt;
&lt; ?php $author = get_userdata( get_query_var('author') );?&gt;
&lt;h2&gt;Author Archive for &lt; ?php echo $author-&gt;display_name;?&gt;&lt;/h2&gt;</pre>
<p style="text-align: justify;">After you apply this code the author archive page title will change like &#8220;<strong>Archive for (author name)</strong>&#8220;.</p>
<p style="text-align: justify;">That code different in my theme. If you click my avatar in the bottom of this post, you call my author archive page and again you can see author name in the bottom of  page.</p>
<p>That&#8217;s All! Have a nice day!</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;title=How%20to%20Add%20Author%20Name%20to%20Author%20Archive&amp;notes=Hi%20everybody.%20Yes%20we%20will%20add%20author%20name%20to%20archive%2C%20admin%2Feditor%2Fpublisher%20archive%20pages%20show%20their%20name%20like%20%22Author%20archive%20for%20%28author%20name%29%22.%20Lets%20begin...%0D%0AFirst%2C%20open%20your%20archive.php%20from%20your%20theme%20folder.%20This%20is%20a%20sample%20code%2C%20it%20can%20be%20d'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;title=How%20to%20Add%20Author%20Name%20to%20Author%20Archive&amp;bodytext=Hi%20everybody.%20Yes%20we%20will%20add%20author%20name%20to%20archive%2C%20admin%2Feditor%2Fpublisher%20archive%20pages%20show%20their%20name%20like%20%22Author%20archive%20for%20%28author%20name%29%22.%20Lets%20begin...%0D%0AFirst%2C%20open%20your%20archive.php%20from%20your%20theme%20folder.%20This%20is%20a%20sample%20code%2C%20it%20can%20be%20d'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;t=How%20to%20Add%20Author%20Name%20to%20Author%20Archive'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=How%20to%20Add%20Author%20Name%20to%20Author%20Archive&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;title=How%20to%20Add%20Author%20Name%20to%20Author%20Archive'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;title=How%20to%20Add%20Author%20Name%20to%20Author%20Archive'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-add-author-name-to-author-archive.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/automatically-insert-authors-bio-on-each-post.html' rel='bookmark' title='Permanent Link: Automatically Insert Author&#8217;s Bio on each post'>Automatically Insert Author&#8217;s Bio on each post</a></li>
<li><a href='http://www.wpfunc.com/wordpress/highlight-the-author-comments.html' rel='bookmark' title='Permanent Link: Highlight the Author Comments!'>Highlight the Author Comments!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/detect-user-browser-and-apply-a-stylesheet.html' rel='bookmark' title='Permanent Link: Detect User Browser And Apply A StyleSheet'>Detect User Browser And Apply A StyleSheet</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/how-to-add-author-name-to-author-archive.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Use Two or More Single.php</title>
		<link>http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html</link>
		<comments>http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 23:32:55 +0000</pubDate>
		<dc:creator>KaiseRCrazY</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. [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html' rel='bookmark' title='Permanent Link: Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;'>Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;</a></li>
<li><a href='http://www.wpfunc.com/wordpress/did-you-bored-with-widgetized-pages.html' rel='bookmark' title='Permanent Link: Did you Bored with Widgetized Pages?'>Did you Bored with Widgetized Pages?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-a-shortcode-for-displaying-the-loop.html' rel='bookmark' title='Permanent Link: Create a shortcode for displaying the Loop'>Create a shortcode for displaying the Loop</a></li>
</ol>]]></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;">
&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;">&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>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;title=Use%20Two%20or%20More%20Single.php&amp;notes=In%20WordPress%2C%20we%20can%20use%20only%20one%20single.php.%20But%20sometimes%20we%20need%20different%20single%20pages%20for%20different%20categories.%20Also%20my%20friend%20Hakan%20needs%202%20different%20single.php%20for%20his%20site.%20We%20build%20a%20blog%20page%20for%20his%20Vectorss%20site%20but%20we%20had%20a%20problem%20with%20'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;title=Use%20Two%20or%20More%20Single.php&amp;bodytext=In%20WordPress%2C%20we%20can%20use%20only%20one%20single.php.%20But%20sometimes%20we%20need%20different%20single%20pages%20for%20different%20categories.%20Also%20my%20friend%20Hakan%20needs%202%20different%20single.php%20for%20his%20site.%20We%20build%20a%20blog%20page%20for%20his%20Vectorss%20site%20but%20we%20had%20a%20problem%20with%20'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;t=Use%20Two%20or%20More%20Single.php'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Use%20Two%20or%20More%20Single.php&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;title=Use%20Two%20or%20More%20Single.php'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;title=Use%20Two%20or%20More%20Single.php'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fuse-two-or-more-single-php.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html' rel='bookmark' title='Permanent Link: Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;'>Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;</a></li>
<li><a href='http://www.wpfunc.com/wordpress/did-you-bored-with-widgetized-pages.html' rel='bookmark' title='Permanent Link: Did you Bored with Widgetized Pages?'>Did you Bored with Widgetized Pages?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-a-shortcode-for-displaying-the-loop.html' rel='bookmark' title='Permanent Link: Create a shortcode for displaying the Loop'>Create a shortcode for displaying the Loop</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
