<?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; code</title>
	<atom:link href="http://wpfunc.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Catch the First Image (Upgraded)</title>
		<link>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html</link>
		<comments>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html#comments</comments>
		<pubDate>Sat, 12 Nov 2011 00:42:34 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[catch the first image]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[custom field]]></category>
		<category><![CDATA[first image]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[latest]]></category>
		<category><![CDATA[single.php]]></category>
		<category><![CDATA[thumb]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[upgraded]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=509</guid>
		<description><![CDATA[Brian asked me here about Catch the First image function can be upgrade. I was coded this function for my Turkish blog for Home Page thumbs. If you set no image about post (not the wordpress post thumb feature, if you dont upload any image) this function get custom (default) image for this. Let&#8217;s Begin&#8230;
The [...]]]></description>
			<content:encoded><![CDATA[<p>Brian asked me <a href="http://www.wpfunc.com/wordpress/catch-the-first-image.html/comment-page-1#comment-949" target="_blank">here</a> about <a href="http://www.wpfunc.com/wordpress/catch-the-first-image.html" title="Catch the First Image" target="_blank">Catch the First image function</a> can be upgrade. I was coded this function for my Turkish blog for Home Page thumbs. If you set no image about post (not the wordpress post thumb feature, if you dont upload any image) this function get custom (default) image for this. Let&#8217;s Begin&#8230;<span id="more-509"></span></p>
<h4>The Code;</h4>
<p>You will edit your theme&#8217;s <strong>functions.php</strong>. Because of this you should <strong>backup</strong> before. File&#8217;s path is <strong>/wp-content/themes/your-theme/functions.php</strong></p>
<pre class="brush: php; title: ; notranslate">// Get Image Attachments
function sa_get_image($postid=0, $size='thumbnail') { //it can be thumbnail or full
	if ($postid&lt;1)
	$postid = get_the_ID();
	$thumb = get_post_meta($postid, &quot;thumb&quot;, TRUE); // Declare the custom field for the image
	if ($thumb != null or $thumb != '') {
		echo $thumb;
	}
	elseif ($images = get_children(array( //If you upload an image function gets first image
		'post_parent' =&gt; $postid,
		'post_type' =&gt; 'attachment',
		'numberposts' =&gt; '1',
		'post_mime_type' =&gt; 'image', )))
		foreach($images as $image) {
			$thumbnail=wp_get_attachment_image_src($image-&gt;ID, $size);
			?&gt;
	&lt;?php echo $thumbnail[0]; ?&gt;
	&lt;?php }
		else { //If you don't upload or declare as thumb custom field func. gets custom (default) image
		echo get_bloginfo ( 'template_directory' ); //same as wp-content/themes/your-theme/
		echo '/images/image-pending.gif'; // Put this image into your themes images folder and set the path here
	}
}</pre>
<p>You can use this function with your several files like index.php, single.php or anything. </p>
<pre class="brush: php; title: ; notranslate">&lt;img src=&quot;&lt;?php sa_get_image($post-&gt;ID, 'thumbnail'); ?&gt;&quot; /&gt;</pre>
<p>If you set your thumbnail size 100*100 from wordpress you can get a thumbnail image where you want. Also you can use another function with that. You can style your image&#8217;s div or you can use timthumb.</p>
<h4>Without Timthumb;</h4>
<pre class="brush: php; title: ; notranslate">// Show Post Thumbnails
function sa_show_thumb_tim() {
?&gt;
&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;img class=&quot;thumb&quot; width=&quot;100&quot; height&quot;100&quot; src=&quot;&lt;?php sa_get_image($post-&gt;ID, 'full'); ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; /&gt;&lt;/a&gt;
&lt;?php
}</pre>
<p>You can use this like this directly. Because we coded function with <code>img</code> tag.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php sa_show_thumb(); ?&gt;</pre>
<h4>With Timthumb;</h4>
<pre class="brush: php; title: ; notranslate">// Show Post Thumbnails With TimThumb
function sa_show_thumb_tim() {
?&gt;
&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;img class=&quot;thumb&quot; src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/timthumb.php?src=&lt;?php sa_get_image($post-&gt;ID, 'full'); ?&gt;&amp;amp;h=100&amp;amp;w=100&amp;amp;zc=1&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; /&gt;&lt;/a&gt;
&lt;?php
}</pre>
<p>You can use this like this directly. Because we coded function with <code>img</code> tag and we add timthumb function. You can get the latest version of timhtumb <a href="http://code.google.com/p/timthumb/" target="_blank">here</a>. And you have to put <strong>timthumb.php</strong> into your theme&#8217;s folder.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php sa_show_thumb_tim(); ?&gt;</pre>
<p>Best Regards</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/catch-the-first-image-upgraded.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share, Like, Send and other social buttons&#8230;</title>
		<link>http://wpfunc.com/wordpress/share-like-send-and-other-social-buttons.html</link>
		<comments>http://wpfunc.com/wordpress/share-like-send-and-other-social-buttons.html#comments</comments>
		<pubDate>Fri, 20 May 2011 21:27:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=479</guid>
		<description><![CDATA[You can add social buttons with this litte function. Let&#8217;s begin&#8230;
Here is the code;
Add this code in your theme&#8217;s functions.php 
You have to change  areas for your theme &#38; site. Download this javascript files and upload into your theme.

Sample Image

]]></description>
			<content:encoded><![CDATA[<p>You can add social buttons with this litte function. Let&#8217;s begin&#8230;<span id="more-479"></span></p>
<h3>Here is the code;</h3>
<p>Add this code in your theme&#8217;s <strong>functions.php</strong> </p>
<pre class="brush: php; title: ; notranslate">//Like &amp; Share &amp; Send etc.
//Add After the_content
add_filter('the_content', cagirbeni);
function cagirbeni($content) {
$sayfalink = get_permalink();

//Importanat Area
$fappId = &quot;126927697318171&quot;; //Your Facebook AppID or same with this.
$twittervia = &quot;kaisercrazy&quot;; //Write your twitter username.
$temaklasoru =&quot;kaisercrazy/javascripts&quot;; //Path of your javascript files in your theme.
//Importanat Area

	if(is_single()) {
	$content .= $button = '&lt;div style=&quot;height:21px;margin-bottom:10px;&quot;&gt;&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;&lt;script src=&quot;http://connect.facebook.net/en_US/all.js#appId='.$fappId.'&amp;amp;xfbml=1&quot;&gt;&lt;/script&gt;&lt;fb:like href=&quot;'.$sayfalink.'&quot; send=&quot;true&quot; width=&quot;170&quot; show_faces=&quot;false&quot; layout=&quot;button_count&quot; font=&quot;segoe ui&quot;&gt;&lt;/fb:like&gt;&lt;div style=&quot;float:right;height:20px;margin-bottom:15px;&quot;&gt;&lt;a href=&quot;http://twitter.com/share&quot; class=&quot;twitter-share-button&quot; data-count=&quot;horizontal&quot; data-via=&quot;'.$twittervia.'&quot;&gt;Tweet&lt;/a&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/'.$temaklasoru.'/twitter.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src =&quot;/wp-content/themes/'.$temaklasoru.'/buttons.js&quot;&gt;&lt;/script&gt;&lt;a class=&quot;DiggThisButton DiggCompact&quot; rev=&quot;news, technology&quot;&gt;&lt;/a&gt;&lt;div id=&quot;fb_share_1&quot; style=&quot;float:right;margin-left: 10px;&quot;&gt;&lt;a name=&quot;fb_share&quot; type=&quot;button_count&quot; share_url=&quot;'.$sayfalink.'&quot; href=&quot;http://www.facebook.com/sharer.php&quot;&gt;Paylaş&lt;/a&gt; &lt;/div&gt;&lt;script src=&quot;/wp-content/themes/'.$temaklasoru.'/FB.Share.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;';
}
	return $content ;
}
//Like &amp; Share &amp; Send etc.</pre>
<p>You have to change  areas for your theme &amp; site. Download this javascript files and upload into your theme.<br />
Note: There is a file embedded within this post, please visit this post to download the file.<br />
</p>
<h3>Sample Image</h3>
<p><a class="highslide img_2" href="http://www.wpfunc.com/wp-content/uploads/2011/05/social-area.png" onclick="return hs.expand(this)"><img src="http://www.wpfunc.com/wp-content/uploads/2011/05/social-area.png" alt="" title="social-area" width="655" height="32" class="alignnone size-full wp-image-480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/share-like-send-and-other-social-buttons.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Category Cloud!</title>
		<link>http://wpfunc.com/wordpress/category-cloud.html</link>
		<comments>http://wpfunc.com/wordpress/category-cloud.html#comments</comments>
		<pubDate>Tue, 15 Mar 2011 12:07:43 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[tag cloud]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=470</guid>
		<description><![CDATA[You can make category cloud like tag cloud with this function.

Here is the code;
Insert this code into your theme&#8217;s functions.php;
And use this code where you want;
Have a nice day!
]]></description>
			<content:encoded><![CDATA[<p>You can make category cloud like tag cloud with this function.<br />
<span id="more-470"></span></p>
<h3>Here is the code;</h3>
<p>Insert this code into your theme&#8217;s <span style="color: #ff0000;"><strong>functions.php</strong></span>;</p>
<pre class="brush: php; title: ; notranslate">//Category cloud
function nube(){
  $categories=  get_categories('child_of=0&amp;type=post&amp;orderby=name&amp;number=500rand&amp;order=asc');
  foreach ($categories as $category) {
	  $font=@intval($category-&gt;category_count/2);

	  $color=&quot;#000000&quot;;
	  if($font&lt;10){
		  $font=10;
		  $color=&quot;#AAAAAA&quot;;
	  }
	  if($font&gt;15 &amp;&amp; $font&lt;30){
		  $font=15;
		  $color=&quot;#8CC7FF&quot;;
	  }
	if($font&gt;=30){
		$font=30;
		$color=&quot;#ff0000&quot;;
	}

	if($category-&gt;category_count&gt;4){
  	$resp .= '&lt;a title=&quot;Total Article: '.$category-&gt;category_count.'&quot;style=&quot;font-size:'.$font.'px;color:'.$color.'&quot; href=&quot;/category/'.$category-&gt;category_nicename.'&quot;&gt;'.$category-&gt;cat_name.'&lt;/a&gt; ';
			}
  }
  return $resp;
}
//Category Cloud</pre>
<p>And use this code where you want;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php echo nube(); ?&gt;</pre>
<p>Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/category-cloud.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send e-mail to users about your new post!</title>
		<link>http://wpfunc.com/wordpress/send-e-mail-to-users-about-your-new-post.html</link>
		<comments>http://wpfunc.com/wordpress/send-e-mail-to-users-about-your-new-post.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 15:18:47 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[send email]]></category>
		<category><![CDATA[subscribe]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=460</guid>
		<description><![CDATA[There is no need subscribe plugins. You can send e-mails to your users. When you write a new article WordPress automatically send a new mail to your users. This is a simple trick on functions.php.
Here is the code;
Open your theme&#8217;s functions.php and add this code before the last ?&#62;
Save functions.php and send it to server. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There is no need subscribe plugins. You can send e-mails to your users. When you write a new article WordPress automatically send a new mail to your users. This is a simple trick on functions.php.<span id="more-460"></span></p>
<p style="text-align: justify;">Here is the code;</p>
<p style="text-align: justify;">Open <strong>your theme&#8217;s <span style="color: #ff0000;">functions.php</span></strong> and add this code before the last <span style="color: #ff0000;"><strong>?&gt;</strong></span></p>
<pre class="brush: php; title: ; notranslate">function email_members($post_ID)  {
    global $wpdb;
    $usersarray = $wpdb-&gt;get_results(&quot;SELECT user_email FROM $wpdb-&gt;users;&quot;);
    $users = implode(&quot;,&quot;, $usersarray);
    mail($users, &quot;There is a new postı!&quot;, 'There is anew post on http://www.yoursiteurl.com!');
    return $post_ID;
}

add_action('publish_post', 'email_members');
</pre>
<p style="text-align: justify;">Save functions.php and send it to server. That&#8217;s All!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/send-e-mail-to-users-about-your-new-post.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;</title>
		<link>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html</link>
		<comments>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html#comments</comments>
		<pubDate>Fri, 11 Jun 2010 10:06:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[have_posts]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Udegbunam]]></category>

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

get_header(); ?&gt;

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

	&lt;/div&gt;

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

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

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

]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Tabs for your Sidebar!</title>
		<link>http://wpfunc.com/wordpress/make-tabs-for-your-sidebar.html</link>
		<comments>http://wpfunc.com/wordpress/make-tabs-for-your-sidebar.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 20:40:23 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[sliding]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[theme]]></category>

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

		<guid isPermaLink="false">http://www.wpfunc.com/?p=371</guid>
		<description><![CDATA[When you build a theme you can use this code for hide/remove WordPress Dashboard&#8217;s links. you have to add this code into your theme&#8217;s functions.php. After that you can write your own text with dashboard footer. Let&#8217;s Begin&#8230;
Here is the code;
Don&#8217;t forget. You will add this code into your theme&#8217;s functions.php. Have a nice day!
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When you build a theme you can use this code for hide/remove WordPress Dashboard&#8217;s links. you have to add this code into your theme&#8217;s functions.php. After that you can write your own text with dashboard footer. Let&#8217;s Begin&#8230;<span id="more-371"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">function remove_footer_admin () {
    echo &quot;Your own text&quot;;
}
add_filter('admin_footer_text', 'remove_footer_admin');
</pre>
<p style="text-align: justify;">Don&#8217;t forget. You will add this code into your<em><span style="color: #ff0000;"><strong> theme&#8217;s functions.php</strong></span></em>. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-change-dashboard-footer-texts.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create Custom Date Butons!</title>
		<link>http://wpfunc.com/wordpress/create-custom-date-butons.html</link>
		<comments>http://wpfunc.com/wordpress/create-custom-date-butons.html#comments</comments>
		<pubDate>Sun, 03 Jan 2010 18:42:10 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[date button]]></category>
		<category><![CDATA[day]]></category>
		<category><![CDATA[month]]></category>
		<category><![CDATA[post date]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[year]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=355</guid>
		<description><![CDATA[Create your own date buttons. This is a simple div class and css style. Choose your background image and read this article. Let&#8217;s begin&#8230;
Here is the code;
Firstly create a div area for this. After that we sill make changes.
Code;

The Template Image

CSS Style;
Final :)

Use this code and the oıther on your theme. Have a nice day!
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Create your own date buttons. This is a simple div class and css style. Choose your background image and read this article. Let&#8217;s begin&#8230;<span id="more-355"></span></p>
<h3>Here is the code;</h3>
<p>Firstly create a div area for this. After that we sill make changes.</p>
<h3>Code;</h3>
<pre class="brush: xml; title: ; notranslate">&lt;div class=”post-date”&gt;
&lt;div class=”month”&gt;&lt;?php the_time(’M') ?&gt;&lt;/div&gt;
&lt;div class=”day”&gt;&lt;?php the_time(’d') ?&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<h3>
The Template Image</h3>
<p><a class="highslide img_7" href="http://www.wpfunc.com/wp-content/uploads/2010/01/date_button_template.gif" onclick="return hs.expand(this)"><img class="alignnone size-full wp-image-357" title="date_button_template" src="http://www.wpfunc.com/wp-content/uploads/2010/01/date_button_template.gif" alt="" width="60" height="68" /></a></p>
<h3>CSS Style;</h3>
<pre class="brush: css; title: ; notranslate">.post-date{
float: left;
display: inline;
margin: 0 10px 0 0;
background: url(images/date_button_template.gif) no-repeat;
}</pre>
<h3>Final :)</h3>
<p><a class="highslide img_8" href="http://www.wpfunc.com/wp-content/uploads/2010/01/datebutton.jpg" onclick="return hs.expand(this)"><img class="alignnone size-full wp-image-356" title="datebutton" src="http://www.wpfunc.com/wp-content/uploads/2010/01/datebutton.jpg" alt="" width="300" height="100" /></a><br />
Use this code and the oıther on your theme. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/create-custom-date-butons.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build a Top Sliding Login Panel</title>
		<link>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html</link>
		<comments>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:51:48 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[login panel]]></category>
		<category><![CDATA[style.css]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=303</guid>
		<description><![CDATA[This trick comes from Blog-Oh-Blog. You can create a login panel with simple jQuery and Html. We will edit header.php and style.css. Let&#8217;s begin&#8230;
Firstly, make a backup of header.php and style.css. After that you can add this codes.
In header.php;
Before &#60;/head&#62; tag;
Add this javascript code to your header.php before &#60;/head&#62; tag.
After &#60;body&#62; tag;
Add this HTML code [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This trick comes from Blog-Oh-Blog. You can create a login panel with simple jQuery and Html. We will edit header.php and style.css. Let&#8217;s begin&#8230;<span id="more-303"></span></p>
<p style="text-align: justify;">Firstly, make a backup of header.php and style.css. After that you can add this codes.</p>
<h2>In header.php;</h2>
<h3>Before &lt;/head&gt; tag;</h3>
<p style="text-align: justify;">Add this javascript code to your header.php before<strong><span style="color: #ff9900;"> &lt;/head&gt;</span></strong> tag.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
$(&quot;.btn-slide&quot;).click(function(){
$(&quot;#slide-panel&quot;).slideToggle(&quot;slow&quot;);
});
});
&lt;/script&gt;</pre>
<h3>After &lt;body&gt; tag;</h3>
<p style="text-align: justify;">Add this HTML code after <strong><span style="color: #993366;">&lt;body&gt;</span></strong> tag where you want.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;slide-panel&quot;&gt;&lt;!--SLIDE PANEL STARTS--&gt;
&lt;?php if ( ! is_user_logged_in() ){ ?&gt;
&lt;h2&gt;Login&lt;/h2&gt;
&lt;div class=&quot;loginform&quot;&gt;
&lt;div class=&quot;formdetails&quot;&gt;
&lt;form action=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php&quot; method=&quot;post&quot;&gt;
&lt;label for=&quot;log&quot;&gt;Username : &lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;log&quot; id=&quot;log&quot; value=&quot;&lt;?php echo wp_specialchars(stripslashes($user_login), 1) ?&gt;&quot; size=&quot;20&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;label for=&quot;pwd&quot;&gt;Password : &lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;pwd&quot; id=&quot;pwd&quot; size=&quot;20&quot; /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Login&quot; class=&quot;button&quot; /&gt;
&lt;label for=&quot;rememberme&quot;&gt;&lt;input name=&quot;rememberme&quot; id=&quot;rememberme&quot; type=&quot;checkbox&quot; checked=&quot;checked&quot; value=&quot;forever&quot; /&gt; Remember me&lt;/label&gt;&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;&lt;?php echo $_SERVER['REQUEST_URI']; ?&gt;&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class=&quot;loginregister&quot;&gt;
&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-register.php&quot;&gt;Register&lt;/a&gt; |
&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php?action=lostpassword&quot;&gt;Recover password&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php } else { ?&gt;
&lt;div class=&quot;loginform&quot;&gt;
&lt;h2&gt;Control Panel&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/&quot;&gt;Dashboard&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/post-new.php&quot;&gt;Write new Post&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/page-new.php&quot;&gt;Write new Page&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo wp_logout_url( get_bloginfo('url') ); ?&gt;&quot; title=&quot;Logout&quot;&gt;Logout&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php }?&gt;
&lt;/div&gt;&lt;!--SLIDE PANEL ENDS--&gt;
&lt;div class=&quot;slide&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;btn-slide&quot;&gt;&lt;?php if ( ! is_user_logged_in() ){ ?&gt;Login&lt;?php } else { ?&gt;Logout&lt;?php }?&gt;&lt;/a&gt;&lt;/div&gt;&lt;!--LOGIN BUTTON TEXT--&gt;</pre>
<p style="text-align: justify;">Save and send your <strong><span style="color: #ff0000;">header.php</span></strong> to your server.</p>
<h3>And Style&#8230;</h3>
<p style="text-align: justify;">Open your <span style="color: #ff0000;"><strong>style.css</strong></span> and add this lines to end of file.</p>
<pre class="brush: css; title: ; notranslate">* {margin:0; padding:0; outline:0;}
#slide-panel{ background-color:#000;border-bottom-style:solid;border-bottom-width:2px;display:none;height:100px;margin:auto;}
.slide {width:950px; margin:auto;}
.btn-slide:link, .btn-slide:visited{color:#fff; float:right; display:block;font-size:14px; text-transform:uppercase; font-weight:bold;height:26px; padding:3px 0 3px 0;line-height:22px;text-align:center;text-decoration:none;width:100px; background-color:#000; font-family:Arial;}
.loginform {width:950px; margin:auto; color:#999; font-family:Arial, Helvetica, sans-serif;}
.formdetails {color:#FFF; font-size:12px;padding:5px;}
.formdetails input{border:none; padding:2px 5px 2px 5px; background-color:#EFEFEF;}
.loginregister {color:#999; padding:5px;}
.loginregister a:link, .loginregister a:visited {color:#FFF; font-size:11px; text-decoration:underline;}
.loginform h2 {padding:10px 10px 10px 0; font-size:18px; font-weight:normal; text-transform:uppercase;}
.loginform ul li {display:inline;}
.loginform ul li a:link, .loginform ul li a:visited {color:#FFF; font-size:12px; text-decoration:underline;}</pre>
<p>That&#8217;s All. Look at <strong><a href="http://www.blogohblog.com/labs/sliding_login_panel.html" target="_blank">DEMO!</a></strong> and the<strong> <a href="http://www.blogohblog.com/how-to-build-a-top-sliding-login-panel/" target="_blank">original post!</a></strong></p>
<p>Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

