<?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; functions.php</title>
	<atom:link href="http://www.wpfunc.com/tag/functions-php/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>New Wp Menu System on Old themes&#8230;</title>
		<link>http://www.wpfunc.com/wordpress/new-wp-menu-system-on-old-themes.html</link>
		<comments>http://www.wpfunc.com/wordpress/new-wp-menu-system-on-old-themes.html#comments</comments>
		<pubDate>Fri, 09 Jul 2010 09:05:32 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fallback_cp]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[menu sistemi]]></category>
		<category><![CDATA[menu_order]]></category>
		<category><![CDATA[sor_column]]></category>
		<category><![CDATA[theme_location]]></category>
		<category><![CDATA[wordpress 3.0]]></category>
		<category><![CDATA[wp-admin]]></category>
		<category><![CDATA[wp_categories_menu]]></category>
		<category><![CDATA[wp_nav_menu]]></category>
		<category><![CDATA[wp_page_menu]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=457</guid>
		<description><![CDATA[With this article i&#8217;ll show you how to use new wordpress menu system on old themes (before 3.0). Let&#8217;s Begin.
Open your theme&#8217;s functions.php with your favourite php editor. After that add this code into file. First code for theme menu support, second code for register a menu area for use.
// New Menu Support For theme [...]<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/highlight-the-searched-text.html' rel='bookmark' title='Permanent Link: Highlight the Searched Text!'>Highlight the Searched Text!</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>
<li><a href='http://www.wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html' rel='bookmark' title='Permanent Link: Make Your RSS Feed Link Auto Discoverable!'>Make Your RSS Feed Link Auto Discoverable!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">With this article i&#8217;ll show you how to use new wordpress menu system on old themes (before 3.0). Let&#8217;s Begin.<span id="more-457"></span></p>
<p style="text-align: justify;">Open your theme&#8217;s <span style="color: #ff0000;"><strong>functions.php</strong></span> with your favourite php editor. After that add this code into file. First code for theme menu support, second code for register a menu area for use.</p>
<pre class="brush: php;">// New Menu Support For theme //
add_theme_support( 'nav-menus' );</pre>
<pre class="brush: php;">register_nav_menu('main', 'Main Navigation Area');</pre>
<p style="text-align: justify;">After that save functions.php and upload the server. After that open your <span style="color: #ff0000;"><strong>header.php</strong></span> and replace all that code with your old menu code (wp_page_menu, wp_categories_menu).</p>
<pre class="brush: php;">&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'main', 'sort_column' =&gt; 'menu_order', 'fallback_cb' =&gt; 'wp_page_menu' ) ); ?&gt;</pre>
<p style="text-align: justify;">After that you can use new menu system with your old theme. And if you don&#8217;t wat to use new menu. This code add <strong>wp_page_menu</strong> for you.</p>
<p style="text-align: justify;">That&#8217;s All.</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fnew-wp-menu-system-on-old-themes.html&amp;title=New%20Wp%20Menu%20System%20on%20Old%20themes...&amp;notes=With%20this%20article%20i%27ll%20show%20you%20how%20to%20use%20new%20wordpress%20menu%20system%20on%20old%20themes%20%28before%203.0%29.%20Let%27s%20Begin.%0D%0AOpen%20your%20theme%27s%20functions.php%20with%20your%20favourite%20php%20editor.%20After%20that%20add%20this%20code%20into%20file.%20First%20code%20for%20theme%20menu%20support%2C%20seco'><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%2Fnew-wp-menu-system-on-old-themes.html&amp;title=New%20Wp%20Menu%20System%20on%20Old%20themes...&amp;bodytext=With%20this%20article%20i%27ll%20show%20you%20how%20to%20use%20new%20wordpress%20menu%20system%20on%20old%20themes%20%28before%203.0%29.%20Let%27s%20Begin.%0D%0AOpen%20your%20theme%27s%20functions.php%20with%20your%20favourite%20php%20editor.%20After%20that%20add%20this%20code%20into%20file.%20First%20code%20for%20theme%20menu%20support%2C%20seco'><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%2Fnew-wp-menu-system-on-old-themes.html&amp;t=New%20Wp%20Menu%20System%20on%20Old%20themes...'><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=New%20Wp%20Menu%20System%20on%20Old%20themes...&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fnew-wp-menu-system-on-old-themes.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%2Fnew-wp-menu-system-on-old-themes.html&amp;title=New%20Wp%20Menu%20System%20on%20Old%20themes...'><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%2Fnew-wp-menu-system-on-old-themes.html&amp;title=New%20Wp%20Menu%20System%20on%20Old%20themes...'><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%2Fnew-wp-menu-system-on-old-themes.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%2Fnew-wp-menu-system-on-old-themes.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%2Fnew-wp-menu-system-on-old-themes.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/highlight-the-searched-text.html' rel='bookmark' title='Permanent Link: Highlight the Searched Text!'>Highlight the Searched Text!</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>
<li><a href='http://www.wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html' rel='bookmark' title='Permanent Link: Make Your RSS Feed Link Auto Discoverable!'>Make Your RSS Feed Link Auto Discoverable!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/new-wp-menu-system-on-old-themes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delay your feed updates</title>
		<link>http://www.wpfunc.com/wordpress/delay-your-feed-updates.html</link>
		<comments>http://www.wpfunc.com/wordpress/delay-your-feed-updates.html#comments</comments>
		<pubDate>Thu, 01 Jul 2010 07:47:49 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[delay time]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[publish time]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=454</guid>
		<description><![CDATA[You can set the feed update time with a simple function. The only need you have to edit your theme&#8217;s functions.php. Let&#8217;s Begin.
Here is the code;
// delay feed update
function publish_later_on_feed($where) {
	global $wpdb;

	if (is_feed()) {
		// timestamp in WP-format
		$now = gmdate('Y-m-d H:i:s');

		// value for wait; + device
		$wait = '5'; // integer

		// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
		$device = 'MINUTE'; // MINUTE, HOUR, [...]<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/do-you-want-to-add-your-ads-to-your-blog-feed.html' rel='bookmark' title='Permanent Link: Do you want to add your ads to your Blog Feed?'>Do you want to add your ads to your Blog Feed?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html' rel='bookmark' title='Permanent Link: Make Your RSS Feed Link Auto Discoverable!'>Make Your RSS Feed Link Auto Discoverable!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/contact-form-7-changes-plugin-admin-path.html' rel='bookmark' title='Permanent Link: Contact Form 7 Changes Plugin Admin Path!'>Contact Form 7 Changes Plugin Admin Path!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can set the feed update time with a simple function. The only need you have to edit your theme&#8217;s functions.php. Let&#8217;s Begin.<span id="more-454"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php;">// delay feed update
function publish_later_on_feed($where) {
	global $wpdb;

	if (is_feed()) {
		// timestamp in WP-format
		$now = gmdate('Y-m-d H:i:s');

		// value for wait; + device
		$wait = '5'; // integer

		// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
		$device = 'MINUTE'; // MINUTE, HOUR, DAY, WEEK, MONTH, YEAR

		// add SQL-sytax to default $where
		$where .= &quot; AND TIMESTAMPDIFF($device, $wpdb-&gt;posts.post_date_gmt, '$now') &gt; $wait &quot;;
	}
	return $where;
}
add_filter('posts_where', 'publish_later_on_feed');</pre>
<p>With this code update will wait for 5 minutes. You can chnge this time period. Just change <span style="color: #ff0000;"><strong>$wait</strong></span> value for this.<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%2Fdelay-your-feed-updates.html&amp;title=Delay%20your%20feed%20updates&amp;notes=You%20can%20set%20the%20feed%20update%20time%20with%20a%20simple%20function.%20The%20only%20need%20you%20have%20to%20edit%20your%20theme%27s%20functions.php.%20Let%27s%20Begin.%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5D%2F%2F%20delay%20feed%20update%0D%0Afunction%20publish_later_on_feed%28%24where%29%20%7B%0D%0A%09global%20%24wpdb%3B%0D%0A%0D%0A%09if%20%28is_feed%28%29'><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%2Fdelay-your-feed-updates.html&amp;title=Delay%20your%20feed%20updates&amp;bodytext=You%20can%20set%20the%20feed%20update%20time%20with%20a%20simple%20function.%20The%20only%20need%20you%20have%20to%20edit%20your%20theme%27s%20functions.php.%20Let%27s%20Begin.%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5D%2F%2F%20delay%20feed%20update%0D%0Afunction%20publish_later_on_feed%28%24where%29%20%7B%0D%0A%09global%20%24wpdb%3B%0D%0A%0D%0A%09if%20%28is_feed%28%29'><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%2Fdelay-your-feed-updates.html&amp;t=Delay%20your%20feed%20updates'><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=Delay%20your%20feed%20updates&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdelay-your-feed-updates.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%2Fdelay-your-feed-updates.html&amp;title=Delay%20your%20feed%20updates'><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%2Fdelay-your-feed-updates.html&amp;title=Delay%20your%20feed%20updates'><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%2Fdelay-your-feed-updates.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%2Fdelay-your-feed-updates.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%2Fdelay-your-feed-updates.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/do-you-want-to-add-your-ads-to-your-blog-feed.html' rel='bookmark' title='Permanent Link: Do you want to add your ads to your Blog Feed?'>Do you want to add your ads to your Blog Feed?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html' rel='bookmark' title='Permanent Link: Make Your RSS Feed Link Auto Discoverable!'>Make Your RSS Feed Link Auto Discoverable!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/contact-form-7-changes-plugin-admin-path.html' rel='bookmark' title='Permanent Link: Contact Form 7 Changes Plugin Admin Path!'>Contact Form 7 Changes Plugin Admin Path!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/delay-your-feed-updates.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Numbers next to each post!</title>
		<link>http://www.wpfunc.com/wordpress/add-numbers-next-to-each-post.html</link>
		<comments>http://www.wpfunc.com/wordpress/add-numbers-next-to-each-post.html#comments</comments>
		<pubDate>Mon, 19 Apr 2010 21:23:21 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[article numbers]]></category>
		<category><![CDATA[article title]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[Loop]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[wordpress forums]]></category>
		<category><![CDATA[wprecipes]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=425</guid>
		<description><![CDATA[I found that trick in WordPress Forums. After i saw this trick into WpRecipes. You can add article numbers (ex. Article #1, Article #2) next to your posts. Let&#8217;s Begin&#8230;
Here is the code;
Add this code into your theme&#8217;s functions.php;
function updateNumbers() {
/* numbering the published posts: preparation: create an array with the ID in sequence 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/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/popular-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Popular Posts, Without any Plugin!'>Popular Posts, Without any Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-change-your-post-page-title-with-a-custom-field.html' rel='bookmark' title='Permanent Link: How to change your Post/Page title with a custom field?'>How to change your Post/Page title with a custom field?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I found that trick in <a href="http://wordpress.org/support/topic/375293?replies=5#post-1453605" target="_blank">WordPress Forums</a>. After i saw this trick into WpRecipes. You can add article numbers (ex. Article #1, Article #2) next to your posts. Let&#8217;s Begin&#8230;<span id="more-425"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;">Add this code into your <span style="color: #ff0000;"><strong>theme&#8217;s functions.php</strong></span>;</p>
<pre class="brush: php;">function updateNumbers() {
/* numbering the published posts: preparation: create an array with the ID in sequence of publication date, /
/ save the number in custom field 'incr_number' of post with ID  /
/ to show in post (within the loop) use &lt;?php echo get_post_meta($post-&gt;ID,'incr_number',true); ?&gt;
/ alchymyth 2010 */
global $wpdb;
$querystr = &quot;SELECT $wpdb-&gt;posts.* FROM $wpdb-&gt;posts WHERE $wpdb-&gt;posts.post_status = 'publish' AND $wpdb-&gt;posts.post_type = 'post' &quot;;
$pageposts = $wpdb-&gt;get_results($querystr, OBJECT);
$counts = 0 ;
if ($pageposts):
foreach ($pageposts as $post):
setup_postdata($post);
$counts++;
add_post_meta($post-&gt;ID, 'incr_number', $counts, true);
update_post_meta($post-&gt;ID, 'incr_number', $counts);
endforeach;
endif;
}

add_action ( 'publish_post', 'updateNumbers' );
add_action ( 'deleted_post', 'updateNumbers' );
add_action ( 'edit_post', 'updateNumbers' );</pre>
<p style="text-align: justify;">After this you can use this short code when you call your article names.</p>
<pre class="brush: php;">&lt;?php echo get_post_meta($post-&gt;ID,'incr_number',true); ?&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%2Fadd-numbers-next-to-each-post.html&amp;title=Add%20Numbers%20next%20to%20each%20post%21&amp;notes=I%20found%20that%20trick%20in%20WordPress%20Forums.%20After%20i%20saw%20this%20trick%20into%20WpRecipes.%20You%20can%20add%20article%20numbers%20%28ex.%20Article%20%231%2C%20Article%20%232%29%20next%20to%20your%20posts.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AAdd%20this%20code%20into%20your%20theme%27s%20functions.php%3B%0D%0A%0D%0A%5Bphp%5Dfu'><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%2Fadd-numbers-next-to-each-post.html&amp;title=Add%20Numbers%20next%20to%20each%20post%21&amp;bodytext=I%20found%20that%20trick%20in%20WordPress%20Forums.%20After%20i%20saw%20this%20trick%20into%20WpRecipes.%20You%20can%20add%20article%20numbers%20%28ex.%20Article%20%231%2C%20Article%20%232%29%20next%20to%20your%20posts.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AAdd%20this%20code%20into%20your%20theme%27s%20functions.php%3B%0D%0A%0D%0A%5Bphp%5Dfu'><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%2Fadd-numbers-next-to-each-post.html&amp;t=Add%20Numbers%20next%20to%20each%20post%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=Add%20Numbers%20next%20to%20each%20post%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fadd-numbers-next-to-each-post.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%2Fadd-numbers-next-to-each-post.html&amp;title=Add%20Numbers%20next%20to%20each%20post%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%2Fadd-numbers-next-to-each-post.html&amp;title=Add%20Numbers%20next%20to%20each%20post%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%2Fadd-numbers-next-to-each-post.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%2Fadd-numbers-next-to-each-post.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%2Fadd-numbers-next-to-each-post.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-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/popular-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Popular Posts, Without any Plugin!'>Popular Posts, Without any Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-change-your-post-page-title-with-a-custom-field.html' rel='bookmark' title='Permanent Link: How to change your Post/Page title with a custom field?'>How to change your Post/Page title with a custom field?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/add-numbers-next-to-each-post.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>Show timestamps like social networks!</title>
		<link>http://www.wpfunc.com/wordpress/show-timestamps-like-social-networks.html</link>
		<comments>http://www.wpfunc.com/wordpress/show-timestamps-like-social-networks.html#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:12:45 +0000</pubDate>
		<dc:creator>KaiseRCrazY</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;
function time_ago( $type = 'post' ) {
	$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';

	return human_time_diff($d('U'), [...]<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/add-social-bookmarks-bar-into-your-blog.html' rel='bookmark' title='Permanent Link: Add Social Bookmarks Bar into your Blog!'>Add Social Bookmarks Bar into your Blog!</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/wordpress/show-your-last-twitter-update-without-a-plugin.html' rel='bookmark' title='Permanent Link: Show Your Last Twitter Update Without a Plugin'>Show Your Last Twitter Update Without a Plugin</a></li>
</ol>]]></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;">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;">&lt;?php echo time_ago(); ?&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%2Fshow-timestamps-like-social-networks.html&amp;title=Show%20timestamps%20like%20social%20networks%21&amp;notes=You%20can%20show%20your%20timestamps%20like%20other%20social%20networks.%20With%20this%20simple%20and%20awesome%20trick%2C%20you%20can%20change%20long%20date%20and%20time%20stamps%20with%20ex.%20twitter%27s%20%221%20min%20ago%22.%20Lets%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AAdd%20this%20code%20into%20your%20theme%27s%20functions.php%3B%0D%0A'><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-timestamps-like-social-networks.html&amp;title=Show%20timestamps%20like%20social%20networks%21&amp;bodytext=You%20can%20show%20your%20timestamps%20like%20other%20social%20networks.%20With%20this%20simple%20and%20awesome%20trick%2C%20you%20can%20change%20long%20date%20and%20time%20stamps%20with%20ex.%20twitter%27s%20%221%20min%20ago%22.%20Lets%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0AAdd%20this%20code%20into%20your%20theme%27s%20functions.php%3B%0D%0A'><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-timestamps-like-social-networks.html&amp;t=Show%20timestamps%20like%20social%20networks%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%20timestamps%20like%20social%20networks%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-timestamps-like-social-networks.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-timestamps-like-social-networks.html&amp;title=Show%20timestamps%20like%20social%20networks%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-timestamps-like-social-networks.html&amp;title=Show%20timestamps%20like%20social%20networks%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-timestamps-like-social-networks.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-timestamps-like-social-networks.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-timestamps-like-social-networks.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/add-social-bookmarks-bar-into-your-blog.html' rel='bookmark' title='Permanent Link: Add Social Bookmarks Bar into your Blog!'>Add Social Bookmarks Bar into your Blog!</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/wordpress/show-your-last-twitter-update-without-a-plugin.html' rel='bookmark' title='Permanent Link: Show Your Last Twitter Update Without a Plugin'>Show Your Last Twitter Update Without a Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/show-timestamps-like-social-networks.html/feed</wfw:commentRss>
		<slash:comments>0</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>Remove Protected and Private from title!</title>
		<link>http://www.wpfunc.com/wordpress/remove-protected-and-private-from-title.html</link>
		<comments>http://www.wpfunc.com/wordpress/remove-protected-and-private-from-title.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:00:19 +0000</pubDate>
		<dc:creator>KaiseRCrazY</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;
function the_title_trim($title) {
	$title = attribute_escape($title);
	$findthese = array(
		'#Protected:#',
		'#Private:#'
	);
	$replacewith = array(
		'', // What to replace &#34;Protected:&#34; with
		'' // What to replace &#34;Private:&#34; with
	);
	$title = preg_replace($findthese, $replacewith, $title);
	return $title;
}
add_filter('the_title', 'the_title_trim');

That&#8217;s All!


Related posts:How to change 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/how-to-change-your-post-page-title-with-a-custom-field.html' rel='bookmark' title='Permanent Link: How to change your Post/Page title with a custom field?'>How to change your Post/Page title with a custom field?</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>
<li><a href='http://www.wpfunc.com/wordpress/remove-menus-in-dashboard.html' rel='bookmark' title='Permanent Link: Remove menus in Dashboard!'>Remove menus in Dashboard!</a></li>
</ol>]]></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;">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>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fremove-protected-and-private-from-title.html&amp;title=Remove%20Protected%20and%20Private%20from%20title%21&amp;notes=Add%20this%20code%20to%20functions.php%20in%20theme%20directory.%20This%20code%20removes%20%22protected%22%20and%20%22private%22%20prefixs%20from%20your%20article%20titles.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5Dfunction%20the_title_trim%28%24title%29%20%7B%0D%0A%09%24title%20%3D%20attribute_escape%28%24title%29%3B%0D%0A%09%24findt'><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%2Fremove-protected-and-private-from-title.html&amp;title=Remove%20Protected%20and%20Private%20from%20title%21&amp;bodytext=Add%20this%20code%20to%20functions.php%20in%20theme%20directory.%20This%20code%20removes%20%22protected%22%20and%20%22private%22%20prefixs%20from%20your%20article%20titles.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5Dfunction%20the_title_trim%28%24title%29%20%7B%0D%0A%09%24title%20%3D%20attribute_escape%28%24title%29%3B%0D%0A%09%24findt'><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%2Fremove-protected-and-private-from-title.html&amp;t=Remove%20Protected%20and%20Private%20from%20title%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=Remove%20Protected%20and%20Private%20from%20title%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fremove-protected-and-private-from-title.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%2Fremove-protected-and-private-from-title.html&amp;title=Remove%20Protected%20and%20Private%20from%20title%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%2Fremove-protected-and-private-from-title.html&amp;title=Remove%20Protected%20and%20Private%20from%20title%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%2Fremove-protected-and-private-from-title.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%2Fremove-protected-and-private-from-title.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%2Fremove-protected-and-private-from-title.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-change-your-post-page-title-with-a-custom-field.html' rel='bookmark' title='Permanent Link: How to change your Post/Page title with a custom field?'>How to change your Post/Page title with a custom field?</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>
<li><a href='http://www.wpfunc.com/wordpress/remove-menus-in-dashboard.html' rel='bookmark' title='Permanent Link: Remove menus in Dashboard!'>Remove menus in Dashboard!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/remove-protected-and-private-from-title.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove menus in Dashboard!</title>
		<link>http://www.wpfunc.com/wordpress/remove-menus-in-dashboard.html</link>
		<comments>http://www.wpfunc.com/wordpress/remove-menus-in-dashboard.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 16:31:57 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[remove menu]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=393</guid>
		<description><![CDATA[You can remove WordPress Dashboard&#8217;s menus with easy code. Just install this code into your theme&#8217;s functions.php and use like this. You can use this code for your clients Dashoards. Lets Begin&#8230;
Here is the code;
function remove_menus () {
global $menu;
	$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));
	end ($menu);
	while (prev($menu)){
		$value = explode(' [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html' rel='bookmark' title='Permanent Link: How to change dashboard footer texts?'>How to change dashboard footer texts?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/did-you-see-platinum-seo-pack-has-a-new-menu.html' rel='bookmark' title='Permanent Link: Did you see? Platinum SEO Pack Has a new menu!'>Did you see? Platinum SEO Pack Has a new menu!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-your-usable-tags-in-your-comment-form.html' rel='bookmark' title='Permanent Link: Show your usable tags in your comment form!'>Show your usable tags in your comment form!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can remove WordPress Dashboard&#8217;s menus with easy code. Just install this code into your theme&#8217;s functions.php and use like this. You can use this code for your clients Dashoards. Lets Begin&#8230;<span id="more-393"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php;">function remove_menus () {
global $menu;
	$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));
	end ($menu);
	while (prev($menu)){
		$value = explode(' ',$menu[key($menu)][0]);
		if(in_array($value[0] != NULL?$value[0]:&quot;&quot; , $restricted)){unset($menu[key($menu)]);}
	}
}
add_action('admin_menu', 'remove_menus');
</pre>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fremove-menus-in-dashboard.html&amp;title=Remove%20menus%20in%20Dashboard%21&amp;notes=You%20can%20remove%20WordPress%20Dashboard%27s%20menus%20with%20easy%20code.%20Just%20install%20this%20code%20into%20your%20theme%27s%20functions.php%20and%20use%20like%20this.%20You%20can%20use%20this%20code%20for%20your%20clients%20Dashoards.%20Lets%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5Dfunction%20remove_menus%20%28%29%20%7B'><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%2Fremove-menus-in-dashboard.html&amp;title=Remove%20menus%20in%20Dashboard%21&amp;bodytext=You%20can%20remove%20WordPress%20Dashboard%27s%20menus%20with%20easy%20code.%20Just%20install%20this%20code%20into%20your%20theme%27s%20functions.php%20and%20use%20like%20this.%20You%20can%20use%20this%20code%20for%20your%20clients%20Dashoards.%20Lets%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bphp%5Dfunction%20remove_menus%20%28%29%20%7B'><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%2Fremove-menus-in-dashboard.html&amp;t=Remove%20menus%20in%20Dashboard%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=Remove%20menus%20in%20Dashboard%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fremove-menus-in-dashboard.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%2Fremove-menus-in-dashboard.html&amp;title=Remove%20menus%20in%20Dashboard%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%2Fremove-menus-in-dashboard.html&amp;title=Remove%20menus%20in%20Dashboard%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%2Fremove-menus-in-dashboard.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%2Fremove-menus-in-dashboard.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%2Fremove-menus-in-dashboard.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html' rel='bookmark' title='Permanent Link: How to change dashboard footer texts?'>How to change dashboard footer texts?</a></li>
<li><a href='http://www.wpfunc.com/wordpress/did-you-see-platinum-seo-pack-has-a-new-menu.html' rel='bookmark' title='Permanent Link: Did you see? Platinum SEO Pack Has a new menu!'>Did you see? Platinum SEO Pack Has a new menu!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/show-your-usable-tags-in-your-comment-form.html' rel='bookmark' title='Permanent Link: Show your usable tags in your comment form!'>Show your usable tags in your comment form!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/remove-menus-in-dashboard.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change dashboard footer texts?</title>
		<link>http://www.wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html</link>
		<comments>http://www.wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 20:23:31 +0000</pubDate>
		<dc:creator>KaiseRCrazY</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;
function remove_footer_admin () {
    echo &#34;Your own text&#34;;
}
add_filter('admin_footer_text', 'remove_footer_admin');

Don&#8217;t forget. You will [...]<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/remove-menus-in-dashboard.html' rel='bookmark' title='Permanent Link: Remove menus in Dashboard!'>Remove menus in Dashboard!</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/wordpress/display-who-modify-your-posts.html' rel='bookmark' title='Permanent Link: Display who modify your post(s)!'>Display who modify your post(s)!</a></li>
</ol>]]></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;">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>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html&amp;title=How%20to%20change%20dashboard%20footer%20texts%3F&amp;notes=When%20you%20build%20a%20theme%20you%20can%20use%20this%20code%20for%20hide%2Fremove%20WordPress%20Dashboard%27s%20links.%20you%20have%20to%20add%20this%20code%20into%20your%20theme%27s%20functions.php.%20After%20that%20you%20can%20write%20your%20own%20text%20with%20dashboard%20footer.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bp'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html&amp;title=How%20to%20change%20dashboard%20footer%20texts%3F&amp;bodytext=When%20you%20build%20a%20theme%20you%20can%20use%20this%20code%20for%20hide%2Fremove%20WordPress%20Dashboard%27s%20links.%20you%20have%20to%20add%20this%20code%20into%20your%20theme%27s%20functions.php.%20After%20that%20you%20can%20write%20your%20own%20text%20with%20dashboard%20footer.%20Let%27s%20Begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0A%5Bp'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html&amp;t=How%20to%20change%20dashboard%20footer%20texts%3F'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=How%20to%20change%20dashboard%20footer%20texts%3F&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html&amp;title=How%20to%20change%20dashboard%20footer%20texts%3F'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html&amp;title=How%20to%20change%20dashboard%20footer%20texts%3F'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-change-dashboard-footer-texts.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/remove-menus-in-dashboard.html' rel='bookmark' title='Permanent Link: Remove menus in Dashboard!'>Remove menus in Dashboard!</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/wordpress/display-who-modify-your-posts.html' rel='bookmark' title='Permanent Link: Display who modify your post(s)!'>Display who modify your post(s)!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html/feed</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>
