<?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; function</title>
	<atom:link href="http://www.wpfunc.com/tag/function/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>Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;</title>
		<link>http://www.wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html</link>
		<comments>http://www.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>KaiseRCrazY</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 [...]<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/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/how-to-include-comments-in-posts-lists.html' rel='bookmark' title='Permanent Link: How to include comments in posts lists?'>How to include comments in posts lists?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/add-breadcumbs-without-a-plugin.html' rel='bookmark' title='Permanent Link: Add Breadcumbs without a plugin!'>Add Breadcumbs without a plugin!</a></li>
</ol>]]></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;">&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;">&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://www.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://www.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://www.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>

<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.html&amp;title=Udegbunam%20Asked%20%22How%20i%20hide%20my%20content%20from%20IE6%20Users%3F%22&amp;notes=Hi%20again.%20I%20know%20i%20can%27t%20write%20near%2020%20days.%20But%20Udegbunam%20asked%20me%20a%20question%20on%20this%20post.%20I%20try%20some%20code%20on%20this%20problem%20and%20i%20found%20a%20solution%20for%20this.%20You%20know%2C%20i%20write%20an%20article%20about%20using%C2%A0%20Two%20or%20more%20single%20php.%20I%20used%20some%20if%20and%20else%20o'><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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.html&amp;title=Udegbunam%20Asked%20%22How%20i%20hide%20my%20content%20from%20IE6%20Users%3F%22&amp;bodytext=Hi%20again.%20I%20know%20i%20can%27t%20write%20near%2020%20days.%20But%20Udegbunam%20asked%20me%20a%20question%20on%20this%20post.%20I%20try%20some%20code%20on%20this%20problem%20and%20i%20found%20a%20solution%20for%20this.%20You%20know%2C%20i%20write%20an%20article%20about%20using%C2%A0%20Two%20or%20more%20single%20php.%20I%20used%20some%20if%20and%20else%20o'><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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.html&amp;t=Udegbunam%20Asked%20%22How%20i%20hide%20my%20content%20from%20IE6%20Users%3F%22'><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=Udegbunam%20Asked%20%22How%20i%20hide%20my%20content%20from%20IE6%20Users%3F%22&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.html&amp;title=Udegbunam%20Asked%20%22How%20i%20hide%20my%20content%20from%20IE6%20Users%3F%22'><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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.html&amp;title=Udegbunam%20Asked%20%22How%20i%20hide%20my%20content%20from%20IE6%20Users%3F%22'><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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.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%2Fudegbunam-asked-how-i-hide-my-content-from-ie6-users.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/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/how-to-include-comments-in-posts-lists.html' rel='bookmark' title='Permanent Link: How to include comments in posts lists?'>How to include comments in posts lists?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/add-breadcumbs-without-a-plugin.html' rel='bookmark' title='Permanent Link: Add Breadcumbs without a plugin!'>Add Breadcumbs without a plugin!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.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>Make Your Titles Shorten Then Now!</title>
		<link>http://www.wpfunc.com/wordpress/make-your-titles-shorten-then-now.html</link>
		<comments>http://www.wpfunc.com/wordpress/make-your-titles-shorten-then-now.html#comments</comments>
		<pubDate>Fri, 16 Apr 2010 19:13:46 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[long titles]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[short title]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=422</guid>
		<description><![CDATA[Some people use extremly long titles for their blog. Also you can use titles like that. There is a way to make short titles for SEO. I will give to you this quick and simple function to make this. Let&#8217;s begin&#8230;
Here is The Code;
Add this function into your theme&#8217;s functions.php.
function short_title($after = '', $length) {
	$mytitle [...]<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/show-word-counts-on-your-posts.html' rel='bookmark' title='Permanent Link: Show word counts on your posts!'>Show word counts on your posts!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html' rel='bookmark' title='Permanent Link: 2 Useful SQL Hacks For WordPress'>2 Useful SQL Hacks For WordPress</a></li>
<li><a href='http://www.wpfunc.com/wordpress/remove-protected-and-private-from-title.html' rel='bookmark' title='Permanent Link: Remove Protected and Private from title!'>Remove Protected and Private from title!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Some people use extremly long titles for their blog. Also you can use titles like that. There is a way to make short titles for SEO. I will give to you this quick and simple function to make this. Let&#8217;s begin&#8230;<span id="more-422"></span></p>
<h3>Here is The Code;</h3>
<p>Add this function into your<span style="color: #ff0000;"><strong> theme&#8217;s</strong></span> <span style="color: #ff0000;"><strong>functions.php</strong></span>.</p>
<pre class="brush: php;">function short_title($after = '', $length) {
	$mytitle = explode(' ', get_the_title(), $length);
	if (count($mytitle)&gt;=$length) {
		array_pop($mytitle);
		$mytitle = implode(&quot; &quot;,$mytitle). $after;
	} else {
		$mytitle = implode(&quot; &quot;,$mytitle);
	}
	return $mytitle;
}</pre>
<p>After this you can use this simple function for show your titles shorten then now. You can add this lines into your <span style="color: #ff0000;"><strong>index.php</strong></span> or where you want!</p>
<pre class="brush: php;">&lt;?php
// short_title($after, $length)
echo short_title('...', 10);
?&gt;</pre>
<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%2Fmake-your-titles-shorten-then-now.html&amp;title=Make%20Your%20Titles%20Shorten%20Then%20Now%21&amp;notes=Some%20people%20use%20extremly%20long%20titles%20for%20their%20blog.%20Also%20you%20can%20use%20titles%20like%20that.%20There%20is%20a%20way%20to%20make%20short%20titles%20for%20SEO.%20I%20will%20give%20to%20you%20this%20quick%20and%20simple%20function%20to%20make%20this.%20Let%27s%20begin...%0D%0AHere%20is%20The%20Code%3B%0D%0AAdd%20this%20function%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%2Fmake-your-titles-shorten-then-now.html&amp;title=Make%20Your%20Titles%20Shorten%20Then%20Now%21&amp;bodytext=Some%20people%20use%20extremly%20long%20titles%20for%20their%20blog.%20Also%20you%20can%20use%20titles%20like%20that.%20There%20is%20a%20way%20to%20make%20short%20titles%20for%20SEO.%20I%20will%20give%20to%20you%20this%20quick%20and%20simple%20function%20to%20make%20this.%20Let%27s%20begin...%0D%0AHere%20is%20The%20Code%3B%0D%0AAdd%20this%20function%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%2Fmake-your-titles-shorten-then-now.html&amp;t=Make%20Your%20Titles%20Shorten%20Then%20Now%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=Make%20Your%20Titles%20Shorten%20Then%20Now%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fmake-your-titles-shorten-then-now.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%2Fmake-your-titles-shorten-then-now.html&amp;title=Make%20Your%20Titles%20Shorten%20Then%20Now%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%2Fmake-your-titles-shorten-then-now.html&amp;title=Make%20Your%20Titles%20Shorten%20Then%20Now%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%2Fmake-your-titles-shorten-then-now.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%2Fmake-your-titles-shorten-then-now.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%2Fmake-your-titles-shorten-then-now.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/show-word-counts-on-your-posts.html' rel='bookmark' title='Permanent Link: Show word counts on your posts!'>Show word counts on your posts!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html' rel='bookmark' title='Permanent Link: 2 Useful SQL Hacks For WordPress'>2 Useful SQL Hacks For WordPress</a></li>
<li><a href='http://www.wpfunc.com/wordpress/remove-protected-and-private-from-title.html' rel='bookmark' title='Permanent Link: Remove Protected and Private from title!'>Remove Protected and Private from title!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/make-your-titles-shorten-then-now.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Catch the First Image</title>
		<link>http://www.wpfunc.com/wordpress/catch-the-first-image.html</link>
		<comments>http://www.wpfunc.com/wordpress/catch-the-first-image.html#comments</comments>
		<pubDate>Fri, 12 Mar 2010 20:50:10 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[first image]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[get image]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[usage]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=410</guid>
		<description><![CDATA[You can catch the your posts first image and use them for thumbnails. Also you can use default images for this. With this function you can use any image (first image on your posts also) for thumbnail. Lets Begin&#8230;
Here is the code;
function catch_that_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/&#60;img.+src=[\'&#34;]([^\'&#34;]+)[\'&#34;].*&#62;/i', $post-&#62;post_content, $matches);
$first_img = $matches [1] [...]<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/you-can-disable-image-captions.html' rel='bookmark' title='Permanent Link: You can disable image captions!'>You can disable image captions!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-a-random-post-button.html' rel='bookmark' title='Permanent Link: Create a Random Post Button!'>Create a Random Post Button!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-custom-date-butons.html' rel='bookmark' title='Permanent Link: Create Custom Date Butons!'>Create Custom Date Butons!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can catch the your posts first image and use them for thumbnails. Also you can use default images for this. With this function you can use any image (first image on your posts also) for thumbnail. Lets Begin&#8230;<span id="more-410"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php;">function catch_that_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/&lt;img.+src=[\'&quot;]([^\'&quot;]+)[\'&quot;].*&gt;/i', $post-&gt;post_content, $matches);
$first_img = $matches [1] [0];
if(empty($first_img)){ //Varsayılan küçük resim
$first_img = &quot;wp-content/themes/tema adı/images/default.png&quot;;
}
return $first_img;
}</pre>
<h3>This is the output;</h3>
<pre class="brush: php;">catch_that_image()</pre>
<h3>This is the usage;</h3>
<p>Usage with the img tag;</p>
<pre class="brush: php;">&lt;img src=&quot;&lt;?php echo catch_that_image() ?&gt;&quot; alt=&quot;&quot;/&gt;</pre>
<p>Usage on site;</p>
<pre class="brush: php;">&lt;span class=&quot;custom_image&quot;&gt;
&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Read: &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo catch_that_image() ?&gt;&quot; alt=&quot;&quot;/&gt; &lt;/a&gt;
&lt;/span&gt;</pre>
<h3>And CSS;</h3>
<pre class="brush: css;">.custom_image img{float:left; padding:3px; margin:7px 10px 15px 0; border: 2px solid #e6e6e6; height:90px; width:90px}</pre>
<p>That&#8217;s All!</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fcatch-the-first-image.html&amp;title=Catch%20the%20First%20Image&amp;notes=You%20can%20catch%20the%20your%20posts%20first%20image%20and%20use%20them%20for%20thumbnails.%20Also%20you%20can%20use%20default%20images%20for%20this.%20With%20this%20function%20you%20can%20use%20any%20image%20%28first%20image%20on%20your%20posts%20also%29%20for%20thumbnail.%20Lets%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5Dfunction'><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%2Fcatch-the-first-image.html&amp;title=Catch%20the%20First%20Image&amp;bodytext=You%20can%20catch%20the%20your%20posts%20first%20image%20and%20use%20them%20for%20thumbnails.%20Also%20you%20can%20use%20default%20images%20for%20this.%20With%20this%20function%20you%20can%20use%20any%20image%20%28first%20image%20on%20your%20posts%20also%29%20for%20thumbnail.%20Lets%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5Dfunction'><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%2Fcatch-the-first-image.html&amp;t=Catch%20the%20First%20Image'><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=Catch%20the%20First%20Image&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fcatch-the-first-image.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%2Fcatch-the-first-image.html&amp;title=Catch%20the%20First%20Image'><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%2Fcatch-the-first-image.html&amp;title=Catch%20the%20First%20Image'><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%2Fcatch-the-first-image.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%2Fcatch-the-first-image.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%2Fcatch-the-first-image.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/you-can-disable-image-captions.html' rel='bookmark' title='Permanent Link: You can disable image captions!'>You can disable image captions!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-a-random-post-button.html' rel='bookmark' title='Permanent Link: Create a Random Post Button!'>Create a Random Post Button!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/create-custom-date-butons.html' rel='bookmark' title='Permanent Link: Create Custom Date Butons!'>Create Custom Date Butons!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/catch-the-first-image.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create PDF Button</title>
		<link>http://www.wpfunc.com/wordpress/create-pdf-button.html</link>
		<comments>http://www.wpfunc.com/wordpress/create-pdf-button.html#comments</comments>
		<pubDate>Tue, 02 Mar 2010 18:00:50 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[google docs]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=408</guid>
		<description><![CDATA[This is a simple button for display PDF&#8217;s with Google Docs. You can easily apply this code into your theme&#8217;s functions.php. And this useful thing has 4 lines code. Let&#8217;s Begin&#8230;
Here is the code;
Add this line into your theme&#8217;s functions.php;
function pdflink($attr, $content) {
	return '&#60;a class=&#34;pdf&#34; href=&#34;http://docs.google.com/viewer?url=' . $attr['href'] . '&#34;&#62;'.$content.'&#60;/a&#62;';
}
add_shortcode('pdf', 'pdflink');

That&#8217;s All. Now use your [...]<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/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>
<li><a href='http://www.wpfunc.com/wordpress/create-a-random-post-button.html' rel='bookmark' title='Permanent Link: Create a Random Post Button!'>Create a Random Post Button!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/you-can-hide-your-contents-from-google.html' rel='bookmark' title='Permanent Link: You Can Hide Your Contents From Google!'>You Can Hide Your Contents From Google!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This is a simple button for display PDF&#8217;s with Google Docs. You can easily apply this code into your theme&#8217;s <strong>functions.php</strong>. And this useful thing has 4 lines code. Let&#8217;s Begin&#8230;<span id="more-408"></span></p>
<h3>Here is the code;</h3>
<p>Add this line into your theme&#8217;s <strong><span style="color: #ff0000;">functions.php</span></strong>;</p>
<pre class="brush: php;">function pdflink($attr, $content) {
	return '&lt;a class=&quot;pdf&quot; href=&quot;http://docs.google.com/viewer?url=' . $attr['href'] . '&quot;&gt;'.$content.'&lt;/a&gt;';
}
add_shortcode('pdf', 'pdflink');
</pre>
<p>That&#8217;s All. Now use your shortcode;</p>
<pre class="brush: php;">[pdf href=&quot;http://yoursite.com/linktoyour/file.pdf&quot;]View PDF[/pdf]</pre>
<p>This tip orginally posted in <a href="http://www.wprecipes.com/wordpress-tip-create-a-pdf-viewer-shortcode">WpRecipes</a>.</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fcreate-pdf-button.html&amp;title=Create%20PDF%20Button&amp;notes=This%20is%20a%20simple%20button%20for%20display%20PDF%27s%20with%20Google%20Docs.%20You%20can%20easily%20apply%20this%20code%20into%20your%20theme%27s%20functions.php.%20And%20this%20useful%20thing%20has%204%20lines%20code.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AAdd%20this%20line%20into%20your%20theme%27s%20functions.php%3B%0D%0A%0D'><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%2Fcreate-pdf-button.html&amp;title=Create%20PDF%20Button&amp;bodytext=This%20is%20a%20simple%20button%20for%20display%20PDF%27s%20with%20Google%20Docs.%20You%20can%20easily%20apply%20this%20code%20into%20your%20theme%27s%20functions.php.%20And%20this%20useful%20thing%20has%204%20lines%20code.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AAdd%20this%20line%20into%20your%20theme%27s%20functions.php%3B%0D%0A%0D'><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%2Fcreate-pdf-button.html&amp;t=Create%20PDF%20Button'><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=Create%20PDF%20Button&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fcreate-pdf-button.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%2Fcreate-pdf-button.html&amp;title=Create%20PDF%20Button'><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%2Fcreate-pdf-button.html&amp;title=Create%20PDF%20Button'><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%2Fcreate-pdf-button.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%2Fcreate-pdf-button.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%2Fcreate-pdf-button.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/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>
<li><a href='http://www.wpfunc.com/wordpress/create-a-random-post-button.html' rel='bookmark' title='Permanent Link: Create a Random Post Button!'>Create a Random Post Button!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/you-can-hide-your-contents-from-google.html' rel='bookmark' title='Permanent Link: You Can Hide Your Contents From Google!'>You Can Hide Your Contents From Google!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/create-pdf-button.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice Search Plugin!</title>
		<link>http://www.wpfunc.com/wp-plugins/nice-search-plugin.html</link>
		<comments>http://www.wpfunc.com/wp-plugins/nice-search-plugin.html#comments</comments>
		<pubDate>Mon, 04 Jan 2010 17:39:06 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searched text]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress search]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=360</guid>
		<description><![CDATA[This plugin is a very simple redirect plugin. The Plugin change WordPress&#8217; search context &#8220;?s=searched%20word&#8221; to permalink &#8220;/search/searched+word/&#8221; one. Also change &#8220;%20&#8243; to &#8220;+&#8221;. Thanks to Mark Jaquith!
Here is the Plugin;
You can see what code the plugin has;
&#60;?php /*
Plugin Name: Nice Search
Version: 0.2
Plugin URI: http://txfx.net/code/wordpress/nice-search/
Description: Redirects ?s=query searches to /search/query, and converts %20 to +
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/display-custom-content-to-search-engine-visitors.html' rel='bookmark' title='Permanent Link: Display Custom Content to Search Engine Visitors!'>Display Custom Content to Search Engine Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/wordpress-exploit-scanner-plugin.html' rel='bookmark' title='Permanent Link: WordPress Exploit Scanner Plugin!'>WordPress Exploit Scanner Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html' rel='bookmark' title='Permanent Link: How to Highlight Searched Text In Results'>How to Highlight Searched Text In Results</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This plugin is a very simple redirect plugin. The Plugin change WordPress&#8217; search context &#8220;?s=searched%20word&#8221; to permalink &#8220;/search/searched+word/&#8221; one. Also change &#8220;%20&#8243; to &#8220;+&#8221;. Thanks to Mark Jaquith!<span id="more-360"></span></p>
<h3>Here is the Plugin;</h3>
<p>You can see what code the plugin has;</p>
<pre class="brush: php;">&lt;?php /*
Plugin Name: Nice Search
Version: 0.2
Plugin URI: http://txfx.net/code/wordpress/nice-search/
Description: Redirects ?s=query searches to /search/query, and converts %20 to +
Author: Mark Jaquith
Author URI: http://txfx.net/
*/

function txfx_nice_search() {
	if ( is_search() &amp;&amp; strpos($_SERVER['REQUEST_URI'], '/wp-admin/') === false &amp;&amp; strpos($_SERVER['REQUEST_URI'], '/search/') === false ) {
		wp_redirect(get_bloginfo('home') . '/search/' . str_replace(' ', '+', str_replace('%20', '+', get_query_var('s'))));
		exit();
	}
}

add_action('template_redirect', 'txfx_nice_search');
?&gt;
</pre>
<p>That&#8217;s All!<br />
You can download it from here:<br />
Note: There is a file embedded within this post, please visit this post to download the file.</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%21&amp;notes=This%20plugin%20is%20a%20very%20simple%20redirect%20plugin.%20The%20Plugin%20change%20WordPress%27%20search%20context%20%22%3Fs%3Dsearched%2520word%22%20to%20permalink%20%22%2Fsearch%2Fsearched%2Bword%2F%22%20one.%20Also%20change%20%22%2520%22%20to%20%22%2B%22.%20Thanks%20to%20Mark%20Jaquith%21%0D%0A%0D%0AHere%20is%20the%20Plugin%3B%0D%0AYou%20can%20see%20what%20code%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%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%21&amp;bodytext=This%20plugin%20is%20a%20very%20simple%20redirect%20plugin.%20The%20Plugin%20change%20WordPress%27%20search%20context%20%22%3Fs%3Dsearched%2520word%22%20to%20permalink%20%22%2Fsearch%2Fsearched%2Bword%2F%22%20one.%20Also%20change%20%22%2520%22%20to%20%22%2B%22.%20Thanks%20to%20Mark%20Jaquith%21%0D%0A%0D%0AHere%20is%20the%20Plugin%3B%0D%0AYou%20can%20see%20what%20code%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%2Fwp-plugins%2Fnice-search-plugin.html&amp;t=Nice%20Search%20Plugin%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=Nice%20Search%20Plugin%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.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%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%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%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%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%2Fwp-plugins%2Fnice-search-plugin.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%2Fwp-plugins%2Fnice-search-plugin.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%2Fwp-plugins%2Fnice-search-plugin.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/display-custom-content-to-search-engine-visitors.html' rel='bookmark' title='Permanent Link: Display Custom Content to Search Engine Visitors!'>Display Custom Content to Search Engine Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/wordpress-exploit-scanner-plugin.html' rel='bookmark' title='Permanent Link: WordPress Exploit Scanner Plugin!'>WordPress Exploit Scanner Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html' rel='bookmark' title='Permanent Link: How to Highlight Searched Text In Results'>How to Highlight Searched Text In Results</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wp-plugins/nice-search-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Custom Content to Search Engine Visitors!</title>
		<link>http://www.wpfunc.com/wordpress/display-custom-content-to-search-engine-visitors.html</link>
		<comments>http://www.wpfunc.com/wordpress/display-custom-content-to-search-engine-visitors.html#comments</comments>
		<pubDate>Mon, 28 Dec 2009 10:24:51 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[del.icio.us]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[visitors]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=337</guid>
		<description><![CDATA[With this code you can show a custom message or contet to your search-engine visitors. We will edit funcitons.php and any theme file you want to show your content to search engine vsitors. Let&#8217;s Begin&#8230;
Here is the code;
Backup and open your theme&#8217;s functions.php and insert this code into it.
&#60;?php function search_engine_visitors() {

	$ref = $_SERVER['HTTP_REFERER'];
	$SE  [...]<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/say-hello-to-returning-visitors.html' rel='bookmark' title='Permanent Link: Say Hello to returning visitors!'>Say Hello to returning visitors!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html' rel='bookmark' title='Permanent Link: Show Default Theme for IE6 Visitors!'>Show Default Theme for IE6 Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/nice-search-plugin.html' rel='bookmark' title='Permanent Link: Nice Search Plugin!'>Nice Search Plugin!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">With this code you can show a custom message or contet to your search-engine visitors. We will edit <span style="color: #ff0000;"><strong>funcitons.php </strong></span>and any theme file you want to show your content to search engine vsitors. Let&#8217;s Begin&#8230;<span id="more-337"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;"><strong><span style="color: #ff9900;">Backup</span></strong> and open your theme&#8217;s <span style="color: #ff0000;"><strong>functions.php</strong></span> and insert this code into it.</p>
<pre class="brush: php;">&lt;?php function search_engine_visitors() {

	$ref = $_SERVER['HTTP_REFERER'];
	$SE  = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');

	foreach($SE as $source) {
		if(strpos($ref, $source) !== false) return true;
	}
	return false;
} ?&gt;</pre>
<p style="text-align: justify;">You can edit or add any search engine rules into $SE. After that your function is ready. Insert this code below where you want to show your custom content to visitors.</p>
<pre class="brush: php;">&lt;?php if(function_exists('search_engine_visitors')) {
	if (search_engine_visitors()) {

		// INSERT YOUR CODE HERE

	}
} ?&gt;</pre>
<p style="text-align: justify;">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%2Fdisplay-custom-content-to-search-engine-visitors.html&amp;title=Display%20Custom%20Content%20to%20Search%20Engine%20Visitors%21&amp;notes=With%20this%20code%20you%20can%20show%20a%20custom%20message%20or%20contet%20to%20your%20search-engine%20visitors.%20We%20will%20edit%20funcitons.php%20and%20any%20theme%20file%20you%20want%20to%20show%20your%20content%20to%20search%20engine%20vsitors.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0ABackup%20and%20open%20your%20the'><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%2Fdisplay-custom-content-to-search-engine-visitors.html&amp;title=Display%20Custom%20Content%20to%20Search%20Engine%20Visitors%21&amp;bodytext=With%20this%20code%20you%20can%20show%20a%20custom%20message%20or%20contet%20to%20your%20search-engine%20visitors.%20We%20will%20edit%20funcitons.php%20and%20any%20theme%20file%20you%20want%20to%20show%20your%20content%20to%20search%20engine%20vsitors.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0ABackup%20and%20open%20your%20the'><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%2Fdisplay-custom-content-to-search-engine-visitors.html&amp;t=Display%20Custom%20Content%20to%20Search%20Engine%20Visitors%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=Display%20Custom%20Content%20to%20Search%20Engine%20Visitors%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdisplay-custom-content-to-search-engine-visitors.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%2Fdisplay-custom-content-to-search-engine-visitors.html&amp;title=Display%20Custom%20Content%20to%20Search%20Engine%20Visitors%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%2Fdisplay-custom-content-to-search-engine-visitors.html&amp;title=Display%20Custom%20Content%20to%20Search%20Engine%20Visitors%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%2Fdisplay-custom-content-to-search-engine-visitors.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%2Fdisplay-custom-content-to-search-engine-visitors.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%2Fdisplay-custom-content-to-search-engine-visitors.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/say-hello-to-returning-visitors.html' rel='bookmark' title='Permanent Link: Say Hello to returning visitors!'>Say Hello to returning visitors!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html' rel='bookmark' title='Permanent Link: Show Default Theme for IE6 Visitors!'>Show Default Theme for IE6 Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/nice-search-plugin.html' rel='bookmark' title='Permanent Link: Nice Search Plugin!'>Nice Search Plugin!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/display-custom-content-to-search-engine-visitors.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Say Hello to returning visitors!</title>
		<link>http://www.wpfunc.com/wordpress/say-hello-to-returning-visitors.html</link>
		<comments>http://www.wpfunc.com/wordpress/say-hello-to-returning-visitors.html#comments</comments>
		<pubDate>Sun, 27 Dec 2009 10:19:01 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[comment_cookie]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[returning]]></category>
		<category><![CDATA[visitor]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=334</guid>
		<description><![CDATA[We can use cookies for show some custom messages to our visitor. But this cookies are comment_cookie. Also show custom message to normal visitors. If you want to show this custom messages read this article. Let&#8217;s Begin&#8230;
Here is the code;
&#60;?php if(isset($_COOKIE['comment_author_'.COOKIEHASH])) {
	$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];

	echo &#34;Welcome Back &#34;. $lastCommenter .&#34;!&#34;;

	} else {

	echo &#34;Welcome, Guest!&#34;;
} ?&#62;
That&#8217;s All. [...]<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/display-custom-content-to-search-engine-visitors.html' rel='bookmark' title='Permanent Link: Display Custom Content to Search Engine Visitors!'>Display Custom Content to Search Engine Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-your-mood-to-readers.html' rel='bookmark' title='Permanent Link: Show your Mood to Readers.'>Show your Mood to Readers.</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html' rel='bookmark' title='Permanent Link: Show Default Theme for IE6 Visitors!'>Show Default Theme for IE6 Visitors!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We can use cookies for show some custom messages to our visitor. But this cookies are comment_cookie. Also show custom message to normal visitors. If you want to show this custom messages read this article. Let&#8217;s Begin&#8230;<span id="more-334"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php;">&lt;?php if(isset($_COOKIE['comment_author_'.COOKIEHASH])) {
	$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];

	echo &quot;Welcome Back &quot;. $lastCommenter .&quot;!&quot;;

	} else {

	echo &quot;Welcome, Guest!&quot;;
} ?&gt;</pre>
<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%2Fsay-hello-to-returning-visitors.html&amp;title=Say%20Hello%20to%20returning%20visitors%21&amp;notes=We%20can%20use%20cookies%20for%20show%20some%20custom%20messages%20to%20our%20visitor.%20But%20this%20cookies%20are%20comment_cookie.%20Also%20show%20custom%20message%20to%20normal%20visitors.%20If%20you%20want%20to%20show%20this%20custom%20messages%20read%20this%20article.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5D%26'><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%2Fsay-hello-to-returning-visitors.html&amp;title=Say%20Hello%20to%20returning%20visitors%21&amp;bodytext=We%20can%20use%20cookies%20for%20show%20some%20custom%20messages%20to%20our%20visitor.%20But%20this%20cookies%20are%20comment_cookie.%20Also%20show%20custom%20message%20to%20normal%20visitors.%20If%20you%20want%20to%20show%20this%20custom%20messages%20read%20this%20article.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5D%26'><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%2Fsay-hello-to-returning-visitors.html&amp;t=Say%20Hello%20to%20returning%20visitors%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=Say%20Hello%20to%20returning%20visitors%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fsay-hello-to-returning-visitors.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%2Fsay-hello-to-returning-visitors.html&amp;title=Say%20Hello%20to%20returning%20visitors%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%2Fsay-hello-to-returning-visitors.html&amp;title=Say%20Hello%20to%20returning%20visitors%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%2Fsay-hello-to-returning-visitors.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%2Fsay-hello-to-returning-visitors.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%2Fsay-hello-to-returning-visitors.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/display-custom-content-to-search-engine-visitors.html' rel='bookmark' title='Permanent Link: Display Custom Content to Search Engine Visitors!'>Display Custom Content to Search Engine Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-your-mood-to-readers.html' rel='bookmark' title='Permanent Link: Show your Mood to Readers.'>Show your Mood to Readers.</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html' rel='bookmark' title='Permanent Link: Show Default Theme for IE6 Visitors!'>Show Default Theme for IE6 Visitors!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/say-hello-to-returning-visitors.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show your ads on only old posts!</title>
		<link>http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html</link>
		<comments>http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:24:25 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[15 days old]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Google adsense]]></category>
		<category><![CDATA[old posts]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=315</guid>
		<description><![CDATA[We use Google Adsense or any other ad servers for make money :) You can use this ads on your old posts. I don&#8217;t know any pluginfor that function but we can make a function for use ads&#8230; Let&#8217;s begin&#8230;
Here is the code;
To use this code open your functions.php and paste this code into end [...]<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/show-word-counts-on-your-posts.html' rel='bookmark' title='Permanent Link: Show word counts on your posts!'>Show word counts on your posts!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/disable-comments-on-30-day-older-posts.html' rel='bookmark' title='Permanent Link: Disable Comments on 30-day older posts'>Disable Comments on 30-day older posts</a></li>
<li><a href='http://www.wpfunc.com/general/related-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Related Posts, Without any Plugin!'>Related Posts, Without any Plugin!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We use Google Adsense or any other ad servers for make money :) You can use this ads on your old posts. I don&#8217;t know any pluginfor that function but we can make a function for use ads&#8230; Let&#8217;s begin&#8230;<span id="more-315"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;">To use this code open your <strong><span style="color: #ff0000;">functions.php</span></strong> and paste this code into end of file.</p>
<pre class="brush: php;">function is_old_post($post_id=null){
   $days = 15;
   global $wp_query;
   if(is_single() || is_page()) {
      if(!$post_id) {
         $post_id = $wp_query-&gt;post-&gt;ID;
      }
      $current_date = time();
      $offset = $days *60*60*24;
      $post_id = get_post($post_id);
      $post_date = mysql2date('U',$post_id-&gt;post_date);
      $cunning_math = $post_date + $offset;
      $test = $current_date - $cunning_math;
      if($test &gt; 0){
         $return = true;
      }else{
         $return = false;
      }
   }else{
      $return = false;
   }
   return $return;
}
</pre>
<p>After that use this code for show your ads&#8230;</p>
<pre class="brush: php;">&lt;?php if(is_old_post()){ ?&gt;
INSERT AD CODE HERE
&lt;?php } ?&gt;
</pre>
<p>This function show ads on your <strong>15 days old</strong> posts. To change this simply change <em><strong>$days </strong></em>value</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%21&amp;notes=We%20use%20Google%20Adsense%20or%20any%20other%20ad%20servers%20for%20make%20money%20%3A%29%20You%20can%20use%20this%20ads%20on%20your%20old%20posts.%20I%20don%27t%20know%20any%20pluginfor%20that%20function%20but%20we%20can%20make%20a%20function%20for%20use%20ads...%20Let%27s%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0ATo%20use%20this%20code%20open%20your'><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-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%21&amp;bodytext=We%20use%20Google%20Adsense%20or%20any%20other%20ad%20servers%20for%20make%20money%20%3A%29%20You%20can%20use%20this%20ads%20on%20your%20old%20posts.%20I%20don%27t%20know%20any%20pluginfor%20that%20function%20but%20we%20can%20make%20a%20function%20for%20use%20ads...%20Let%27s%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0ATo%20use%20this%20code%20open%20your'><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-ads-on-only-old-posts.html&amp;t=Show%20your%20ads%20on%20only%20old%20posts%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%20ads%20on%20only%20old%20posts%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.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-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%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-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%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-ads-on-only-old-posts.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-ads-on-only-old-posts.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-ads-on-only-old-posts.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/show-word-counts-on-your-posts.html' rel='bookmark' title='Permanent Link: Show word counts on your posts!'>Show word counts on your posts!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/disable-comments-on-30-day-older-posts.html' rel='bookmark' title='Permanent Link: Disable Comments on 30-day older posts'>Disable Comments on 30-day older posts</a></li>
<li><a href='http://www.wpfunc.com/general/related-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Related Posts, Without any Plugin!'>Related Posts, Without any Plugin!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Show Category Description without a plugin!</title>
		<link>http://www.wpfunc.com/wordpress/show-category-description-without-a-plugin.html</link>
		<comments>http://www.wpfunc.com/wordpress/show-category-description-without-a-plugin.html#comments</comments>
		<pubDate>Mon, 30 Nov 2009 10:48:01 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[archive.php]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[category_description]]></category>
		<category><![CDATA[description]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=307</guid>
		<description><![CDATA[You can show your ategory description without a plugin. It&#8217;s needed only one-line code. When you add this code you can show your category description after the title or where you want. Lets begin&#8230;
Here is the code;
&#60;?php echo category_description(); ?&#62;
You can add this lines to archive.php (category section) or where you want. Selected category&#8217;s description [...]<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/make-an-archives-page-template.html' rel='bookmark' title='Permanent Link: Make an Archives Page Template'>Make an Archives Page Template</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-add-author-name-to-author-archive.html' rel='bookmark' title='Permanent Link: How to Add Author Name to Author Archive'>How to Add Author Name to Author Archive</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/nice-search-plugin.html' rel='bookmark' title='Permanent Link: Nice Search Plugin!'>Nice Search Plugin!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can show your ategory description without a plugin. It&#8217;s needed only one-line code. When you add this code you can show your category description after the title or where you want. Lets begin&#8230;<span id="more-307"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<pre class="brush: php;">&lt;?php echo category_description(); ?&gt;</pre>
<p style="text-align: justify;">You can add this lines to archive.php (category section) or where you want. Selected category&#8217;s description shown after title. You can add css templates for this. Look at more information ;)</p>
<p style="text-align: justify;"><a href="http://codex.wordpress.org/es:Category_Templates" target="_blank">More information (Spanish)</a></p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-category-description-without-a-plugin.html&amp;title=Show%20Category%20Description%20without%20a%20plugin%21&amp;notes=You%20can%20show%20your%20ategory%20description%20without%20a%20plugin.%20It%27s%20needed%20only%20one-line%20code.%20When%20you%20add%20this%20code%20you%20can%20show%20your%20category%20description%20after%20the%20title%20or%20where%20you%20want.%20Lets%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5D%26lt%3B%3Fphp%20echo%20category_d'><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-category-description-without-a-plugin.html&amp;title=Show%20Category%20Description%20without%20a%20plugin%21&amp;bodytext=You%20can%20show%20your%20ategory%20description%20without%20a%20plugin.%20It%27s%20needed%20only%20one-line%20code.%20When%20you%20add%20this%20code%20you%20can%20show%20your%20category%20description%20after%20the%20title%20or%20where%20you%20want.%20Lets%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5D%26lt%3B%3Fphp%20echo%20category_d'><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-category-description-without-a-plugin.html&amp;t=Show%20Category%20Description%20without%20a%20plugin%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%20Category%20Description%20without%20a%20plugin%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-category-description-without-a-plugin.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-category-description-without-a-plugin.html&amp;title=Show%20Category%20Description%20without%20a%20plugin%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-category-description-without-a-plugin.html&amp;title=Show%20Category%20Description%20without%20a%20plugin%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-category-description-without-a-plugin.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-category-description-without-a-plugin.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-category-description-without-a-plugin.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/make-an-archives-page-template.html' rel='bookmark' title='Permanent Link: Make an Archives Page Template'>Make an Archives Page Template</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-add-author-name-to-author-archive.html' rel='bookmark' title='Permanent Link: How to Add Author Name to Author Archive'>How to Add Author Name to Author Archive</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/nice-search-plugin.html' rel='bookmark' title='Permanent Link: Nice Search Plugin!'>Nice Search Plugin!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/show-category-description-without-a-plugin.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show word counts on your posts!</title>
		<link>http://www.wpfunc.com/wordpress/show-word-counts-on-your-posts.html</link>
		<comments>http://www.wpfunc.com/wordpress/show-word-counts-on-your-posts.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 19:39:14 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[single.php]]></category>
		<category><![CDATA[word count]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=247</guid>
		<description><![CDATA[I konw there are some plugin about that but you can do that with a simple code. No need plugins. If you want to add some attractive code to show  word count on your posts only edit two file and use a short-code&#8230;
Here is the code;
We will change your theme&#8217;s functions.php and single.php, because of [...]<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/general/related-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Related Posts, Without any Plugin!'>Related Posts, Without any Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-your-categories-in-two-columns.html' rel='bookmark' title='Permanent Link: Show your categories in two Columns!'>Show your categories in two Columns!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/popular-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Popular Posts, Without any Plugin!'>Popular Posts, Without any Plugin!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I konw there are some plugin about that but you can do that with a simple code. No need plugins. If you want to add some attractive code to show  word count on your posts only edit two file and use a short-code&#8230;<span id="more-247"></span></p>
<h3>Here is the code;</h3>
<p style="text-align: justify;"><strong>We will change your theme&#8217;s functions.php and single.php, because of this wou need to make the backup this files</strong>. First the code of  <strong><span style="color: #ff0000;">functions.php</span></strong>;</p>
<pre class="brush: plain;">function count_words($str){
     $words = 0;
     $str = eregi_replace(&quot; +&quot;, &quot; &quot;, $str);
     $array = explode(&quot; &quot;, $str);
     for($i=0;$i &lt; count($array);$i++)
 	 {
         if (eregi(&quot;[0-9A-Za-zÀ-ÖØ-öø-ÿ]&quot;, $array[$i]))
             $words++;
     }
     return $words;
 }
</pre>
<p style="text-align: justify;">Here is the code of <strong><span style="color: #ff0000;">sinlge.php</span></strong>;</p>
<pre class="brush: plain;">Word count: &lt;?php echo count_words($post-&gt;post_content); ?&gt;</pre>
<p style="text-align: justify;">After you placed this code to single.php the code count your words.<br />
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%2Fshow-word-counts-on-your-posts.html&amp;title=Show%20word%20counts%20on%20your%20posts%21&amp;notes=I%20konw%20there%20are%20some%20plugin%20about%20that%20but%20you%20can%20do%20that%20with%20a%20simple%20code.%20No%20need%20plugins.%20If%20you%20want%20to%20add%20some%20attractive%20code%20to%20show%20%C2%A0word%20count%20on%20your%20posts%20only%20edit%20two%20file%20and%20use%20a%20short-code...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AWe%20will%20chang'><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-word-counts-on-your-posts.html&amp;title=Show%20word%20counts%20on%20your%20posts%21&amp;bodytext=I%20konw%20there%20are%20some%20plugin%20about%20that%20but%20you%20can%20do%20that%20with%20a%20simple%20code.%20No%20need%20plugins.%20If%20you%20want%20to%20add%20some%20attractive%20code%20to%20show%20%C2%A0word%20count%20on%20your%20posts%20only%20edit%20two%20file%20and%20use%20a%20short-code...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AWe%20will%20chang'><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-word-counts-on-your-posts.html&amp;t=Show%20word%20counts%20on%20your%20posts%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%20word%20counts%20on%20your%20posts%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-word-counts-on-your-posts.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-word-counts-on-your-posts.html&amp;title=Show%20word%20counts%20on%20your%20posts%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-word-counts-on-your-posts.html&amp;title=Show%20word%20counts%20on%20your%20posts%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-word-counts-on-your-posts.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-word-counts-on-your-posts.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-word-counts-on-your-posts.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/general/related-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Related Posts, Without any Plugin!'>Related Posts, Without any Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-your-categories-in-two-columns.html' rel='bookmark' title='Permanent Link: Show your categories in two Columns!'>Show your categories in two Columns!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/popular-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Popular Posts, Without any Plugin!'>Popular Posts, Without any Plugin!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/show-word-counts-on-your-posts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
