<?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; theme</title>
	<atom:link href="http://wpfunc.com/tag/theme/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>Dynamic Meta Description</title>
		<link>http://wpfunc.com/wordpress/dynamic-meta-description.html</link>
		<comments>http://wpfunc.com/wordpress/dynamic-meta-description.html#comments</comments>
		<pubDate>Fri, 17 Dec 2010 09:04:46 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[meta description]]></category>
		<category><![CDATA[meta tags]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=465</guid>
		<description><![CDATA[WordPress using blog description with meta description. But we want to sync. with search terms and posts. We can do that without a plugin. Let&#8217;s begin.
We can make this via functions.php. If we make a function about this we can use posts excerpt with meta tag description.
Here is the code;
Make a copy of your theme&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress using blog description with meta description. But we want to sync. with search terms and posts. We can do that without a plugin. Let&#8217;s begin.</p>
<p><span id="more-465"></span>We can make this via functions.php. If we make a function about this we can use posts excerpt with meta tag description.</p>
<h3>Here is the code;</h3>
<p>Make a copy of your <strong><span style="color: #0000ff;">theme&#8217;s</span></strong> <span style="color: #ff0000;"><strong>functions.php</strong></span> and add this code before <strong><span style="color: #ff0000;">?&gt;</span></strong></p>
<pre class="brush: php; title: ; notranslate">
function dynamic_meta_description() {
	$rawcontent = 	get_the_content();
	if(empty($rawcontent)) {
		$rawcontent = htmlentities(bloginfo('description'));
	} else {
		$rawcontent = apply_filters('the_content_rss', strip_tags($rawcontent));
		$rawcontent = preg_replace('/\[.+\]/','', $rawcontent);
		$chars = array(&quot;&quot;, &quot;\n&quot;, &quot;\r&quot;, &quot;chr(13)&quot;,  &quot;\t&quot;, &quot;&#92;&#48;&quot;, &quot;\x0B&quot;);
		$rawcontent = htmlentities(str_replace($chars, &quot; &quot;, $rawcontent));
	}
	if (strlen($rawcontent) &lt; 155) {
		echo $rawcontent;
	} else {
		$desc = substr($rawcontent,0,155);
		return $desc;
	}
}
</pre>
<p>Save functions.php and place it to your theme&#8217;s folder. In this code we use <strong><span style="color: #ff0000;">get_the_contet()</span></strong> function for call our post.<br />
After that you can use this code into your header.php for meta descripton.</p>
<pre class="brush: php; title: ; notranslate">&lt;meta name=&quot;description&quot; content=&quot;&lt;?php echo dynamic_meta_description(); ?&gt;&quot; /&gt;</pre>
<p>That&#8217;s All.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/dynamic-meta-description.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;</title>
		<link>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html</link>
		<comments>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html#comments</comments>
		<pubDate>Fri, 11 Jun 2010 10:06:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[have_posts]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Udegbunam]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=440</guid>
		<description><![CDATA[Hi again. I know i can&#8217;t write near 20 days. But Udegbunam asked me a question on this post. I try some code on this problem and i found a solution for this. You know, i write an article about using  Two or more single php. I used some if and else option for change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hi again. I know i can&#8217;t write near 20 days. But <a href="http://www.wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html#comment-56" target="_blank">Udegbunam asked me a question on this post</a>. I try some code on this problem and i found a solution for this. You know, i write an article about using  <a href="http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html" target="_blank">Two or more single php</a>. <span id="more-440"></span>I used some if and else option for change single.php for each category. With this code we can change our index.php for IE6 users. Nearly simple code and we can use this with different browsers (IE7, Safari etc.).  Lets begin!</p>
<p style="text-align: justify;"><span class="alert">Before start make a backup of your theme&#8217;s index.php. I used default theme&#8217;s files for this. Your template can have different files or codes.</span></p>
<p style="text-align: justify;">Firstly we have to copy our real index.php twice. After that rename them with <span style="color: #ff0000;"><strong>index-ie6.php</strong></span> and <span style="color: #ff0000;"><strong>index-real.php</strong></span>. Clear <strong><span style="color: #ff0000;">index.php</span></strong>&#8216;s code and place that code below;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
include(TEMPLATEPATH . '/index-ie6.php'); }
else { include(TEMPLATEPATH . '/index-real.php');
}
?&gt;</pre>
<p style="text-align: justify;">After that we change index-ie6.php for IE6 users. I simply change <span style="color: #ff0000;"><strong>have_post</strong></span><span style="color: #ff0000;">s</span> function with a <span style="color: #ff0000;"><strong>h3</strong></span> :). Here is the <span style="color: #ff0000;"><strong>index-ie6.php</strong></span>;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header(); ?&gt;

	&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot; role=&quot;main&quot;&gt;
&lt;div&gt;&lt;h3&gt;Sorry You're using Internet Explorer 6 &lt;/h3&gt;&lt;/div&gt;

	&lt;/div&gt;

&lt;?php get_sidebar(); ?&gt;

&lt;?php get_footer(); ?&gt;
</pre>
<p style="text-align: justify;"><span style="color: #ff0000;"><strong>Don&#8217;t change index-real.php&#8217;s codes. This is the real index.php of your theme.</strong></span><br />
That&#8217;s All. There is no more code :) If you want i take some screenshots for this. IE6, IE8 and Firefox.</p>

<a href='http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/attachment/firefox' title='Firefox Works Regularly'><img width="150" height="150" src="http://www.wpfunc.com/wp-content/uploads/2010/06/firefox-150x150.png" class="attachment-thumbnail" alt="Firefox Works Regularly" title="Firefox Works Regularly" /></a>
<a href='http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/attachment/ie6' title='IE 6 shows what we write'><img width="150" height="150" src="http://www.wpfunc.com/wp-content/uploads/2010/06/ie6-150x150.png" class="attachment-thumbnail" alt="IE 6 shows what we write" title="IE 6 shows what we write" /></a>
<a href='http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/attachment/ie8' title='IE8 Works Regularly'><img width="150" height="150" src="http://www.wpfunc.com/wp-content/uploads/2010/06/ie8-150x150.png" class="attachment-thumbnail" alt="IE8 Works Regularly" title="IE8 Works Regularly" /></a>

]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show timestamps like social networks!</title>
		<link>http://wpfunc.com/wordpress/show-timestamps-like-social-networks.html</link>
		<comments>http://wpfunc.com/wordpress/show-timestamps-like-social-networks.html#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:12:45 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=418</guid>
		<description><![CDATA[You can show your timestamps like other social networks. With this simple and awesome trick, you can change long date and time stamps with ex. twitter&#8217;s &#8220;1 min ago&#8220;. Lets begin&#8230;
Here is the code;
Add this code into your theme&#8217;s functions.php;
After that call this function wherever you want!
That&#8217;s All! Have a nice day.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can show your timestamps like other social networks. With this simple and awesome trick, you can change long date and time stamps with ex. twitter&#8217;s &#8220;<strong>1 min ago</strong>&#8220;. Lets begin&#8230;<span id="more-418"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">Add this code into your theme&#8217;s functions.php;</p>
<pre class="brush: php; title: ; notranslate">function time_ago( $type = 'post' ) {
	$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';

	return human_time_diff($d('U'), current_time('timestamp')) . &quot; &quot; . __('ago');

}</pre>
<p style="text-align: justify;">After that call this function wherever you want!</p>
<pre class="brush: php; title: ; notranslate">&lt;?php echo time_ago(); ?&gt;</pre>
<p style="text-align: justify;">That&#8217;s All! Have a nice day.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/show-timestamps-like-social-networks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Protected and Private from title!</title>
		<link>http://wpfunc.com/wordpress/remove-protected-and-private-from-title.html</link>
		<comments>http://wpfunc.com/wordpress/remove-protected-and-private-from-title.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:00:19 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[protected]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=405</guid>
		<description><![CDATA[Add this code to functions.php in theme directory. This code removes &#8220;protected&#8221; and &#8220;private&#8221; prefixs from your article titles. Let&#8217;s Begin&#8230;

Here is the code;
That&#8217;s All!
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Add this code to <span style="color: #ff0000;"><strong>functions.php</strong></span> in theme directory. This code removes &#8220;<strong>protected</strong>&#8221; and &#8220;<strong>private</strong>&#8221; prefixs from your article titles. Let&#8217;s Begin&#8230;</p>
<p><span id="more-405"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">function the_title_trim($title) {
	$title = attribute_escape($title);
	$findthese = array(
		'#Protected:#',
		'#Private:#'
	);
	$replacewith = array(
		'', // What to replace &quot;Protected:&quot; with
		'' // What to replace &quot;Private:&quot; with
	);
	$title = preg_replace($findthese, $replacewith, $title);
	return $title;
}
add_filter('the_title', 'the_title_trim');
</pre>
<p>That&#8217;s All!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/remove-protected-and-private-from-title.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Tabs for your Sidebar!</title>
		<link>http://wpfunc.com/wordpress/make-tabs-for-your-sidebar.html</link>
		<comments>http://wpfunc.com/wordpress/make-tabs-for-your-sidebar.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 20:40:23 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[sliding]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=398</guid>
		<description><![CDATA[I found this article in BlogOhBlog. there is some plugins for this and most premium themes have special tabs like that. You can do this without any plugin or any help. Just read this article and use this codes. Easy and minimal -simple- tabs. Lets Begin!
Here is the code;
First; download this file and extract gomtabs.js [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I found this article in BlogOhBlog. there is some plugins for this and most premium themes have special tabs like that. You can do this without any plugin or any help. Just read this article and use this codes. Easy and minimal -simple- tabs. Lets Begin!<span id="more-398"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;">First; download this file and extract gomtabs.js and domtabs.css into your theme folder.</p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p style="text-align: justify;">After that make a backup of header.php and open it. Add this code before the<span style="color: #ff0000;"><strong> &lt;/head&gt;</strong></span> tag;</p>
<pre class="brush: php; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/domtab.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/domtab.css&quot; media=&quot;screen&quot; /&gt;</pre>
<p style="text-align: justify;">Save the file and upload the server. After this you can add this code into any file of your theme. Change code what you can add;</p>
<pre class="brush: php; title: ; notranslate">&lt;div class=&quot;domtab&quot;&gt;
&lt;ul class=&quot;domtabs&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#t1&quot;&gt;Tab 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#t2&quot;&gt;Tab 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#t3&quot;&gt;Tab 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;a name=&quot;t1&quot; id=&quot;t1&quot;&gt;&lt;/a&gt;
&lt;p&gt;Insert contents of the first tab here,
e.g. The code for a plugin.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a name=&quot;t2&quot; id=&quot;t2&quot;&gt;&lt;/a&gt;
&lt;p&gt;Insert contents of the second tab here.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a name=&quot;t3&quot; id=&quot;t3&quot;&gt;&lt;/a&gt;
&lt;p&gt;Insert contents of the third tab here.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p style="text-align: center;"><a class="highslide img_2" href="http://www.wpfunc.com/wp-content/uploads/2010/02/jquery-tabs.gif" onclick="return hs.expand(this)"><img class="size-full wp-image-399 aligncenter" title="jquery-tabs" src="http://www.wpfunc.com/wp-content/uploads/2010/02/jquery-tabs.gif" alt="" width="273" height="138" /></a></p>
<p style="text-align: justify;">That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/make-tabs-for-your-sidebar.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Most Recent Comments! Without Any Plugin</title>
		<link>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html</link>
		<comments>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:59:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[area]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[recent commen]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[without plugin]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=376</guid>
		<description><![CDATA[We use plugin/widget for show most recent comments. But we can do that with a simple code. This code gives you simple recent comments feature without plugin. also with gravatar support. Paste this code into your theme where you want. All done!
Here is the code;
This code shows 5 recent comment. If you change &#8220;5&#8221; in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We use plugin/widget for show most recent comments. But we can do that with a simple code. This code gives you simple recent comments feature without plugin. also with gravatar support. Paste this code into your theme where you want. All done!<span id="more-376"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
$query = &quot;SELECT * from $wpdb-&gt;comments WHERE comment_approved= '1'
ORDER BY comment_date DESC LIMIT 0 ,5&quot;;
$comments = $wpdb-&gt;get_results($query);

if ($comments) {
    echo '&lt;ul&gt;';
    foreach ($comments as $comment) {
        $url = '&lt;a href=&quot;'. get_permalink($comment-&gt;comment_post_ID).'#comment-'.$comment-&gt;comment_ID .'&quot; title=&quot;'.$comment-&gt;comment_author .' | '.get_the_title($comment-&gt;comment_post_ID).'&quot;&gt;';
        echo '&lt;li&gt;';
        echo '&lt;div class=&quot;img&quot;&gt;';
        echo $url;
        echo get_avatar( $comment-&gt;comment_author_email, $img_w);
        echo '&lt;/a&gt;&lt;/div&gt;';

        echo '&lt;div class=&quot;txt&quot;&gt;Par: ';
        echo $url;
        echo $comment-&gt;comment_author;
        echo '&lt;/a&gt;&lt;/div&gt;';
        echo '&lt;/li&gt;';
    }
    echo '&lt;/ul&gt;';
}
?&gt;
</pre>
<p>This code shows 5 recent comment. If you change &#8220;<span style="color: #ff0000;"><strong>5</strong></span>&#8221; in line two, you can display more comment or less&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/most-recent-comments-without-any-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change dashboard footer texts?</title>
		<link>http://wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 20:23:31 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[footer links]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress dashboard]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=371</guid>
		<description><![CDATA[When you build a theme you can use this code for hide/remove WordPress Dashboard&#8217;s links. you have to add this code into your theme&#8217;s functions.php. After that you can write your own text with dashboard footer. Let&#8217;s Begin&#8230;
Here is the code;
Don&#8217;t forget. You will add this code into your theme&#8217;s functions.php. Have a nice day!
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When you build a theme you can use this code for hide/remove WordPress Dashboard&#8217;s links. you have to add this code into your theme&#8217;s functions.php. After that you can write your own text with dashboard footer. Let&#8217;s Begin&#8230;<span id="more-371"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">function remove_footer_admin () {
    echo &quot;Your own text&quot;;
}
add_filter('admin_footer_text', 'remove_footer_admin');
</pre>
<p style="text-align: justify;">Don&#8217;t forget. You will add this code into your<em><span style="color: #ff0000;"><strong> theme&#8217;s functions.php</strong></span></em>. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show Default Theme for IE6 Visitors!</title>
		<link>http://wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html</link>
		<comments>http://wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html#comments</comments>
		<pubDate>Thu, 24 Dec 2009 19:47:32 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[browser detect]]></category>
		<category><![CDATA[change theme]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=331</guid>
		<description><![CDATA[You can show &#8220;default&#8221; or &#8220;classic&#8221; theme for ie6 visitors. Because IE6 broke our themes and the other people themes. And alot of people use IE6. Let&#8217;s Begin&#8230;
Here is the code;
Insert this code to your Theme&#8217;s functions.php. With this code we will make Browser detection and we tell wordpress &#8216;Change theme to default if our [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can show &#8220;<em><strong>default</strong></em>&#8221; or &#8220;<em><strong>classic</strong></em>&#8221; theme for ie6 visitors. Because IE6 broke our themes and the other people themes. And alot of people use IE6. Let&#8217;s Begin&#8230;<span id="more-331"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">add_filter('template', 'serve_default_to_iesix');
add_filter('option_template', 'serve_default_to_iesix');
add_filter('option_stylesheet', 'serve_default_to_iesix');
function serve_default_to_iesix($theme) {
	if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false)
		$theme = 'default';

	return $theme;
}</pre>
<p style="text-align: justify;">Insert this code to your Theme&#8217;s <em><strong><span style="color: #ff0000;">functions.php</span></strong></em>. With this code we will make Browser detection and we tell wordpress &#8216;<span style="color: #ff0000;"><strong>Change theme to default if our visitors are use IE6!</strong></span>&#8216;.</p>
<p style="text-align: justify;">You can change &#8216;default&#8217; to classic or any theme name. You have to edit this lines for make changes.</p>
<pre class="brush: php; title: ; notranslate">$theme = 'default';</pre>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to include comments in posts lists?</title>
		<link>http://wpfunc.com/wordpress/how-to-include-comments-in-posts-lists.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-include-comments-in-posts-lists.html#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:24:32 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[inline comments]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=250</guid>
		<description><![CDATA[You can show comments on index.php. Some new themes support this. Also you can add this option to your themes.
Here is the code;
First one you download your theme&#8217;s index.php. After that open the file with your favourite text editor and paste this code wher you want to show your comments.

That&#8217;s All. Have a nice day!
The [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can show comments on <strong>index.php</strong>. Some new themes support this. Also you can add this option to your themes.<span id="more-250"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;">First one you download your theme&#8217;s <span style="color: #ff0000;"><strong>index.php</strong></span>. After that open the file with your favourite text editor and paste this code wher you want to show your comments.</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php
  global $withcomments;
  $withcomments = true;
  comments_template(&quot;/inline-comments.php&quot;);
?&gt;
</pre>
<p style="text-align: justify;"><span class="notice">What I did? That&#8217;s simple: On line 2, I declare that I&#8217;ll use the global variable $withcomments. I then set its value to true on line 3. Finally, I use the comments_template() function to call my comments file. The /inline-comments.php parameter tells the function to use a specific file for displaying comments, instead of the regular comments.php.</span></p>
<p>That&#8217;s All. Have a nice day!</p>
<p>The <a href="http://www.wprecipes.com/wordpress-tip-include-comments-in-post-lists">Original</a> Post!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-include-comments-in-posts-lists.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Breadcumbs without a plugin!</title>
		<link>http://wpfunc.com/wordpress/add-breadcumbs-without-a-plugin.html</link>
		<comments>http://wpfunc.com/wordpress/add-breadcumbs-without-a-plugin.html#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:31:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[breadcumbs]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[theme develop]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=205</guid>
		<description><![CDATA[You can show  users and guest to where they are in your blog. You can do this with breadcumbs easily. There are some plugins for that but if you want to add breadcumbs your theme or if you a theme developer you can use this function. This code is very simple, pretty and good.
Firstly you have to create [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can show  users and guest to where they are in your blog. You can do this with breadcumbs easily. There are some plugins for that but if you want to add breadcumbs your theme or if you a theme developer you can use this function. This code is very simple, pretty and good.<span id="more-205"></span></p>
<p style="text-align: justify;">Firstly you have to create a php file with named &#8220;<strong><span style="color: #ff0000;">breadcumbs.php</span></strong>&#8220;. After that paste this code below into the file:</p>
<pre class="brush: plain; title: ; notranslate">&lt;div class=&quot;breadcrumbs&quot;&gt;
&lt;?php
function breadcrumbs() {
    $theFullUrl = $_SERVER[&quot;REQUEST_URI&quot;];
    $urlArray=explode(&quot;/&quot;,$theFullUrl);
    echo 'You Are Here: &lt;a href=&quot;/&quot;&gt;Home&lt;/a&gt;';
    while (list($j,$text) = each($urlArray)) {
        $dir=&quot;;
        if ($j &gt; 1) {
            $i=1;
            while ($i &lt; $j) {
                $dir .= '/' . $urlArray[$i];
                $text = $urlArray[$i];
                $i  ;
            }
            if($j &lt; count($urlArray)-1) echo ' &amp;raquo; &lt;a href=&quot;'.$dir.'&quot;&gt;' . str_replace(&quot;-&quot;, &quot; &quot;, $text) . '&lt;/a&gt;';
        }
    }
    echo wp_title();
}
breadcrumbs();
?&gt;
&lt;/div&gt;&lt;!-/breadcrumbs-&gt;</pre>
<p style="text-align: justify;">Send this <strong><span style="color: #ff0000;">breadcumbs.php</span></strong> into your <strong>themes root path</strong>. After that you can use this code where you want in your theme:</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php include ( TEMPLATEPATH . '/breadcrumbs.php'); ?&gt;</pre>
<p style="text-align: justify;">
You can use a class style named <strong>breadcumbs</strong> with this file and code. You can edit with your base styleshet.<br />
That&#8217;s All! Have a nice day.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/add-breadcumbs-without-a-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

