<?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>WordPress for Beginners &#187; Themes</title>
	<atom:link href="http://www.wpbeginner.com/category/wp-themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpbeginner.com</link>
	<description>Beginner&#039;s Guide for WordPress</description>
	<lastBuildDate>Mon, 26 Jul 2010 14:40:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://www.wpbeginner.com/?pushpress=hub'/>
		<item>
		<title>How to Add Social Media Share Count Widgets in WordPress</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-add-social-media-share-count-widgets-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-add-social-media-share-count-widgets-in-wordpress/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 15:10:58 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[facebook share count in wordpress]]></category>
		<category><![CDATA[how to add a digg count in wordpress]]></category>
		<category><![CDATA[how to add a SU counter in wordpress]]></category>
		<category><![CDATA[how to add facebook like in wordpress]]></category>
		<category><![CDATA[how to add google buzz count in wordpress]]></category>
		<category><![CDATA[how to add reddit count in wordpress]]></category>
		<category><![CDATA[how to add social media share count widgets]]></category>
		<category><![CDATA[how to add sphinn count in wordpress]]></category>
		<category><![CDATA[how to add stumbleupon count in wordpress]]></category>
		<category><![CDATA[how to customize digg count in wordpress]]></category>
		<category><![CDATA[how to customize tweetmeme count in wordpress]]></category>
		<category><![CDATA[social media share count widgets]]></category>
		<category><![CDATA[social media share count widgets in wordpress]]></category>
		<category><![CDATA[tweetmeme count widget in wordpress]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1997</guid>
		<description><![CDATA[Social media buttons are being replaced by the share count widgets such as tweetmeme retweet widget, digg counter, facebook share and more. In this article, we will show you how you can add different social media share count buttons in WordPress.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-add-social-media-share-count-widgets-in-wordpress/">How to Add Social Media Share Count Widgets in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-tutorials/official-facebook-share-count-button-for-your-wordpress/' rel='bookmark' title='Permanent Link: Official Facebook Share Count Button for your WordPress'>Official Facebook Share Count Button for your WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/social-media-cheat-sheet-for-wordpress/' rel='bookmark' title='Permanent Link: Social Media Cheat Sheet for WordPress'>Social Media Cheat Sheet for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-live-facebook-share-button-to-your-wordpress/' rel='bookmark' title='Permanent Link: How to Add a Live Facebook Share Button to Your WordPress'>How to Add a Live Facebook Share Button to Your WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Earlier on this blog, we created a <a href="http://www.wpbeginner.com/wp-themes/social-media-cheat-sheet-for-wordpress/">Social Media Cheat Sheet for WordPress</a>, but that only showed you how to add social media buttons. As social media grows and the web matures, we are seeing less and less of the simple social media buttons. Social media buttons are being replaced by the share count widgets such as tweetmeme retweet widget, digg counter, facebook share and more. In this article, we will show you how you can add different social media share count buttons in WordPress.</p>
<h4>Grab the Original Widget</h4>
<p>Most of the share counts are a piece of JavaScript that you must retrieve from the social media service. This article is also meant to serve as a one stop shop. You can come here to find the location for top social media services because a lot of them makes it really hard to find on their sites. The goal of this article is to avoid using as many plugins as possible, so when you are picking the type choose site: Normal.</p>
<ul>
<li><a href="http://about.digg.com/button" target="_blank" rel="nofollow">Digg</a></li>
<li><a href="http://www.stumbleupon.com/buttons/" target="_blank" rel="nofollow">StumbleUpon</a></li>
<li><a href="http://help.tweetmeme.com/2009/04/06/tweetmeme-button/" target="_blank" rel="nofollow">Tweetmeme Retweet</a></li>
<li><a href="http://www.facebook.com/share/" target="_blank" rel="nofollow">Facebook Share</a></li>
<li><a href="http://developers.facebook.com/docs/reference/plugins/like" target="_blank" rel="nofollow">Facebook Like Button</a></li>
<li><a href="http://www.reddit.com/buttons/" target="_blank" rel="nofollow">Reddit</a></li>
<li><a href="http://njuice.com/button/" target="_blank" rel="nofollow">Njuice Google Buzz</a></li>
<li><a href="http://sphinn.com/widgets/" target="_blank" rel="nofollow">Sphinn</a></li>
</ul>
<h4>Customizing the Codes</h4>
<p>Because we chose the code for a Normal Site, we may need to modify it to make it compatible with WordPress. We are also going to be showing just the Compact Share Count Buttons. You can ofcourse use the codes as a guide to get different sizes.</p>
<p>Note: You must paste all of these codes inside a loop, most likely in your <em>single.php</em> file.</p>
<h3>Digg</h3>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
(function() {<br />
var s = document.createElement(&#39;SCRIPT&#39;), s1 = document.getElementsByTagName(&#39;SCRIPT&#39;)[0];<br />
s.type = &#39;text/javascript&#39;;<br />
s.async = true;<br />
s.src = &#39;http://widgets.digg.com/buttons.js&#39;;<br />
s1.parentNode.insertBefore(s, s1);<br />
})();<br />
&lt;/script&gt;</p>
<p>&lt;a class=&quot;DiggThisButton DiggCompact&quot; href=&quot;http://digg.com/submit?url=&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;/a&gt;</p></blockquote>
<p>Normally, you should not have to add the href part of the link area. But if you don&#8217;t, and you have paginated comments or posts, then your digg button will not work on all pages. So if the main page was submitted, the second page will show a submit URL allowing users to submit duplicate content to digg.</p>
<h3>StumbleUpon</h3>
<blockquote><p>&lt;script src=&quot;http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;/script&gt;</p></blockquote>
<h3>Tweetmeme Retweet</h3>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
tweetmeme_source = &#39;wpbeginner&#39;; tweetmeme_service = &#39;bit.ly&#39;; tweetmeme_style = &#39;compact&#39;; tweetmeme_url = &#39;&lt;?php the_permalink() ?&gt;&#39;;<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://tweetmeme.com/i/scripts/button.js&quot;&gt;&lt;/script&gt;</p></blockquote>
<p>Make sure that you change the Tweetmeme_source variable to your twitter handle. Right now it is @wpbeginner. So whenever someone clicks it will show RT @wpbeginner Post Title &#8211; Link. We are using bit.ly as the link shortening service, you can change it to others that tweetmeme offers, but bit.ly is the best one.</p>
<h3>Facebook Share</h3>
<blockquote><p>&lt;a name=&quot;fb_share&quot; type=&quot;button_count&quot; share_url=&quot;&lt;?php the_permalink(); ?&gt;&quot; href=&quot;http://www.facebook.com/sharer.php&quot;&gt;Share&lt;/a&gt;&lt;script src=&quot;http://static.ak.fbcdn.net/connect.php/js/FB.Share&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</p></blockquote>
<h3>Facebook Like Button</h3>
<p>Facebook Like Button is a phonemonal tool for traffic. Syed has shown how it has helped in our <a href="http://www.wpbeginner.com/wordpress-newsletter/">WordPress Newsletter</a> in the past.</p>
<blockquote><p>&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;amp;layout=standard&amp;amp;show_faces=false&amp;amp;width=450&amp;amp;action=like&amp;amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; overflow:hidden; width:450px; height:60px;&quot;&gt;&lt;/iframe&gt;</p></blockquote>
<p>To see more options see <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-facebook-like-button-in-wordpress/">How to Add Facebook Like button in WordPress</a>.</p>
<h3>Reddit</h3>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
  reddit_url = &quot;&lt;?php the_permalink(); ?&gt;&quot;;<br />
  reddit_title = &quot;&lt;?php the_title(); ?&gt;&quot;;<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://reddit.com/static/button/button1.js&quot;&gt;&lt;/script&gt;</p></blockquote>
<h3>Njuice Google Buzz Count</h3>
<p>Google Buzz do not have an active API that allows to keep track of count. There are a few ways to work around that which gives you some what of a misguided count. But for those users, who want to have a Google Buzz Count, then here is how you can add it.</p>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
var njuice_buzz_size = &#39;small&#39;;<br />
var njuice_buzz_title = &#39;&lt;?php the_title(); ?&gt;&#39;;<br />
var njuice_buzz_url = &#39;&lt;?php the_permalink(); ?&gt;&#39;;<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://button.njuice.com/buzz.js&quot;&gt;&lt;/script&gt;</p></blockquote>
<h3>Sphinn</h3>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;submit_url = &#39;&lt;?php the_permalink(); ?&gt;&#39;;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://sphinn.com/evb/buttons.php?b=small&quot;&gt;&lt;/script&gt;</p></blockquote>
<p>That is all the customizing we need to make each of these widgets work with WordPress perfectly. Now, you may have to customize the styling for it to work with your theme design. You are better of putting these codes above <strong>&lt;?php the_content(); ?&gt;</strong> code. You can also use our <a href="http://www.wpbeginner.com/smart-sharing-plugin-for-wordpress/">Smart Sharing Plugin</a>, to display a floating icon down your window.</p>
<p>Do you have any other social media widgets that you would like to add? Let us know, and we can get the codes here. If you are using another widget and have the code ready, then please submit it to us, so others can benefit from it as well.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-add-social-media-share-count-widgets-in-wordpress/">How to Add Social Media Share Count Widgets in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-tutorials/official-facebook-share-count-button-for-your-wordpress/' rel='bookmark' title='Permanent Link: Official Facebook Share Count Button for your WordPress'>Official Facebook Share Count Button for your WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/social-media-cheat-sheet-for-wordpress/' rel='bookmark' title='Permanent Link: Social Media Cheat Sheet for WordPress'>Social Media Cheat Sheet for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-live-facebook-share-button-to-your-wordpress/' rel='bookmark' title='Permanent Link: How to Add a Live Facebook Share Button to Your WordPress'>How to Add a Live Facebook Share Button to Your WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-add-social-media-share-count-widgets-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding Additional Default Headers to the WordPress Twenty Ten Theme</title>
		<link>http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/</link>
		<comments>http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 12:33:37 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[add wordpress default headers]]></category>
		<category><![CDATA[how add default headers in twenty ten theme]]></category>
		<category><![CDATA[how to add headers in wordpress 3.0]]></category>
		<category><![CDATA[how to add more default headers in twenty ten theme.]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1974</guid>
		<description><![CDATA[The Twenty Ten theme comes with eight default headers. Any default header that you set is replaced with the "featured image" of a post. You can only see the new header when viewing that post. In this week's WordPress Quick Tip we'll see how simple it is to add additional headers to the Header's Panel.<p><a href="http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/">Adding Additional Default Headers to the WordPress Twenty Ten Theme</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/' rel='bookmark' title='Permanent Link: How to Enable Custom Header Images Panel in WordPress 3.0'>How to Enable Custom Header Images Panel in WordPress 3.0</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/adding-a-second-menu-to-the-twenty-ten-theme/' rel='bookmark' title='Permanent Link: Video: Adding a Second Menu to the WordPress Twenty Ten Theme'>Video: Adding a Second Menu to the WordPress Twenty Ten Theme</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/adding-a-custom-dashboard-logo-in-wordpress-for-branding/' rel='bookmark' title='Permanent Link: Adding a Custom Dashboard Logo in WordPress for Branding'>Adding a Custom Dashboard Logo in WordPress for Branding</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The Twenty Ten theme comes with eight default headers. Any default header that you set is replaced with the &#8220;featured image&#8221; of a post. You can only see the new header when viewing that post. In this week&#8217;s WordPress Quick Tip we&#8217;ll see how simple it is to add additional headers to the Header&#8217;s Panel.</p>
<h2>Watch the Screencast</h2>
<p><embed src="http://blip.tv/play/hdgAgeyKIwI" type="application/x-shockwave-flash" width="480" height="306" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<h2>Functions.php</h2>
<p>Open up the functions.php file of the Twenty Ten theme. Locate the following section:</p>
<blockquote><p>// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.</p></blockquote>
<p>What follows is an array listing the current default headers and their location. To add your own, add a comma after the last parenthesis of the array of sunset header. Here&#8217;s an example of what it can look like after adding two more headers:</p>
<blockquote><p>register_default_headers( array(<br />
&#8216;berries&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/berries.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/berries-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Berries&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;cherryblossom&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/cherryblossoms.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/cherryblossoms-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Cherry Blossoms&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;concave&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/concave.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/concave-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Concave&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;fern&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/fern.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/fern-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Fern&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;forestfloor&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/forestfloor.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/forestfloor-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Forest Floor&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;inkwell&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/inkwell.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/inkwell-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Inkwell&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;path&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/path.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/path-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Path&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;sunset&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/sunset.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/sunset-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Sunset&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;waterfall&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/waterfall.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/waterfall-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Waterfall&#8217;, &#8216;twentyten&#8217; )<br />
),<br />
&#8216;mountain&#8217; =&gt; array(<br />
&#8216;url&#8217; =&gt; &#8216;%s/images/headers/mountain.jpg&#8217;,<br />
&#8216;thumbnail_url&#8217; =&gt; &#8216;%s/images/headers/mountain-thumbnail.jpg&#8217;,<br />
/* translators: header image description */<br />
&#8216;description&#8217; =&gt; __( &#8216;Mountain&#8217;, &#8216;twentyten&#8217; )<br />
)<br />
) );</p></blockquote>
<h3>Lets dissect the code a little bit.</h3>
<p><strong>register_default_headers : </strong>This is the function that creates and displays our default headers. It accepts an array of parameters.</p>
<p><strong>name:</strong> Sets a value with our headers name. We can then set an array of additional values and keys.</p>
<p><strong>url:</strong> Relative path to the header image. Notice that the current path is /images/headers/image_name.jpg</p>
<p><strong>thumbnail_url: </strong>Relative path to a thumbnail of the header image. Current path is /images/headers/image_name-thumbnail.jpg</p>
<p><strong>description: </strong>A description of the image. This would be display upon hovering over the image inside the Headers Panel.</p>
<h2>Things to Note</h2>
<p>The Twenty Ten header is 940&#215;198, anything bigger than that would be resized; anything smaller would be stretch to fit those dimensions. The thumbnail images can be set to any dimensions, 230&#215;48 is the default. The images can only be .jpg or they will be ignored and won&#8217;t be displayed.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/">Adding Additional Default Headers to the WordPress Twenty Ten Theme</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/' rel='bookmark' title='Permanent Link: How to Enable Custom Header Images Panel in WordPress 3.0'>How to Enable Custom Header Images Panel in WordPress 3.0</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/adding-a-second-menu-to-the-twenty-ten-theme/' rel='bookmark' title='Permanent Link: Video: Adding a Second Menu to the WordPress Twenty Ten Theme'>Video: Adding a Second Menu to the WordPress Twenty Ten Theme</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/adding-a-custom-dashboard-logo-in-wordpress-for-branding/' rel='bookmark' title='Permanent Link: Adding a Custom Dashboard Logo in WordPress for Branding'>Adding a Custom Dashboard Logo in WordPress for Branding</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Save time by adding a Quick Edit Button in WordPress Posts</title>
		<link>http://www.wpbeginner.com/wp-themes/save-time-by-adding-a-quick-edit-button-in-wordpress-posts/</link>
		<comments>http://www.wpbeginner.com/wp-themes/save-time-by-adding-a-quick-edit-button-in-wordpress-posts/#comments</comments>
		<pubDate>Thu, 20 May 2010 11:51:09 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[how to add a quick edit button in WordPress comments]]></category>
		<category><![CDATA[how to add a quick edit button in WordPress posts]]></category>
		<category><![CDATA[quick edit button in WordPress comments]]></category>
		<category><![CDATA[quick edit button in WordPress posts]]></category>
		<category><![CDATA[quick edit button in WordPress themes]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1778</guid>
		<description><![CDATA[Majority of the top themes have the quick edit button included, but there are still theme designers that fail to include this simple feature in a theme. In this article, we will show you how you can add a quick edit button in your WordPress posts and comments.<p><a href="http://www.wpbeginner.com/wp-themes/save-time-by-adding-a-quick-edit-button-in-wordpress-posts/">Save time by adding a Quick Edit Button in WordPress Posts</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-digg-button-in-your-wordpress-using-custom-fields/' rel='bookmark' title='Permanent Link: How to Add a Digg Button in your WordPress using Custom Fields'>How to Add a Digg Button in your WordPress using Custom Fields</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-facebook-like-button-in-wordpress/' rel='bookmark' title='Permanent Link: How to Add Facebook Like Button in WordPress'>How to Add Facebook Like Button in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-live-facebook-share-button-to-your-wordpress/' rel='bookmark' title='Permanent Link: How to Add a Live Facebook Share Button to Your WordPress'>How to Add a Live Facebook Share Button to Your WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Have you ever made a mistake in your old WordPress posts and realized it when your user emailed you 4 months later? If you have, then you would normally have to go through the WordPress admin panel, search that post and edit it. This obviously takes a lot of time which can be saved by a Quick Edit link in each post page. Majority of the top themes have this included, but there are still theme designers that fail to include this simple feature in a theme. In this article, we will show you how you can add a quick edit button in your WordPress posts and comments.</p>
<h4>Adding a Quick Edit Button to WordPress Posts</h4>
<p>Simply open your theme&#8217;s <em>single.php</em> file and add this post anywhere inside the loop. Don&#8217;t worry, this will only be shown to users that have specific permissions. Average user will not see this button.</p>
<blockquote><p>&lt;?php edit_post_link(__(&#39;{Quick Edit}&#39;), &#39;&#39;); ?&gt;</p></blockquote>
<h4>Adding a Quick Edit Button to WordPress Comments</h4>
<p>By default this code is added in the WordPress comments.php file, but if you don&#8217;t have the functionality, then add the following code:</p>
<blockquote><p>&lt;?php edit_comment_link(__(&#39;{Quick Edit}&#39;), &#39;&#39;); ?&gt;</p></blockquote>
<p>By adding these codes, a Quick Edit link will be displayed on your post page, so you can simply edit the post with one click rather than searching the wp-admin panel for editing.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/save-time-by-adding-a-quick-edit-button-in-wordpress-posts/">Save time by adding a Quick Edit Button in WordPress Posts</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-digg-button-in-your-wordpress-using-custom-fields/' rel='bookmark' title='Permanent Link: How to Add a Digg Button in your WordPress using Custom Fields'>How to Add a Digg Button in your WordPress using Custom Fields</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-facebook-like-button-in-wordpress/' rel='bookmark' title='Permanent Link: How to Add Facebook Like Button in WordPress'>How to Add Facebook Like Button in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-live-facebook-share-button-to-your-wordpress/' rel='bookmark' title='Permanent Link: How to Add a Live Facebook Share Button to Your WordPress'>How to Add a Live Facebook Share Button to Your WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/save-time-by-adding-a-quick-edit-button-in-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conditional Tag for Post/Page Navigation Links in WordPress</title>
		<link>http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 16:06:38 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[conditional tag for WordPress navigation]]></category>
		<category><![CDATA[conditional tag for wordpress navigation links]]></category>
		<category><![CDATA[conditional tag for wordpress post navigation]]></category>
		<category><![CDATA[conditional tags for wp navigation]]></category>
		<category><![CDATA[conditional tags for wp page navigation]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1598</guid>
		<description><![CDATA[Have you ever visited a site where they have the styling for post navigation links, but there are no links there? It looks quite ugly and it is distracting for the user. Well if you are a theme designer, or a site owner that is having this issue then this solution is just for you. In this article we are going to share how you can add a conditional tag for post/page navigation links to ensure the best styling for your blog design.<p><a href="http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/">Conditional Tag for Post/Page Navigation Links in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display Breadcrumb Navigation Links in WordPress'>How to Display Breadcrumb Navigation Links in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/' rel='bookmark' title='Permanent Link: How to Add Custom Navigation Menus in WordPress 3.0 Themes'>How to Add Custom Navigation Menus in WordPress 3.0 Themes</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-create-a-separate-page-for-blog-posts-in-wordpress/' rel='bookmark' title='Permanent Link: How to Create a Separate Page for Blog Posts in WordPress'>How to Create a Separate Page for Blog Posts in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Have you ever visited a site where they have the styling for post navigation links, but there are no links there? It looks quite ugly and it is distracting for the user. Well if you are a theme designer, or a site owner that is having this issue then this solution is just for you. In this article we are going to share how you can add a conditional tag for post/page navigation links to ensure the best styling for your blog design.</p>
<p>First open your theme&#8217;s <em>functions.php</em> file and add the following code:</p>
<blockquote><p>/**<br />
 * If more than one page exists, return TRUE.<br />
 */<br />
function show_posts_nav() {<br />
	global $wp_query;<br />
	return ($wp_query-&gt;max_num_pages &gt; 1);<br />
}</p></blockquote>
<p>Then place the following code where you want the navigation to be:</p>
<blockquote><p>
&lt;?php if (show_posts_nav()) : ?&gt;<br />
&lt;div class=&#39;navigation&#39;&gt;<br />
	&lt;span class=&#39;older&#39;&gt;&lt;?php next_posts_link(&#39;&amp;laquo; Older Entries&#39;); ?&gt;&lt;/span&gt;<br />
	&lt;span class=&#39;newer&#39;&gt;&lt;?php previous_posts_link(&#39;Newer Entries &amp;raquo;&#39;); ?&gt;&lt;/span&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p>You don&#8217;t have to follow our styling at all. You can modify this code any way you like. The important part is that you keep the navigation styling in between this function:</p>
<blockquote><p>&lt;?php if (show_posts_nav()) : ?&gt;</p>
<p>&lt;?php endif; ?&gt;</p></blockquote>
<p>This function will check to see if there is more than one page. If there are more than one page, then it will show the navigation post with the styling. If there are no other pages, then it will not show the styling or the navigation. </p>
<p>Note: the WordPress navigation function is smart enough to not show navigation on it&#8217;s own if there are no other pages. But if you have navigation wrapped around with your own custom styling, then those styling code still shows whether navigation is there or not. The function in this post take care of this problem.</p>
<h4>Additional Resources: </h4>
<p><a href="http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/">Eric Martin&#8217;s Post &#8211; Source for this snippet</a></p>
<p><a href="http://www.wpbeginner.com/refer/diggwp">Digging into WordPress (A Great eBook that everyone should buy if you are learning WordPress)</a></p>
<p><a href="http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/">Conditional Tag for Post/Page Navigation Links in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display Breadcrumb Navigation Links in WordPress'>How to Display Breadcrumb Navigation Links in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/' rel='bookmark' title='Permanent Link: How to Add Custom Navigation Menus in WordPress 3.0 Themes'>How to Add Custom Navigation Menus in WordPress 3.0 Themes</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-create-a-separate-page-for-blog-posts-in-wordpress/' rel='bookmark' title='Permanent Link: How to Create a Separate Page for Blog Posts in WordPress'>How to Create a Separate Page for Blog Posts in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Custom Navigation Menus in WordPress 3.0 Themes</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 14:41:14 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[add_theme_support nav menus]]></category>
		<category><![CDATA[custom navigation menu]]></category>
		<category><![CDATA[custom navigation menus]]></category>
		<category><![CDATA[easy drop down menus for wordpress]]></category>
		<category><![CDATA[how to add navigation menus in WordPress 3.0 themes]]></category>
		<category><![CDATA[how to add woo theme menu in WordPress 3.0 themes]]></category>
		<category><![CDATA[how to add wordpress 3.0 menu]]></category>
		<category><![CDATA[how to install navigation menus]]></category>
		<category><![CDATA[how to install woo theme menu]]></category>
		<category><![CDATA[how to wordpress menus]]></category>
		<category><![CDATA[menus for wordpress]]></category>
		<category><![CDATA[user friendly menus for wordpress]]></category>
		<category><![CDATA[wordpress 3.0 menu]]></category>
		<category><![CDATA[wordpress menus]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1570</guid>
		<description><![CDATA[Custom Navigation Menus feature in WordPress 3.0 will make WordPress even more user friendly for beginners. This function let you organize your menu, create drop down menus, add new items to menu, and much more. In this article, we will show you how you can enable and install custom navigation menus in your themes.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/">How to Add Custom Navigation Menus in WordPress 3.0 Themes</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/' rel='bookmark' title='Permanent Link: Conditional Tag for Post/Page Navigation Links in WordPress'>Conditional Tag for Post/Page Navigation Links in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/' rel='bookmark' title='Permanent Link: How to Enable Custom Background in WordPress 3.0 Themes'>How to Enable Custom Background in WordPress 3.0 Themes</a></li>
<li><a href='http://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display Breadcrumb Navigation Links in WordPress'>How to Display Breadcrumb Navigation Links in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Custom Navigation Menus feature in WordPress 3.0 will make WordPress even more user friendly for beginners. This function let you organize your menu, create drop down menus, add new items to menu, and much more. The drag-and-drop function of this feature is what makes it extremely easy to use. This feature will not be available in older themes unless the theme author(s) update their themes. In this article, we will show you how you can enable and install custom navigation menus in your themes.</p>
<p>We see this feature as one of the most demanded feature in the future of WordPress themes. Below is a simple screenshot that shows you what you can do with this menu option.</p>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wp3-0ss/menu.gif" alt="WordPress 3.0 Custom Navigation Menus" /></p>
<p>You can create multiple menus, add existing categories or pages to the menu, and you can add custom links to menu as well. You can organize the menus and create drop-down menus with a simple drag-and-drop feature.</p>
<h4>How to enable Custom Navigation Menus in WordPress 3.0</h4>
<p>Like the <a href="http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/">custom background</a>, <a href="http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/">header image</a>, and <a href="http://www.wpbeginner.com/wp-themes/how-to-add-post-thumbnails-in-wordpress/">post thumbnails</a>, the custom navigation menus also needs to be enabled through your theme&#8217;s <em>functions.php</em> file.</p>
<p>Simply add the code below to your theme&#8217;s <em>functions.php</em> file:</p>
<blockquote><p>add_theme_support( &#39;menus&#39; );</p></blockquote>
<p>If this code is not added in your <em>functions.php</em> file, the user will not see this as an option in the Admin panel.</p>
<h4>How to Add Custom Navigation Menus in WordPress 3.0 Themes</h4>
<p>Once you have enabled the feature, now you can add it in your theme. These menus are not limited for <em>header.php</em> file only. You can add them anywhere you like to fit your design&#8217;s need by pasting the code below:</p>
<blockquote><p>&lt;?php wp_nav_menu( array( &#39;sort_column&#39; =&gt; &#39;menu_order&#39;, &#39;container_class&#39; =&gt; &#39;menu-header&#39; ) ); ?&gt;</p></blockquote>
<p>The main function as you can see is <strong>wp_nav_menu</strong>. The arguments we have in the code are <em>sort_column</em> and <em>container_class</em>. The sort_column value tells WordPress to follow the order you pick in the options panel, and the container_class is the css styling class that you pick for this specific menu.</p>
<p>For custom themes: If you are using more than one menu, then you need to specify either the menu ID, menu slug, or menu name. The parameters are: $id, $slug, $menu respectively.</p>
<p>Additional Resource: <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu" target="_blank" rel="nofollow">WordPress Codex</a></p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/">How to Add Custom Navigation Menus in WordPress 3.0 Themes</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/conditional-tag-for-postpage-navigation-links-in-wordpress/' rel='bookmark' title='Permanent Link: Conditional Tag for Post/Page Navigation Links in WordPress'>Conditional Tag for Post/Page Navigation Links in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/' rel='bookmark' title='Permanent Link: How to Enable Custom Background in WordPress 3.0 Themes'>How to Enable Custom Background in WordPress 3.0 Themes</a></li>
<li><a href='http://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display Breadcrumb Navigation Links in WordPress'>How to Display Breadcrumb Navigation Links in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to Enable Custom Header Images Panel in WordPress 3.0</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 13:37:28 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[custom header images in wordpress 3.0]]></category>
		<category><![CDATA[custom headers in wordpress]]></category>
		<category><![CDATA[enable header panel in wordpress 3.0]]></category>
		<category><![CDATA[how to enable a custom header panel in wordpress 3.0]]></category>
		<category><![CDATA[how to enable custom header images in WordPress 3.0]]></category>
		<category><![CDATA[how to enable custom header in wordpress 3.0]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1565</guid>
		<description><![CDATA[One of the note-worthy upgrade in WordPress 3.0 is a new default theme called <strong>Twenty Ten</strong>. This theme has a lot of great features enabled, but one of the features that a lot of users want is the Custom Headers Panel. In this article, we will share with you how you can enable custom headers with a back-end admin panel in WordPress 3.0.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/">How to Enable Custom Header Images Panel in WordPress 3.0</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/' rel='bookmark' title='Permanent Link: Adding Additional Default Headers to the WordPress Twenty Ten Theme'>Adding Additional Default Headers to the WordPress Twenty Ten Theme</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-random-header-images-to-your-wordpress-blog/' rel='bookmark' title='Permanent Link: How to Add Random Header Images to Your WordPress Blog'>How to Add Random Header Images to Your WordPress Blog</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/easily-add-custom-header-footer-or-sidebar-for-each-category/' rel='bookmark' title='Permanent Link: Easily Add Custom Header, Footer, or Sidebar for Each Category'>Easily Add Custom Header, Footer, or Sidebar for Each Category</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you guys haven&#8217;t had a chance to test out WordPress 3.0, then you are missing out. We have created numerous posts about <a href="http://www.wpbeginner.com/news/whats-coming-in-wordpress-3-0-features/">WordPress 3.0 features</a> and have shown <a href="http://www.wpbeginner.com/news/overview-of-wordpress-3-0-with-screenshots/">WordPress 3.0 screenshots</a> as well. One of the note-worthy upgrade in this version is a new default theme called <strong>Twenty Ten</strong>. This theme has a lot of great features enabled, but one of the features that a lot of users want is the Custom Headers Panel. In this article, we will share with you how you can enable custom headers with a back-end admin panel in WordPress 3.0.</p>
<h4>What exactly will this feature do?</h4>
<p>It will create a tab in your admin panel which will allow you to change header images. You can register default images if you are a theme designer to give users more options. It also allows users to upload custom images for the header. Last but certainly not the least, this feature utilizes post thumbnails on single post pages. If your post thumbnail is big enough to fit the header size, then it will use your post thumbnail as the header instead of the default image. If your thumbnail is bigger, then it will crop it down for you.</p>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wp3-0ss/header.gif" alt="Custom Header in WordPress 3.0" /></p>
<h2>Watch the Screencast</h2>
<p><embed src="http://blip.tv/play/hdgAgeyKIwI" type="application/x-shockwave-flash" width="480" height="306" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<h4>How to Add this?</h4>
<p>We took the code straight from Twenty Ten&#8217;s <em>functions.php</em> file. You need to paste the following codes in your theme&#8217;s <em>functions.php</em> file.</p>
<blockquote><p>&lt;?php<br />
/** Tell WordPress to run yourtheme_setup() when the &#39;after_setup_theme&#39; hook is run. */<br />
add_action( &#39;after_setup_theme&#39;, &#39;yourtheme_setup&#39; );</p>
<p>if ( ! function_exists(&#39;yourtheme_setup&#39;) ):<br />
/**<br />
 * @uses add_custom_image_header() To add support for a custom header.<br />
 * @uses register_default_headers() To register the default custom header images provided with the theme.<br />
 *<br />
 * @since 3.0.0<br />
 */<br />
function yourtheme_setup() {</p>
<p>	// This theme uses post thumbnails<br />
	add_theme_support( &#39;post-thumbnails&#39; );</p>
<p>	// Your changeable header business starts here<br />
	define( &#39;HEADER_TEXTCOLOR&#39;, &#39;&#39; );<br />
	// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.<br />
	define( &#39;HEADER_IMAGE&#39;, &#39;%s/images/headers/forestfloor.jpg&#39; );</p>
<p>	// The height and width of your custom header. You can hook into the theme&#39;s own filters to change these values.<br />
	// Add a filter to yourtheme_header_image_width and yourtheme_header_image_height to change these values.<br />
	define( &#39;HEADER_IMAGE_WIDTH&#39;, apply_filters( &#39;yourtheme_header_image_width&#39;,  940 ) );<br />
	define( &#39;HEADER_IMAGE_HEIGHT&#39;, apply_filters( &#39;yourtheme_header_image_height&#39;,	198 ) );</p>
<p>	// We&#39;ll be using post thumbnails for custom header images on posts and pages.<br />
	// We want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit).<br />
	set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );</p>
<p>	// Don&#39;t support text inside the header image.<br />
	define( &#39;NO_HEADER_TEXT&#39;, true );</p>
<p>	// Add a way for the custom header to be styled in the admin panel that controls<br />
	// custom headers. See yourtheme_admin_header_style(), below.<br />
	add_custom_image_header( &#39;&#39;, &#39;yourtheme_admin_header_style&#39; );</p>
<p>	// &#8230; and thus ends the changeable header business.</p>
<p>	// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.<br />
	register_default_headers( array (<br />
		&#39;berries&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/berries.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/berries-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Berries&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;cherryblossom&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/cherryblossoms.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/cherryblossoms-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Cherry Blossoms&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;concave&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/concave.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/concave-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Concave&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;fern&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/fern.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/fern-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Fern&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;forestfloor&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/forestfloor.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/forestfloor-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Forest Floor&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;inkwell&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/inkwell.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/inkwell-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Inkwell&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;path&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/path.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/path-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Path&#39;, &#39;yourtheme&#39; )<br />
		),<br />
		&#39;sunset&#39; =&gt; array (<br />
			&#39;url&#39; =&gt; &#39;%s/images/headers/sunset.jpg&#39;,<br />
			&#39;thumbnail_url&#39; =&gt; &#39;%s/images/headers/sunset-thumbnail.jpg&#39;,<br />
			&#39;description&#39; =&gt; __( &#39;Sunset&#39;, &#39;yourtheme&#39; )<br />
		)<br />
	) );<br />
}<br />
endif;</p>
<p>if ( ! function_exists( &#39;yourtheme_admin_header_style&#39; ) ) :<br />
/**<br />
 * Styles the header image displayed on the Appearance &gt; Header admin panel.<br />
 *<br />
 * Referenced via add_custom_image_header() in yourtheme_setup().<br />
 *<br />
 * @since 3.0.0<br />
 */<br />
function yourtheme_admin_header_style() {<br />
?&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
#headimg {<br />
	height: &lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;px;<br />
	width: &lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;px;<br />
}<br />
#headimg h1, #headimg #desc {<br />
	display: none;<br />
}<br />
&lt;/style&gt;<br />
&lt;?php<br />
}<br />
endif;<br />
?&gt;</p></blockquote>
<h4>That is jibbrish to me. Please Explain</h4>
<p>Ofcourse, this might look jibrish to some of you. This is mostly for theme designers, but we will do our best to break it down. Before we start make sure you copy and paste this code in your code editor, so you can make the changes necessary.</p>
<p>Note: We are using /images/headers/ as the directory where you will store your default header images.</p>
<ul>
<li>You start the code out by creating a function yourtheme_setup().</li>
<li>In line 21, we define the default header image. Note there is a variable %s which is basically a placeholder for the theme directory URI.</li>
<li>Line 25 and 26 is where you define the image width and height. By default it is set to 940px wide and 198px high. You can change it by editing those two lines.</li>
<li>Starting from line 42, we start registering the default headers. These are the images that will show up as a radio button option in your admin panel. If you need more options then simply follow the format being used.</li>
<li>In line 95, we choose the header styling. You do not need to change these settings because you alreadyd efined them in Line 25 and 26.</li>
</ul>
<p>That is all what you are doing for the theme&#8217;s functions.php file. Next we are going to go into how you are going to add this to your theme.</p>
<h4>Code to add in your Theme</h4>
<p>This code will most likely go in the theme&#8217;s <em>header.php</em> file. You can style it however you like.</p>
<blockquote><p>&lt;?php<br />
					// Check if this is a post or page, if it has a thumbnail, and if it&#39;s a big one<br />
					if ( 	is_singular() &amp;&amp;<br />
							has_post_thumbnail( $post-&gt;ID ) &amp;&amp;<br />
							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), &#39;post-thumbnail&#39;) ) &amp;&amp;<br />
							$image[1] &gt;= HEADER_IMAGE_WIDTH ) :<br />
						// We have a new header image!<br />
						echo get_the_post_thumbnail( $post-&gt;ID, &#39;post-thumbnail&#39; );<br />
					else : ?&gt;<br />
						&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;<br />
					&lt;?php endif; ?&gt;</p></blockquote>
<p>What is this code doing?</p>
<ul>
<li>First, it is checking if it is a single post or a page. It also checks if this post/page has a thumbnail, and whether it is big enough.</li>
<li>If the page is a single page and has a big enough thumbnail, then it displays the post thumbnail specific for that post.</li>
<li>If it is not a single page, or the post thumbnail is not big enough, then it will show the default header.</li>
</ul>
<p>We hope this tutorial was helpful. We got a few emails asking about this tutorial, so we broke the code down from the Twenty Ten theme. If you have any questions, then feel free to ask in the comments.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/">How to Enable Custom Header Images Panel in WordPress 3.0</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/' rel='bookmark' title='Permanent Link: Adding Additional Default Headers to the WordPress Twenty Ten Theme'>Adding Additional Default Headers to the WordPress Twenty Ten Theme</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-random-header-images-to-your-wordpress-blog/' rel='bookmark' title='Permanent Link: How to Add Random Header Images to Your WordPress Blog'>How to Add Random Header Images to Your WordPress Blog</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/easily-add-custom-header-footer-or-sidebar-for-each-category/' rel='bookmark' title='Permanent Link: Easily Add Custom Header, Footer, or Sidebar for Each Category'>Easily Add Custom Header, Footer, or Sidebar for Each Category</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to Enable Custom Background in WordPress 3.0 Themes</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 12:55:12 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[custom background feature in wordpress 3.0]]></category>
		<category><![CDATA[enable custom backgrounds in wordpress 3.0]]></category>
		<category><![CDATA[features for wordpress 3.0]]></category>
		<category><![CDATA[how to enable custom backgrounds in wordpress themes]]></category>
		<category><![CDATA[wordpress 3.0]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1487</guid>
		<description><![CDATA[WordPress 3.0 introduces a new feature called custom backgrounds for WordPress themes. This feature will give the user an ability to add custom backgrounds to their site which will give their blogs/sites a unique touch. Even though this feature is added to the core, it will only be activated if your theme supports it. In this article, we will show you how you can enable Custom Background in WordPress themes for WordPress 3.0.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/">How to Enable Custom Background in WordPress 3.0 Themes</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/' rel='bookmark' title='Permanent Link: How to Add Custom Navigation Menus in WordPress 3.0 Themes'>How to Add Custom Navigation Menus in WordPress 3.0 Themes</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/' rel='bookmark' title='Permanent Link: How to Enable Custom Header Images Panel in WordPress 3.0'>How to Enable Custom Header Images Panel in WordPress 3.0</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-enable-multi-site-option-in-wordpress-3-0/' rel='bookmark' title='Permanent Link: How to enable Multi-Site option in WordPress 3.0'>How to enable Multi-Site option in WordPress 3.0</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>WordPress 3.0 introduces a new feature called custom backgrounds for WordPress themes. This feature will give the user an ability to add custom backgrounds to their site which will give their blogs/sites a unique touch. Even though this feature is added to the core, it will only be activated if your theme supports it. In this article, we will show you how you can enable Custom Background in WordPress themes for WordPress 3.0.</p>
<p>Note: This article is intermediate level article focused specially for theme designers.</p>
<h4>Video:</h4>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/cW5bGyYH6bg&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/cW5bGyYH6bg&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<h4>Text-tutorial</h4>
<p>Simply open your <em>functions.php</em> file and add the following line:</p>
<blockquote><p>add_custom_background();</p></blockquote>
<p>Then under appearance you should be able to see an option for Custom backgrounds. </p>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wp3-0ss/custombg.gif" alt="Custom Background in WordPress 3.0" /></p>
<p>The default twenty ten theme for WordPress 3.0 already has this feature enabled in it.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/">How to Enable Custom Background in WordPress 3.0 Themes</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/' rel='bookmark' title='Permanent Link: How to Add Custom Navigation Menus in WordPress 3.0 Themes'>How to Add Custom Navigation Menus in WordPress 3.0 Themes</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-enable-custom-header-images-panel-in-wordpress-3-0/' rel='bookmark' title='Permanent Link: How to Enable Custom Header Images Panel in WordPress 3.0'>How to Enable Custom Header Images Panel in WordPress 3.0</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-enable-multi-site-option-in-wordpress-3-0/' rel='bookmark' title='Permanent Link: How to enable Multi-Site option in WordPress 3.0'>How to enable Multi-Site option in WordPress 3.0</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-enable-custom-background-in-wordpress-3-0-themes/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to Exclude Latest Post from the WordPress Post Loop</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 11:38:30 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[how to exclude latest post from the loop]]></category>
		<category><![CDATA[how to exclude latest post from WordPress post loop]]></category>
		<category><![CDATA[how to exclude latest posts from wordpress loop]]></category>
		<category><![CDATA[how to offset posts in wordpress loop]]></category>
		<category><![CDATA[how to use wp_query]]></category>
		<category><![CDATA[remove latest posts from custom post loop]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1371</guid>
		<description><![CDATA[Excluding latest posts from the loop and/or offset posts in the loop is one of the things that comes in handy when editing or designing themes. In this article we will show you how you can use the offset parameter in wp_query function to exclude latest posts from the WordPress post loop.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/">How to Exclude Latest Post from the WordPress Post Loop</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/' rel='bookmark' title='Permanent Link: How to Exclude Sticky Posts from the Loop in WordPress'>How to Exclude Sticky Posts from the Loop in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-display-any-number-of-posts-in-a-wordpress-loop/' rel='bookmark' title='Permanent Link: How to Display Any Number of Posts in a WordPress Loop'>How to Display Any Number of Posts in a WordPress Loop</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-display-the-latest-sticky-posts-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display the Latest Sticky Posts in WordPress'>How to Display the Latest Sticky Posts in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Excluding latest posts from the loop and/or offset posts in the loop is one of the things that comes in handy when editing or designing themes. In this article we will show you how you can use the offset parameter in wp_query function to exclude latest posts from the WordPress post loop.</p>
<p>First you will need to find the loop that you are working with. Then you will need to add the following parameter:</p>
<blockquote><p>query_posts(&#39;posts_per_page=5&amp;offset=1&#39;);</p></blockquote>
<p>This query is telling the loop to only display 5 posts which follow the most recent post (1). The important part in this code is &#8220;offset&#8221; and this magic word is doing the whole thing. </p>
<p>Your loop code should look like:</p>
<blockquote><p>&lt;?php<br />
query_posts(&#39;posts_per_page=6&amp;offset=1&#39;);<br />
if ( have_posts() ) : while ( have_posts() ) : the_post();<br />
?&gt;</p></blockquote>
<p>This should be it. If you have any questions feel free to ask via comments.</p>
<p>Source: <a href="http://codex.wordpress.org/Template_Tags/query_posts#Offset_Parameter" target="_blank" rel="nofollow">WP Codex</a></p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/">How to Exclude Latest Post from the WordPress Post Loop</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/' rel='bookmark' title='Permanent Link: How to Exclude Sticky Posts from the Loop in WordPress'>How to Exclude Sticky Posts from the Loop in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-display-any-number-of-posts-in-a-wordpress-loop/' rel='bookmark' title='Permanent Link: How to Display Any Number of Posts in a WordPress Loop'>How to Display Any Number of Posts in a WordPress Loop</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-display-the-latest-sticky-posts-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display the Latest Sticky Posts in WordPress'>How to Display the Latest Sticky Posts in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Exclude Sticky Posts from the Loop in WordPress</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 11:30:26 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[do not show sticky posts from the loop]]></category>
		<category><![CDATA[exclude sticky posts from the loop]]></category>
		<category><![CDATA[hide sticky posts from the loop]]></category>
		<category><![CDATA[remove sticky posts from the loop]]></category>
		<category><![CDATA[remove sticky posts from wp loop]]></category>
		<category><![CDATA[remove sticky posts from wp post loop]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1369</guid>
		<description><![CDATA[Sticky posts is one of the cool features that WordPress has, but sometimes you do not want to have sticky posts in your loop. In this article, we will show you how to completely exclude sticky posts from the loop in WordPress, and we will also show you how you can take away the sticky feature of the post, so it still shows in their natural order.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/">How to Exclude Sticky Posts from the Loop in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/' rel='bookmark' title='Permanent Link: How to Exclude Latest Post from the WordPress Post Loop'>How to Exclude Latest Post from the WordPress Post Loop</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-display-the-latest-sticky-posts-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display the Latest Sticky Posts in WordPress'>How to Display the Latest Sticky Posts in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-display-any-number-of-posts-in-a-wordpress-loop/' rel='bookmark' title='Permanent Link: How to Display Any Number of Posts in a WordPress Loop'>How to Display Any Number of Posts in a WordPress Loop</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wpbeginner.com/beginners-guide/how-to-make-sticky-posts-in-wordpress/">Sticky posts</a> is one of the cool features that WordPress has, but sometimes you do not want to have sticky posts in your loop. In this article, we will show you how to completely exclude sticky posts from the loop in WordPress, and we will also show you how you can take away the sticky feature of the post, so it still shows in their natural order.</p>
<h4>How to take away the Sticky Ability of the Post</h4>
<p>When you are displaying <a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-recent-posts-in-wordpress/">most recent posts</a> in a tab, you do not want the sticky posts to stay sticky. If you do not remove the sticky features, the recent posts area would be useless as all of your sticky posts will crowd this area. This is when query_posts feature comes in handy.</p>
<p>To do this you will need to change your loop to something like this:</p>
<blockquote><p>&lt;?php<br />
query_posts(&#39;caller_get_posts=1&#39;);<br />
if ( have_posts() ) : while ( have_posts() ) : the_post();<br />
?&gt;</p></blockquote>
<h4>Completely exclude Sticky posts from the Loop</h4>
<p>If you are using Sticky posts in a slider, then sometimes you might want to completely exclude your sticky posts from the loop. All what you have to do is edit your custom loop to match with this:</p>
<blockquote><p>&lt;?php<br />
query_posts(array(&quot;post__not_in&quot; =&gt;get_option(&quot;sticky_posts&quot;)));<br />
if ( have_posts() ) : while ( have_posts() ) : the_post();<br />
?&gt;</p></blockquote>
<p>This code will not display any sticky posts in the post loop. </p>
<p>Source: <a href="http://codex.wordpress.org/Template_Tags/query_posts#Sticky_Post_Parameters" target="_blank" rel="nofollow">WP Codex</a></p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/">How to Exclude Sticky Posts from the Loop in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-themes/how-to-exclude-latest-post-from-the-wordpress-post-loop/' rel='bookmark' title='Permanent Link: How to Exclude Latest Post from the WordPress Post Loop'>How to Exclude Latest Post from the WordPress Post Loop</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-display-the-latest-sticky-posts-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display the Latest Sticky Posts in WordPress'>How to Display the Latest Sticky Posts in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-display-any-number-of-posts-in-a-wordpress-loop/' rel='bookmark' title='Permanent Link: How to Display Any Number of Posts in a WordPress Loop'>How to Display Any Number of Posts in a WordPress Loop</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-exclude-sticky-posts-from-the-loop-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Display Custom Fields Outside The Loop in WordPress</title>
		<link>http://www.wpbeginner.com/wp-themes/how-to-display-custom-fields-outside-the-loop-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-themes/how-to-display-custom-fields-outside-the-loop-in-wordpress/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 18:17:23 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[display custom fields from a specific post outside the loop]]></category>
		<category><![CDATA[Display custom fields outside the loop]]></category>
		<category><![CDATA[display different footer on each post]]></category>
		<category><![CDATA[display different sidebar on each post]]></category>
		<category><![CDATA[how to display custom fields outside the loop]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1347</guid>
		<description><![CDATA[In this article we will show you how you can display custom fields outside the loop. This tutorial will allow you to expand the possibilities of what you can do with WordPress.<p><a href="http://www.wpbeginner.com/wp-themes/how-to-display-custom-fields-outside-the-loop-in-wordpress/">How to Display Custom Fields Outside The Loop in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>



Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-digg-button-in-your-wordpress-using-custom-fields/' rel='bookmark' title='Permanent Link: How to Add a Digg Button in your WordPress using Custom Fields'>How to Add a Digg Button in your WordPress using Custom Fields</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/embed-custom-css-in-your-single-posts-with-custom-fields/' rel='bookmark' title='Permanent Link: Embed Custom CSS in Your Single Posts with Custom Fields'>Embed Custom CSS in Your Single Posts with Custom Fields</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-display-any-number-of-posts-in-a-wordpress-loop/' rel='bookmark' title='Permanent Link: How to Display Any Number of Posts in a WordPress Loop'>How to Display Any Number of Posts in a WordPress Loop</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There will be times that you need to display post-specific content for example a <a href="http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/">different sidebar for a specific post</a>. Usually post specific contents are added via a custom field which can only be displayed inside a post loop. In this article we will show you how you can display custom fields outside the loop. This tutorial will allow you to expand the possibilities of what you can do with WordPress.</p>
<p>The code will look like this:</p>
<blockquote><p>&lt;?php<br />
global $wp_query;<br />
$postid = $wp_query-&gt;post-&gt;ID;<br />
echo get_post_meta($postid, &#39;Your-Custom-Field&#39;, true);<br />
wp_reset_query();<br />
?&gt;</p></blockquote>
<p>You will need to make sure that you change the part where it says &#8220;Your-Custom-Field&#8221;.</p>
<p>This code is just the basic code. You can play around with it and use all the <a href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank" rel="nofollow">query_post arguments</a> to fit your needs. You can even display another post&#8217;s custom fields on a single page of a different post.</p>
<p>In this (<a href="http://www.uzzz.net/testimonials/lindsey-nobles/">Example</a>) at Uzzz, we are displaying the custom fields of a specific portfolio post, into the single post of a related testimonial post.</p>
<p>This snippet is very useful for theme developers. If you have any questions, feel free to ask in the comment or via email.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-display-custom-fields-outside-the-loop-in-wordpress/">How to Display Custom Fields Outside The Loop in WordPress</a> is a post from: <a href="http://www.wpbeginner.com" target="_blank" rel="friend">WPBeginner</a> which is not allowed to be copied on other sites.</p>


<p>Related posts:<ol><li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-add-a-digg-button-in-your-wordpress-using-custom-fields/' rel='bookmark' title='Permanent Link: How to Add a Digg Button in your WordPress using Custom Fields'>How to Add a Digg Button in your WordPress using Custom Fields</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/embed-custom-css-in-your-single-posts-with-custom-fields/' rel='bookmark' title='Permanent Link: Embed Custom CSS in Your Single Posts with Custom Fields'>Embed Custom CSS in Your Single Posts with Custom Fields</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-display-any-number-of-posts-in-a-wordpress-loop/' rel='bookmark' title='Permanent Link: How to Display Any Number of Posts in a WordPress Loop'>How to Display Any Number of Posts in a WordPress Loop</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-themes/how-to-display-custom-fields-outside-the-loop-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
