<?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; Tutorials</title>
	<atom:link href="http://www.wpbeginner.com/category/wp-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpbeginner.com</link>
	<description>Beginner&#039;s Guide for WordPress</description>
	<lastBuildDate>Sat, 13 Mar 2010 11:38:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://www.wpbeginner.com/?pushpress=hub'/>
		<item>
		<title>Most Wanted Twitter Hacks and Plugins for WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/most-wanted-twitter-hacks-and-plugins-for-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/most-wanted-twitter-hacks-and-plugins-for-wordpress/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 21:23:07 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[display recent tweets from multiple accounts]]></category>
		<category><![CDATA[display recent tweets in WordPress]]></category>
		<category><![CDATA[display recent tweets via jquery]]></category>
		<category><![CDATA[display twitter follower count as text]]></category>
		<category><![CDATA[display twitter friends]]></category>
		<category><![CDATA[how to add a retweet button]]></category>
		<category><![CDATA[how to add a tweet this button]]></category>
		<category><![CDATA[maximize your twitter benefits in WordPress]]></category>
		<category><![CDATA[most wanted twitter hacks and plugins for WordPress]]></category>
		<category><![CDATA[most wanted twitter hacks for WordPress]]></category>
		<category><![CDATA[most wanted twitter plugins for WordPress]]></category>
		<category><![CDATA[seaofclouds]]></category>
		<category><![CDATA[twitter effect for WordPress blogs]]></category>
		<category><![CDATA[twitter hacks for wordpress]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1331</guid>
		<description><![CDATA[Twitter is an extremely powerful marketing and promotion tool that no active blogger can ignore. Twitter has the power to make your articles go viral, and the "Twitter Effect" is something that most bloggers want. In this article, we will share some of the most wanted and extremely useful twitter hacks and plugins that will allow you to maximize your benefits from twitter.<p><a href="http://www.wpbeginner.com/wp-tutorials/most-wanted-twitter-hacks-and-plugins-for-wordpress/">Most Wanted Twitter Hacks and Plugins for 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-auto-publish-your-twitter-tweets-as-wordpress-posts/' rel='bookmark' title='Permanent Link: How to Auto Publish Your Twitter Tweets as WordPress Posts'>How to Auto Publish Your Twitter Tweets as WordPress Posts</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/10-most-wanted-category-hacks-and-plugins-for-wordpress/' rel='bookmark' title='Permanent Link: 10 Most Wanted Category Hacks and Plugins for WordPress'>10 Most Wanted Category Hacks and Plugins for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/displaying-the-total-number-of-twitter-followers-as-text-on-wordpress/' rel='bookmark' title='Permanent Link: Displaying the Total Number of Twitter Followers as Text on WordPress'>Displaying the Total Number of Twitter Followers as Text on WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Twitter has grown exponentially over the past year, and it is one of the fastest growing social networks at the moment. It is an extremely powerful marketing and promotion tool that no active blogger can ignore. Twitter has the power to make your articles go viral, and the &#8220;Twitter Effect&#8221; is something that most bloggers want. In this article, we will share some of the most wanted and extremely useful twitter hacks and plugins that will allow you to maximize your benefits from twitter.</p>
<p>Note: These hacks are for all user levels. Some knowledge of PHP / HTML will be required for some of the hacks. We will try to provide alternative plugins for each hack that we share to make it easy for beginners.</p>
<h2>Display a Retweet Button with a Counter</h2>
<p><img src="http://www.wpbeginner.com/killerhacks/retweet.gif" alt="Display a Retweet Button wit ha Counter" /></p>
<p>If you have visited an active blog, then you have seen a retweet button on their site. Majority of the time, it will be from a service known as Tweetmeme. </p>
<h3>Snippet</h3>
<p>One way to get this button on your site is by placing the following code in your <em>single.php</em> template (At a location where you want to put it).</p>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
tweetmeme_source = &#39;wpbeginner&#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>The above code will output a big button like you see on the left hand side of this post. Make sure that you change the source to your twitter account. It is essential that you do this because it will help you get more exposure.</p>
<p>If you do not like the big retweet button, you can display a compact twitter button, which you can see at the end of this post. Simply paste the following code:</p>
<blockquote><p>&lt;script type=&#39;text/javascript&#39;&gt;<br />
tweetmeme_style = &quot;compact&quot;;<br />
tweetmeme_source = &#39;wpbeginner&#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>Note: Don&#8217;t forget to change the source from wpbeginner to your username in the above code.</p>
<h3>Plugin</h3>
<p>Tweetmeme also offers a plugin that you can <a href="http://wordpress.org/extend/plugins/tweetmeme/" target="_blank" rel="nofollow">download</a>. The plugin will allow you display these buttons within your posts. You will have an option to pick: </p>
<ul>
<li>The display size (compact or large)</li>
<li>Pick the Source of this tweet (Your Username)</li>
<li>Where you want to place the button in the post</li>
</ul>
<h2>Display Twitter Follower Count as Text</h2>
<p>There are users who absolutely hate buttons like Feedburner buttons or Twittercounter buttons. Are you one of them? Do you want to display your twitter count as text, so it blends in to your new custom design? Well then this hack is just for you.</p>
<h3>Snippet</h3>
<p>Paste the following code any where you want to display the count:</p>
<blockquote><p>&lt;?php<br />
$tw = get_option(&quot;twitterfollowerscount&quot;);<br />
if ($tw[&#39;lastcheck&#39;] &lt; ( mktime() &#8211; 3600 ) )<br />
{<br />
$xml=file_get_contents(&#39;http://twitter.com/users/show.xml?screen_name=wpbeginner&#39;);<br />
if (preg_match(&#39;/followers_count&gt;(.*)&lt;/&#39;,$xml,$match)!=0) {<br />
$tw[&#39;count&#39;] = $match[1];<br />
}<br />
$tw[&#39;lastcheck&#39;] = mktime();<br />
update_option(&quot;twitterfollowerscount&quot;,$tw);<br />
}<br />
echo $tw[&#39;count&#39;];<br />
?&gt; </p></blockquote>
<p>Make sure to replace <strong>wpbeginner</strong> with your twitter name.</p>
<p>Explanation of this code: This code will open the XML file for the username that you specify. It will look for the node followers_count, and then it will display that count on your site. Best part about this code is that it will display cached results, so it will keep the load time to the minimum.</p>
<p>This code was written by <a href="http://www.rarst.net/" target="_blank" rel="nofollow">Rarst</a> (<a href="http://twitter.com/Rarst/" target="_blank" rel="nofollow">@rarst</a>)</p>
<h3>Plugin</h3>
<p>For those users who do not feel comfortable modifying the theme files, you can use a plugin called &#8220;<a href="http://wordpress.org/extend/plugins/subscribers-text-counter/" target="_blank"><strong>Subscribers Text Counter</strong></a>&#8220;. This plugin will let you display the follower count in widgets, or on posts/pages. This plugin also utilizes the caching system, so it is a good solution.</p>
<h2>Display Your Recent Tweets</h2>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/recenttweet.gif" alt="Display Your Recent Tweets" /></p>
<p>It is great to give a community sense to a site by displaying recent tweets in the sidebar or on a separate page. Many blogs often display their most recent tweets in their site. This section will show you various different ways to display your recent Tweets.</p>
<h3>Snippet</h3>
<p>There are numerous codes on the web that will let you display recent tweets from your twitter account without a plugin. Almost all of those codes have some shortfall. Below we will share one of the snippets that will allow you to display your recent tweets with caching.</p>
<p>Paste the codes below, wherever you like to display the recent tweets:</p>
<p><a href="http://wpbeginner.com/blogpostsimages/wpandtwitter/singletweet.txt">Download the Code File</a></p>
<p>You must change the username from &#8220;wpbeginner&#8221; to your username. You can find this towards the very end of this code where it reads <strong>parse_cache_feed(wpbeginner, 1)</strong>. The number in front represents the number of tweets that will be displayed. You can change the number to the amount that you like, but we recommend that you keep it to a minimum because this code is utilizing the Search API. </p>
<p><strong>Known Issues:</strong> This snippet is using the Search API, so if your account is removed from twitter search (ofcourse by twitter), then this snippet will not display any results. Also the search API only displays tweets that were posted within the last 7 days.</p>
<p>For those users who are flagged from the search by twitter, we recommend that you contact them and ask why that is the case. In the meantime, you may use a JavaScript solution that will display your tweets from your feed.</p>
<p>Place the following code in your <em>footer.php</em> right above &lt;/body&gt; tag.</p>
<blockquote><p>&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/javascripts/blogger.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/statuses/user_timeline/wpbeginner.json?callback=twitterCallback2&amp;count=5&quot;&gt;&lt;/script&gt;</p></blockquote>
<p>Remember to change the username from wpbeginner to your username. Also you can change the count from 5 to whatever you like.</p>
<p>Then add the following HTML tags any where you want to display the recent tweets.</p>
<blockquote><p>&lt;div id=&quot;twitter_div&quot;&gt;&lt;ul id=&quot;twitter_update_list&quot;&gt;&lt;li&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</p></blockquote>
<p>You would need to edit the CSS file for proper styling.</p>
<p><strong>Known Issues:</strong> This plugin does not have caching, so the scripts will be loaded every time the page loads. </p>
<p>Source: <a href="http://twitter.com/widgets/html_widget" target="_blank" rel="nofollow">Twitter</a></p>
<h3>Plugin</h3>
<p>If you are one of the users who do not want to modify their theme files, there is an alternative plugin that you can use.</p>
<p><a href="http://wordpress.org/extend/plugins/twitter-tools/" target="_blank" rel="nofollow">Alex King&#8217;s Twitter Tool</a></p>
<p>This plugin will let you display recent tweets from your account. It will store your tweets in the database to limit the API queries. Tweets are archived every 10 minutes.</p>
<p>Note: there are way too many plugins that do this, to list them all here.</p>
<h2>Display Recent Tweets from Multiple Accounts</h2>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/multiusertweet.gif" alt="Display Recent Tweets from Multiple Accounts" /></p>
<p>Display recent tweets from Multiple accounts come can be useful to increase community interaction when you have a multi-author blog. You can spend hours on the web trying to find a good solution, but below are two best solutions that we found.</p>
<h4><a href="http://tweet.seaofclouds.com/" target="_blank" rel="nofollow">Tweet!</a></h4>
<p>Tweet is an unobtrusive JavaScript plugin for jQuery that lets you put twitter on your website. This is a great snippet that loads the tweets using JSON. For the download and directions, you should visit the <a href="http://tweet.seaofclouds.com/" target="_blank" rel="nofollow">official page</a>.</p>
<p>Known Issues: This script utilizes the Search API which has it&#8217;s limits. Your search query has a character limit set to 140 characters. So in short, you will be able to get a maximum of 6 &#8211; 8 users depending on the length of their username.</p>
<h4><a href="http://wordpress.org/extend/plugins/tweet-blender/" target="_blank">Tweet Blender</a></h4>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/tweetblender.gif" alt="Tweet Blender Screenshot" /></p>
<p>Tweet Blender plugin allows you to display multiple user&#8217;s tweet. This plugin actually displays the tweets from user&#8217;s feeds, so it does not rely on the Search API. But the more names you put, the longer it will take to load.</p>
<p><strong>Known Issues:</strong> None that we know of.</p>
<h2>Integrate Twitter Conversations About Your Posts</h2>
<p>People are talking about your posts, and their convesation is not limited to the comments in your post. A lot of that conversation is happening on Twitter. Why not bring this conversation right back to your blog? </p>
<p><a href="http://yoast.com/wordpress/tweetbacks/" target="_blank" rel="nofollow">Tweetback</a> plugin imports those tweets about your posts as comments. You can display them in between the other comments on your blog, or display them separately.</p>
<p>You can also add widgets to your site that shows the &#8220;Most Tweeted Posts&#8221; and &#8220;Recently Tweeted Posts&#8221; with the use of a plugin called <a href="http://wordpress.org/extend/plugins/tweet-stats/" target="_blank" rel="nofollow">Tweet Stats </a>. You must have the plugin (<a href="http://yoast.com/wordpress/tweetbacks/" target="_blank" rel="nofollow">Tweetback</a> that we mentioned above in order for this plugin to work).</p>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/tweetstat.gif" alt="Tweet Stat Widget Screenshot" /></p>
<h2>Take your Blog communication to Twitter</h2>
<p>Above we showed you how you can integrate twitter conversations about your blog posts into your comments. In this trick, you will give the user an ability to post the comment on your site, and then also have their conversation on twitter. </p>
<h4><a href="http://www.jonbishop.com/downloads/wordpress-plugins/commentwitter-plugin-page/" target="_blank" rel="nofollow">Commentwitter</a></h4>
<p>This plugin will add a twitter login area below the comments, so users have an option to post their comment to twitter.</p>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/commentwitter.gif" alt="Post blog comments to Twitter" /></p>
<h2>Display a Special Welcome Message for Your Twitter Users</h2>
<p><a href="http://www.twitter.com/wpbeginner" target="_blank" rel="nofollow"><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/welcomemessage.gif" alt="Special Welcome Message for Your Twitter Users" /></a></p>
<p>There are some sites that display a special welcome message to their twitter users. This increase their chances of getting more followers and more retweets for that post.</p>
<p>Simply place the following code in your <em>single.php</em> file where you want the welcome message to be displayed.</p>
<blockquote><p>&lt;?php<br />
if (strpos(&quot;twitter.com&quot;,$_SERVER[HTTP_REFERER])==0) {<br />
    echo &quot;Welcome, Twitter User! If you enjoy this post, don&#39;t hesitate to retweet it to your followers&quot;;<br />
}<br />
?&gt;</p></blockquote>
<h2>Display Your Twitter Friends on Your Site</h2>
<p><img src="http://www.wpbeginner.com/blogpostsimages/wpandtwitter/twitterfriends.gif" alt="Display Your Twitter Friends" /></p>
<p>You have seen the Facebook Fan page widget, Google Connect widget, and Mybloglog widget. All three of these display the friends/fans pictures. You can do that with twitter as well.</p>
<h4><a href="http://wordpress.org/extend/plugins/twitter-friends-widget/" target="_blank" rel="nofollow">Twitter Friends Widget</a></h4>
<p>This plugin displays your Twitter friends/followers in your sidebar in the same way that they appear on your Twitter homepage.</p>
<h2>Twitter Profile Field in Comments</h2>
<p><img src="http://www.wpbeginner.com/mostwanted/twittercomment.gif" alt="Twitter Field in Comments" /></p>
<p>Top tech sites are already doing this. If you go to Mashable or Tech Crunch, then you will see that they have an additional field below the Website URL for Twitter profile. There is a plugin that will let you do that fairly easily.</p>
<h4><a href="http://wordpress.org/extend/plugins/twitterlink-comments/" target="_blank" rel="nofollow">Twitter Link Comments</a></h4>
<p>This plugin will add an extra field to your comment form so a user can add their Twitter username. A user configured &#8216;follow me&#8217; link is then displayed along with their details on all their comments. The extra field and &#8216;follow me&#8217; link can be configured using the settings page without ever needing to modify any template files. (unless you want to)</p>
<p>While these are some of the Most Wanted Twitter Hacks and Plugins, this list is definitely not the end of what you can do with twitter and WordPress. Infact there are 662 Results in the WordPress Plugin Directory when one runs the query for <a href="http://wordpress.org/extend/plugins/search.php?q=twitter&#038;sort=" target="_blank" rel="nofollow">Twitter</a>. There is also a list that we used as our source <a href="http://skyje.com/2009/05/107-wordpress-twitter-plugins/" target="_blank" rel="nofollow">107 Twitter Plugins for WordPress</a>.</p>
<p>If you liked this post, then please retweet it, so others can also take advantage of this useful article. Also don&#8217;t forget to <a href="http://twitter.com/wpbeginner" target="_blank" rel="nofollow">follow us on twitter</a>.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/most-wanted-twitter-hacks-and-plugins-for-wordpress/">Most Wanted Twitter Hacks and Plugins for 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-auto-publish-your-twitter-tweets-as-wordpress-posts/' rel='bookmark' title='Permanent Link: How to Auto Publish Your Twitter Tweets as WordPress Posts'>How to Auto Publish Your Twitter Tweets as WordPress Posts</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/10-most-wanted-category-hacks-and-plugins-for-wordpress/' rel='bookmark' title='Permanent Link: 10 Most Wanted Category Hacks and Plugins for WordPress'>10 Most Wanted Category Hacks and Plugins for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/displaying-the-total-number-of-twitter-followers-as-text-on-wordpress/' rel='bookmark' title='Permanent Link: Displaying the Total Number of Twitter Followers as Text on WordPress'>Displaying the Total Number of Twitter Followers as Text on WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/most-wanted-twitter-hacks-and-plugins-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>How to Rewrite Guest Author Name with Custom Fields in WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:24:05 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[guest author WordPress]]></category>
		<category><![CDATA[guest posts WordPress]]></category>
		<category><![CDATA[how to display guest author's name in WordPress]]></category>
		<category><![CDATA[rewrite guest author names]]></category>
		<category><![CDATA[rewrite Guest Author names in WordPress]]></category>
		<category><![CDATA[show guest author name in WordPress]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1298</guid>
		<description><![CDATA[The trick we are sharing in this article will allow you to show guest author's name by simply entering a custom field in your post.<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/">How to Rewrite Guest Author Name with Custom Fields 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-display-custom-fields-outside-the-loop-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display Custom Fields Outside The Loop in WordPress'>How to Display Custom Fields Outside The Loop in WordPress</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-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>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Have you ever had a guest post on your blog? How do you go about giving the author full credit? We have seen many sites where they add an author profile box either above the post or below the post. But even with the guest author box, the author name field would still show the site author. Some bloggers create entire new author profiles for their guest authors in order to display the right name. We think that it is pointless to create extra user profiles if you know that this guest author will only post once.</p>
<p>The trick we are sharing in this article will allow you to show guest author&#8217;s name by simply entering a custom field in your post.</p>
<p>Open your <em>functions.php</em> file and paste the codes below:</p>
<blockquote><p>add_filter( &#39;the_author&#39;, &#39;guest_author_name&#39; );<br />
add_filter( &#39;get_the_author_display_name&#39;, &#39;guest_author_name&#39; );</p>
<p>function guest_author_name( $name ) {<br />
global $post;</p>
<p>$author = get_post_meta( $post-&gt;ID, &#39;guest-author&#39;, true );</p>
<p>if ( $author )<br />
$name = $author;</p>
<p>return $name;<br />
}</p></blockquote>
<p>Now every time that you are posting a guest post, just make sure that you add a custom field called <strong>guest-author</strong> and it will replace the author&#8217;s name with the text that you put in that custom field. </p>
<p>Example:</p>
<p><img src="http://www.wpbeginner.com/blogposts/guest-author.gif" alt="Rewrite Guest Author's Name using Custom Fields in WordPress" /></p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/">How to Rewrite Guest Author Name with Custom Fields 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-display-custom-fields-outside-the-loop-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display Custom Fields Outside The Loop in WordPress'>How to Display Custom Fields Outside The Loop in WordPress</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-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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Insert Ads within your Post Content in WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-insert-ads-within-your-post-content-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-insert-ads-within-your-post-content-in-wordpress/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 13:56:01 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to add ads in content]]></category>
		<category><![CDATA[how to insert ads after first paragraph in wordpress]]></category>
		<category><![CDATA[insert ads in content wordpress]]></category>
		<category><![CDATA[insert ads within your post content in wordpress]]></category>
		<category><![CDATA[wordpress ads in content]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1287</guid>
		<description><![CDATA[Have you seen blogs that has ads inside their post content? Most beginners wonder whether these sites insert ads manually when they write the content, or if there is a special code for this. This article will show you a snippet that will let you enter ads within the post content after the first paragraph.<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-insert-ads-within-your-post-content-in-wordpress/">How to Insert Ads within your Post Content 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-content-and-completely-manipulate-your-wordpress-rss-feeds/' rel='bookmark' title='Permanent Link: How to Add Content and Completely Manipulate Your WordPress RSS Feeds'>How to Add Content and Completely Manipulate Your WordPress RSS Feeds</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/display-feedburner-subscriber-count-as-text-in-wordpress/' rel='bookmark' title='Permanent Link: Display Feedburner Subscriber Count as Text in WordPress'>Display Feedburner Subscriber Count as Text in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/beginners-guide/how-to-add-a-new-post-in-wordpress-and-utilize-all-the-features/' rel='bookmark' title='Permanent Link: How to Add a New Post in WordPress and Utilize all the Features'>How to Add a New Post in WordPress and Utilize all the Features</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Have you seen blogs that has ads inside their post content? These ads are either after the first paragraph or the second paragraph in most cases. Most beginners wonder whether these sites insert ads manually when they write the content, or if there is a special code for this. It would seem extremely inefficient if one enters the code manually specially if you had to switch advertisers after one year and you have over 200 articles. This article will show you a snippet that will let you enter ads within the post content after the first paragraph.</p>
<p>First open your <em>single.php</em> file and look for the content code that would look something like this:</p>
<blockquote><p>&lt;?php the content(); ?&gt;</p></blockquote>
<p>Replace that code with the codes below:</p>
<blockquote><p>&lt;?php<br />
$paragraphAfter= 1; //display after the first paragraph<br />
$content = apply_filters(&#39;the_content&#39;, get_the_content());<br />
$content = explode(&quot;&lt;/p&gt;&quot;, $content);<br />
for ($i = 0; $i &lt;count($content); $i  ) {<br />
if ($i == $paragraphAfter) { ?&gt;</p>
<p>&lt;div&gt;Your Text / Ads Go Here&lt;/div&gt;	</p>
<p>&lt;?php }<br />
echo $content[$i] . &quot;&lt;/p&gt;&quot;;<br />
} ?&gt;</p></blockquote>
<p>You may change the number of paragraphs by changing $paragraphAfter line. </p>
<p>Source of this article is suspended by the host, we used Google Cache to get this tutorial and it works.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-insert-ads-within-your-post-content-in-wordpress/">How to Insert Ads within your Post Content 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-content-and-completely-manipulate-your-wordpress-rss-feeds/' rel='bookmark' title='Permanent Link: How to Add Content and Completely Manipulate Your WordPress RSS Feeds'>How to Add Content and Completely Manipulate Your WordPress RSS Feeds</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/display-feedburner-subscriber-count-as-text-in-wordpress/' rel='bookmark' title='Permanent Link: Display Feedburner Subscriber Count as Text in WordPress'>Display Feedburner Subscriber Count as Text in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/beginners-guide/how-to-add-a-new-post-in-wordpress-and-utilize-all-the-features/' rel='bookmark' title='Permanent Link: How to Add a New Post in WordPress and Utilize all the Features'>How to Add a New Post in WordPress and Utilize all the Features</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-insert-ads-within-your-post-content-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Highlight the Search Terms in Results in WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-highlight-the-search-terms-in-results-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-highlight-the-search-terms-in-results-in-wordpress/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 14:13:50 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[customize wordpress search]]></category>
		<category><![CDATA[enhance wordpress search results]]></category>
		<category><![CDATA[highlight search terms in results in wordpress]]></category>
		<category><![CDATA[wordpress search]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1244</guid>
		<description><![CDATA[In an attempt to make your WordPress search even more user friendly, you can highlight the search terms in the results. We did this for one of our clients, so we thought it would be useful for other users. In this article we will show you how you can highlight search terms in the results in WordPress.<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-highlight-the-search-terms-in-results-in-wordpress/">How to Highlight the Search Terms in Results 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/display-search-term-and-result-count-in-wordpress/' rel='bookmark' title='Permanent Link: Display Search Term and Result Count in WordPress'>Display Search Term and Result Count in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-highlight-authors-comments-in-wordpress/' rel='bookmark' title='Permanent Link: How to Highlight Author&#8217;s Comments in WordPress'>How to Highlight Author&#8217;s Comments in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/plugins/search-and-replace-plugin-for-wordpress-database/' rel='bookmark' title='Permanent Link: Search and Replace Plugin for WordPress Database'>Search and Replace Plugin for WordPress Database</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In an attempt to make your WordPress search even more user friendly, you can highlight the search terms in the results. We did this for one of our clients, so we thought it would be useful for other users. In this article we will show you how you can highlight search terms in the results in WordPress.</p>
<p>First open your <em>search.php</em> and look for the following code:</p>
<blockquote><p>&lt;?php the_title(); ?&gt;</p></blockquote>
<p>Replace the above code with:</p>
<blockquote><p>&lt;?php echo $title; ?&gt;</p></blockquote>
<p>Make sure that you paste this line above the title code:</p>
<blockquote><p>&lt;?php $title = get_the_title(); $keys= explode(&quot; &quot;,$s); $title = preg_replace(&#39;/(&#39;.implode(&#39;|&#39;, $keys) .&#39;)/iu&#39;, &#39;&lt;strong class=&quot;search-excerpt&quot;&gt;\0&lt;/strong&gt;&#39;, $title); ?&gt;</p></blockquote>
<p>Now open your CSS file and add the styling for the class search-excerpt, and it will highlight the term. Currently the code is making the search terms bold.</p>
<p>Source: <a href="http://www.problogdesign.com/wordpress/3-codes-for-a-far-better-wordpress-search-page/" target="_blank" rel="nofollow">Michael Martin</a></p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-highlight-the-search-terms-in-results-in-wordpress/">How to Highlight the Search Terms in Results 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/display-search-term-and-result-count-in-wordpress/' rel='bookmark' title='Permanent Link: Display Search Term and Result Count in WordPress'>Display Search Term and Result Count in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-highlight-authors-comments-in-wordpress/' rel='bookmark' title='Permanent Link: How to Highlight Author&#8217;s Comments in WordPress'>How to Highlight Author&#8217;s Comments in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/plugins/search-and-replace-plugin-for-wordpress-database/' rel='bookmark' title='Permanent Link: Search and Replace Plugin for WordPress Database'>Search and Replace Plugin for WordPress Database</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-highlight-the-search-terms-in-results-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Display Search Term and Result Count in WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/display-search-term-and-result-count-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/display-search-term-and-result-count-in-wordpress/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 19:16:06 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[enhance wordpress search]]></category>
		<category><![CDATA[wordpress search]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1239</guid>
		<description><![CDATA[In this tutorial we will share how you can add a simple function on your search page which will display the search term and the number of results.<p><a href="http://www.wpbeginner.com/wp-tutorials/display-search-term-and-result-count-in-wordpress/">Display Search Term and Result Count 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-highlight-the-search-terms-in-results-in-wordpress/' rel='bookmark' title='Permanent Link: How to Highlight the Search Terms in Results in WordPress'>How to Highlight the Search Terms in Results in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/display-the-most-accurate-comment-count-in-wordpress/' rel='bookmark' title='Permanent Link: Display the Most Accurate Comment Count in WordPress'>Display the Most Accurate Comment Count in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/display-feedburner-subscriber-count-as-text-in-wordpress/' rel='bookmark' title='Permanent Link: Display Feedburner Subscriber Count as Text in WordPress'>Display Feedburner Subscriber Count as Text in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will share how you can add a simple function on your search page which will display the search term and the number of results. This feature was a special request by one of our user via email. If you want us to cover a topic, then feel free to <a href="http://www.wpbeginner.com/make-a-suggestion/">make a suggestion</a>.</p>
<p>Open your <em>search.php</em> file in your template folder and add the following code:</p>
<blockquote><p>&lt;h2 class=&quot;pagetitle&quot;&gt;Search Result for &lt;?php /* Search Count */ $allsearch = &amp;new WP_Query(&quot;s=$s&amp;showposts=-1&quot;); $key = wp_specialchars($s, 1); $count = $allsearch-&gt;post_count; _e(&#39;&#39;); _e(&#39;&lt;span class=&quot;search-terms&quot;&gt;&#39;); echo $key; _e(&#39;&lt;/span&gt;&#39;); _e(&#39; &amp;mdash; &#39;); echo $count . &#39; &#39;; _e(&#39;articles&#39;); wp_reset_query(); ?&gt;&lt;/h2&gt;</p></blockquote>
<p>The code above will display something like this:</p>
<p><strong>Search Result for twitter  — 15 articles</strong></p>
<p>This is just one of the cool things that you can do for your Search Page when customizing it.</p>
<p>Source: <a href="http://www.problogdesign.com/wordpress/3-codes-for-a-far-better-wordpress-search-page/" target="_blank" rel="nofollow">Michael Martin</a></p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/display-search-term-and-result-count-in-wordpress/">Display Search Term and Result Count 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-highlight-the-search-terms-in-results-in-wordpress/' rel='bookmark' title='Permanent Link: How to Highlight the Search Terms in Results in WordPress'>How to Highlight the Search Terms in Results in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/display-the-most-accurate-comment-count-in-wordpress/' rel='bookmark' title='Permanent Link: Display the Most Accurate Comment Count in WordPress'>Display the Most Accurate Comment Count in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/display-feedburner-subscriber-count-as-text-in-wordpress/' rel='bookmark' title='Permanent Link: Display Feedburner Subscriber Count as Text in WordPress'>Display Feedburner Subscriber Count as Text in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/display-search-term-and-result-count-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Change the Category Base Prefix in WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-change-the-category-base-prefix-in-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-change-the-category-base-prefix-in-wordpress/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:14:10 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[change category base prefix in WordPress]]></category>
		<category><![CDATA[change tag base prefix in wordpress]]></category>
		<category><![CDATA[completely remove category base prefix in wordpress]]></category>
		<category><![CDATA[how to remove category base prefix in WordPress]]></category>
		<category><![CDATA[modify category base prefix in wordpress]]></category>
		<category><![CDATA[remove category prefix in wordpress]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1224</guid>
		<description><![CDATA[In this article we will show you how to change the category base prefix in WordPress, and we will also touch base on a possible way that will allow you to remove the category prefix entirely.<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-change-the-category-base-prefix-in-wordpress/">How to Change the Category Base Prefix 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/seo-friendly-url-structure-for-wordpress/' rel='bookmark' title='Permanent Link: SEO Friendly URL Structure for WordPress'>SEO Friendly URL Structure for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/beginners-guide/rename-the-uncategorized-category/' rel='bookmark' title='Permanent Link: Rename the Uncategorized Category'>Rename the Uncategorized Category</a></li>
<li><a href='http://www.wpbeginner.com/beginners-guide/multiple-wordpress-installation-using-a-single-database/' rel='bookmark' title='Permanent Link: Multiple WordPress Installation Using a Single Database'>Multiple WordPress Installation Using a Single Database</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>We got several requests asking the same question: How to modify the category base prefix in WordPress? Well there is a very easy way to change the category base prefix, but there is no real solution to completely remove this prefix. In this article we will show you how to change the category base prefix in WordPress, and we will also touch base on a possible way that will allow you to remove the category prefix entirely.</p>
<p><strong>What is a Category Base Prefix?</strong></p>
<p>In your URL structure, you will see something like this http://yoursite.com/<strong>category</strong>/wordpress</p>
<p>That word category is the base prefix that all WordPress blogs will have as long as they are not using the default permalink structure.</p>
<h4>How to Change / Modify the Category Base Prefix?</h4>
<p>It is really easy to change that prefix to anything you like. For examples then your URL would look like yourdomain.com/articles/wordpress</p>
<p>First you would need to go in your WP-Admin Panel and go to Settings &raquo; Permalinks</p>
<p>There you would see an Optional box which allows you to change the category base prefix and the tag base prefix. (Example Below)</p>
<p><img src="http://www.wpbeginner.com/blogposts/categorybaseprefix.gif" alt="How to Change Category Base Prefix in WordPress" /></p>
<p>Simply add the text that you like, and you are done. This way is guaranteed to work because it is a hard-coded option within WordPress.</p>
<h4>How to Remove Category Base Prefix in WordPress</h4>
<p>There is no bug free way to get this done. For those who want no problems with their site, we recommend that you do not even try this because it can lead to problems. There is a plugin that allows you to completely get rid of the prefix, so it would be yourdomain.com/wordpress rather than yourdomain.com/category/wordpress. This plugin is called <a href="http://wordpress.org/extend/plugins/top-level-cats/" target="_blank" rel="nofollow">Top Level Directories</a>. </p>
<p><strong>Known Issues:</strong></p>
<p>This plugin will not work if you have a permalink structure like %postname or %category%/%postname%   and there is currently no workaround. </p>
<p>If you add a suffix to your permalink structure (such as .html) you can fix this issue. For example, try %category%/%postname%.html  &#8211; This is not ideal, but there is no good solution for this issue.</p>
<p>For now we suggest that you stick with a modified base prefix if necessary. All we can do is hope that WordPress adds this feature in the future versions.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-change-the-category-base-prefix-in-wordpress/">How to Change the Category Base Prefix 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/seo-friendly-url-structure-for-wordpress/' rel='bookmark' title='Permanent Link: SEO Friendly URL Structure for WordPress'>SEO Friendly URL Structure for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/beginners-guide/rename-the-uncategorized-category/' rel='bookmark' title='Permanent Link: Rename the Uncategorized Category'>Rename the Uncategorized Category</a></li>
<li><a href='http://www.wpbeginner.com/beginners-guide/multiple-wordpress-installation-using-a-single-database/' rel='bookmark' title='Permanent Link: Multiple WordPress Installation Using a Single Database'>Multiple WordPress Installation Using a Single Database</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-change-the-category-base-prefix-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Add Content and Completely Manipulate Your WordPress RSS Feeds</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-add-content-and-completely-manipulate-your-wordpress-rss-feeds/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-add-content-and-completely-manipulate-your-wordpress-rss-feeds/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:37:28 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[add custom fields to wordpress rss]]></category>
		<category><![CDATA[add custom text to your wordpress rss]]></category>
		<category><![CDATA[add custom title to your wordpress rss]]></category>
		<category><![CDATA[add rss footer]]></category>
		<category><![CDATA[how to add content in your wordpress rss feeds]]></category>
		<category><![CDATA[rss tutorial]]></category>
		<category><![CDATA[wordpress tutorial]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1200</guid>
		<description><![CDATA[This article which will show you how to add any type of content in your WordPress RSS Feeds. This hack will put you in control of your WordPress RSS Feeds and you can manipulate it in anyway you want. <p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-content-and-completely-manipulate-your-wordpress-rss-feeds/">How to Add Content and Completely Manipulate Your WordPress RSS Feeds</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/control-your-rss-feeds-footer-in-wordpress/' rel='bookmark' title='Permanent Link: Control Your RSS Feeds Footer in WordPress'>Control Your RSS Feeds Footer in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-setup-auto-discovery-for-your-wordpress-rss-feeds/' rel='bookmark' title='Permanent Link: How to Setup Auto Discovery for Your WordPress RSS Feeds'>How to Setup Auto Discovery for Your WordPress RSS Feeds</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-disable-rss-feeds-in-wordpress/' rel='bookmark' title='Permanent Link: How to Disable RSS Feeds in WordPress'>How to Disable RSS Feeds in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A while back we shared <a href="http://www.wpbeginner.com/plugins/control-your-rss-feeds-footer-in-wordpress/">how you can control your WordPress RSS Footer</a> with a use of a famous plugin called RSS Footer by Joost. While the plugin is great, but it is very limited. You can only add text to the footer, and it is always the same text displayed on each post&#8217;s footer. What if you want to display different text for each post in your RSS post? What if you want specific posts to have a different title in RSS Feeds? What if you want to display a specific custom field in your RSS Feeds? Well this is why we present you this article which will show you how to add any type of content in your WordPress RSS Feeds. This hack will put you in control of your WordPress RSS Feeds and you can manipulate it in anyway you want. </p>
<p>Note: This hack is not for beginners. Only users who feel comfortable with editing functions.php file and have some knowledge of php should try this. Beginner users should either use the plugin mentioned in the article above, or consult professionals like us to do it for you.</p>
<h4>1. Add a Custom Field to your WordPress RSS Footer</h4>
<p>In this first example, we will show you how you can use custom field to display specific text/object in your WordPress RSS Feed. This trick will allow you to show different text, advertisement, image, or anything else for each post. First open your functions.php and paste the following codes in the php tags:</p>
<blockquote><p>function wpbeginner_postrss($content) {<br />
global $wp_query;<br />
$postid = $wp_query-&gt;post-&gt;ID;<br />
$coolcustom = get_post_meta($postid, &#39;coolcustom&#39;, true);<br />
if(is_feed()) {<br />
if($coolcustom !== &#39;&#39;) {<br />
$content = $content.&quot;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&quot;.$coolcustom.&quot;&lt;/div&gt;\n&quot;;<br />
}<br />
else {<br />
$content = $content;<br />
}<br />
}<br />
        return $content;<br />
}<br />
add_filter(&#39;the_excerpt_rss&#39;, &#39;wpbeginner_postrss&#39;);<br />
add_filter(&#39;the_content&#39;, &#39;wpbeginner_postrss&#39;);</p></blockquote>
<p>Now most of you are wondering how this code is functioning. So here is an explanation. We create a function called wpbeginner_postrss which runs a global wp_query to search in each post if a custom field called &#8220;coolcustom&#8221; is defined. If Cool Custom is defined then it shows the value after the post content. If there is no custom field defined, then the function by default shows just the post content and nothing else. We use the variable $content to display content.  We are using if(is_feed) function and adding the custom text or other content to the main post content itself which you can see by the second filter. But it will only be displayed in the RSS Feeds due to our user of if(is_feed) function. By doing it this way, we avoid all the compatibility issues. </p>
<p>Some of you will say but you just did what RSS footer plugin does with a function. Yes and NO. Yes we are adding the code at the footer of the post, but this text is not the same exact text for each post. It is different because you specify different text for each post via custom fields. This trick will be very handy to comply with the new FTC guidelines for blogs that have all different type of posts.</p>
<h4>2. Adding Additional Text to Post Titles in RSS</h4>
<p>Does your blog have guest posts, sponsored posts, and review posts? Well if you do then you will find this very useful. Some bloggers have custom styling to display each different type of post, so their users can distinguish between them. But when these posts go in a reader, all the stylings are gone. That is when this trick comes in handy. In this trick we will add any text either before or after the title.</p>
<p>For example if your title was &#8220;Commercial WordPress Theme &#8211; StudioPress&#8221; and it was a sponsored post, then you can change it to &#8220;Sponsored Post: Commercial WordPress Theme &#8211; StudioPress&#8221;. Same if someone wrote a guest post etc.</p>
<p>To accomplish this, open your functions.php file and add the following code in there:</p>
<blockquote><p>function wpbeginner_titlerss($content) {<br />
global $wp_query;<br />
$postid = $wp_query-&gt;post-&gt;ID;<br />
$gpost = get_post_meta($postid, &#39;guest_post&#39;, true);<br />
$spost = get_post_meta($postid, &#39;sponsored_post&#39;, true); </p>
<p>if($gpost !== &#39;&#39;) {<br />
$content = &#39;Guest Post: &#39;.$content;<br />
}<br />
elseif ($spost !== &#39;&#39;){<br />
$content = &#39;Sponsored Post: &#39;.$content;<br />
}<br />
else {<br />
$content = $content;<br />
}<br />
        return $content;<br />
}<br />
add_filter(&#39;the_title_rss&#39;, &#39;wpbeginner_titlerss&#39;);</p></blockquote>
<p>Explanation for the code: </p>
<p>We are using the function called wpbeginner_titlerss which runs a global wp_query to search in each post if it contains either $gpost or $spost. These two elements are basically looking for two specific custom fields called &#8220;guest_post&#8221; or &#8220;sponsored_post&#8221;. If anyone has these custom fields added with a value true, then the code will add it in the text. If not then you will just see the normal title. You can see first the code looks for if $gpost is true, if that is not true whether $spost is true. If that is not also not defined, then it displays normal content. But if either one of them was true, then it displays the different text you specify here. We are using $content string to display the post title.</p>
<p>Now that was just displaying custom fields in the title. Do you want to display Category name on each title? Well then you should simply paste the following code in your functions.php file:</p>
<blockquote><p>function wpbeginner_cattitlerss($content) {<br />
        $postcat = &quot;&quot;;<br />
        foreach((get_the_category()) as $cat) {<br />
                $postcat .= &#39; (&#39;.$cat-&gt;cat_name . &#39;)&#39;;<br />
        }<br />
        $content = $content.$postcat;<br />
        return $content;<br />
}<br />
add_filter(&#39;the_title_rss&#39;, &#39;wpbeginner_cattitlerss&#39;);</p></blockquote>
<p>Explanation: We are using the function wpbgeinner_cattitlerss to get the category ID for each post and then displaying that right next to the title. So if the title is &#8220;Get Contact Form 7&#8243; now it would be &#8220;Get Contact Form 7 [Plugins]&#8220;. You can see that there is no if then variable in this code. We use $content for the main title and $postcat variable to define the category name. You rearrange that if you like.</p>
<h4>3. Add Same Text on all Posts in RSS</h4>
<p>If you just want to add the same text then you might as well use the plugin called RSS Footer by Joost because it is easier. But if you want to do it yourself this is how you do it. Open your functions.php file add the following code:</p>
<blockquote><p>function wpbeginner_postrss($content) {<br />
        if(is_feed()){<br />
                $content = &#39;This post was written by Syed Balkhi &#39;.$content.&#39;Check out WPBeginner&#39;;<br />
        }<br />
        return $content;<br />
}<br />
add_filter(&#39;the_excerpt_rss&#39;, &#39;wpbeginner_postrss&#39;);<br />
add_filter(&#39;the_content&#39;, &#39;wpbeginner_postrss&#39;);</p></blockquote>
<p>Explanation: We are calling a function wpbeginner_postrss to add in each post a content before the post saying This Post was written by Syed Balkhi and after the content Check out WPBeginner. But we add the function if(is_feed), so it will only be displayed in RSS Feeds.</p>
<p>This would be very helpful if you wanted to sell ads on specific posts in RSS, add custom FTC guidelines or just wanted to have more control over your RSS Feeds.</p>
<p>Source: We used Joost&#8217;s RSS Footer plugin for a lot of guidance in writing this tutorial. The title RSS hack part we got from a <a href="http://www.webinventif.fr/wordpress-ajouter-du-contenu-dans-son-flux/">French tutorial site</a> and we added our own variables and gave it the ability to be custom titles per custom field.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-content-and-completely-manipulate-your-wordpress-rss-feeds/">How to Add Content and Completely Manipulate Your WordPress RSS Feeds</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/control-your-rss-feeds-footer-in-wordpress/' rel='bookmark' title='Permanent Link: Control Your RSS Feeds Footer in WordPress'>Control Your RSS Feeds Footer in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-setup-auto-discovery-for-your-wordpress-rss-feeds/' rel='bookmark' title='Permanent Link: How to Setup Auto Discovery for Your WordPress RSS Feeds'>How to Setup Auto Discovery for Your WordPress RSS Feeds</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-disable-rss-feeds-in-wordpress/' rel='bookmark' title='Permanent Link: How to Disable RSS Feeds in WordPress'>How to Disable RSS Feeds in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-add-content-and-completely-manipulate-your-wordpress-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>55+ Most Wanted WordPress Tips, Tricks, and Hacks</title>
		<link>http://www.wpbeginner.com/wp-tutorials/55-most-wanted-wordpress-tips-tricks-and-hacks/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/55-most-wanted-wordpress-tips-tricks-and-hacks/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 19:40:07 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[best wordpress hacks]]></category>
		<category><![CDATA[best wordpress tutorials]]></category>
		<category><![CDATA[list of wordpress tips]]></category>
		<category><![CDATA[most wanted wordpress hacks]]></category>
		<category><![CDATA[most wanted wordpress tips]]></category>
		<category><![CDATA[most wanted wordpress tricks]]></category>
		<category><![CDATA[most wanted wordpress tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1192</guid>
		<description><![CDATA[There are times when you come across a feature in a blog, and you just start thinking to yourself: How can I get this in my WordPress blog/site as well. Everybody have experienced this feeling. In this article we will be sharing some of the most wanted WordPress Tips, Tricks, and Hacks that you will definitely find useful.<p><a href="http://www.wpbeginner.com/wp-tutorials/55-most-wanted-wordpress-tips-tricks-and-hacks/">55+ Most Wanted WordPress Tips, Tricks, and Hacks</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/most-wanted-twitter-hacks-and-plugins-for-wordpress/' rel='bookmark' title='Permanent Link: Most Wanted Twitter Hacks and Plugins for WordPress'>Most Wanted Twitter Hacks and Plugins for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/10-most-wanted-category-hacks-and-plugins-for-wordpress/' rel='bookmark' title='Permanent Link: 10 Most Wanted Category Hacks and Plugins for WordPress'>10 Most Wanted Category Hacks and Plugins for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/11-vital-tips-and-hacks-to-protect-your-wordpress-admin-area/' rel='bookmark' title='Permanent Link: 13 Vital Tips and Hacks to Protect Your WordPress Admin Area'>13 Vital Tips and Hacks to Protect Your WordPress Admin Area</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are times when you come across a feature in a blog, and you just start thinking to yourself: How can I get this in my WordPress blog/site as well. Everybody have experienced this feeling. Sometimes you know you want it, and don&#8217;t know where to look for, or even what to look for. In this article we will be sharing some of the most wanted WordPress Tips, Tricks, and Hacks that you will definitely find useful.</p>
<p>These tutorials are classified under various skills level. For some tutorials, you will need to know basic HTML and some WordPress Knowledge. Use the link below as one of your resources:</p>
<p><a href="http://www.wpbeginner.com/wp-themes/wordpress-theme-cheat-sheet-for-beginners/">WordPress Theme Cheat Sheet for Beginners</a></p>
<h4>1. How to use a Custom Page as a Home Page in WordPress</h4>
<p>This is one of the most wanted hacks that users want to know how to accomplish. First you need to learn how to create a custom page. You will need to duplicate your page.php or create a brand new .php file and add the following code at the very top:</p>
<blockquote><p>&lt;?php /* Template Name: WPBeginnerT1 */ ?&gt; </p></blockquote>
<p>You can change the template name. Change any styling, that you want in that page. Go to your WordPress admin panel and create a new page and select this template.</p>
<p><img src="http://www.wpbeginner.com/blogposts/custompagetemplate.gif" alt="Custom Page Template" /></p>
<p>Once you have published this page go to Settings &raquo; Reading in your admin panel.</p>
<p><img src="http://www.wpbeginner.com/blogposts/customhomepage.gif" alt="Custom Homepage in WordPress" /></p>
<p>And select your page to be the homepage. Now you have yourself a Custom Home Page.</p>
<h4>2. How to Create a Page that Displays Random Posts</h4>
<p>Have you ever been to a site and saw this cool feature? They have a link in their top navigation to something like Stumbe! or Read Random Articles, or some other creative text. When you click on that link, it takes you to a page that displays one random page. Each time you refresh, you are delivered with a new post. Well this trick is just for you then.</p>
<p>You would need to follow the trick #1 in this article to create a custom page template. And simply paste this code in there:</p>
<blockquote><p>    &lt;?php<br />
    query_posts(array(&#39;orderby&#39; =&gt; &#39;rand&#39;, &#39;showposts&#39; =&gt; 1));<br />
    if (have_posts()) :<br />
    while (have_posts()) : the_post(); ?&gt;</p>
<p>    &lt;h1&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;</p>
<p>    &lt;?php the_content(); ?&gt;</p>
<p>    &lt;?php endwhile;<br />
    endif; ?&gt;</p></blockquote>
<p>This is a simple WordPress Loop that is running a query to display random posts and the number 1 in there is telling WordPress to only show 1 post. You can change that number, but most of the time people do it one post a time. </p>
<p>We have a <a href="http://www.wpbeginner.com/random-posts-from-wpbeginner/" target="_blank">Quick Reading Page</a> on our site as well, so you can see this trick in action.</p>
<h4>3. How to Display any External RSS Feed on Your Site</h4>
<p><img src="http://www.wpbeginner.com/killerhacks/rsstohtml.gif" alt="Display any External RSS Feed in WordPress" /></p>
<p>Have you seen other bloggers who display their other blog&#8217;s feed on their site. You want to do it too for extra promotion and traffic. Well here is the tutorial for you. Simply paste the following code in anywhere in your theme:</p>
<blockquote><p>&lt;?php include_once(ABSPATH.WPINC.&#39;/feed.php&#39;);<br />
$rss = fetch_feed(&#39;http://feeds.feedburner.com/wpbeginner&#39;);<br />
$maxitems = $rss-&gt;get_item_quantity(5);<br />
$rss_items = $rss-&gt;get_items(0, $maxitems);<br />
?&gt;<br />
&lt;ul&gt;<br />
&lt;?php if ($maxitems == 0) echo &#39;&lt;li&gt;No items.&lt;/li&gt;&#39;;<br />
else<br />
// Loop through each feed item and display each item as a hyperlink.<br />
foreach ( $rss_items as $item ) : ?&gt;<br />
&lt;li&gt;<br />
&lt;a href=&#39;&lt;?php echo $item-&gt;get_permalink(); ?&gt;&#39;<br />
title=&#39;&lt;?php echo &#39;Posted &#39;.$item-&gt;get_date(&#39;j F Y | g:i a&#39;); ?&gt;&#39;&gt;<br />
&lt;?php echo $item-&gt;get_title(); ?&gt;&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/ul&gt;</p></blockquote>
<h4>4. How to Display Relative Dates in WordPress</h4>
<p><img src="http://www.wpbeginner.com/mostwanted/relativedating.gif" alt="Display Relative Dates in WordPress" /></p>
<p>Have you ever seen this in blog posts and comments and wondered how did this blogger manage to do this? Actually it is pretty easy.</p>
<p>You would need to download a plugin called <a href="http://wordpress.org/extend/plugins/wp-relativedate/" target="_blank" rel="nofollow">WP-Relative Date</a></p>
<p>Once you have downloaded and activated the plugin, look in your single.php, index.php, and page.php for this code:</p>
<blockquote><p>&lt;?php the_date(); ?&gt;</p></blockquote>
<p>Replace it with:</p>
<blockquote><p>&lt;?php relative_post_the_date(); ?&gt;</p></blockquote>
<h4>5. Allow Users to Submit News on Your Site</h4>
<p><img src="http://www.wpbeginner.com/blogposts/submitanews1.gif" alt="Submit a News in WordPress Site Feature" /></p>
<p>This trick is being adapted by many top sites to keep a useful resource section in their sidebar which is maintained mostly by site&#8217;s audience. Did you want to know how you could do that? </p>
<p>First you will need to download a plugin called <a href="http://wordpress.org/extend/plugins/tdo-mini-forms/" target="_blank" rel="nofollow">TDO Mini Forms</a> and follow <a href="http://www.wpbeginner.com/plugins/how-to-allow-users-to-submit-news-posts-to-your-wordpress-site/" target="_blank">directions</a>.</p>
<h4>6. Link to External Links from Your Post Title</h4>
<p>Did you see other sites link to external posts from their post title? Well that is because it is completely useless to create a new post where inside you are going to tell users to go to another site to read it. You are wasting your user&#8217;s time. This trick will allow you to link to external links from your post title in WordPress.</p>
<p>First open your <em>functions.php</em> file and add the following codes in there:</p>
<blockquote><p>    function print_post_title() {<br />
    global $post;<br />
    $thePostID = $post-&gt;ID;<br />
    $post_id = get_post($thePostID);<br />
    $title = $post_id-&gt;post_title;<br />
    $perm = get_permalink($post_id);<br />
    $post_keys = array(); $post_val = array();<br />
    $post_keys = get_post_custom_keys($thePostID);</p>
<p>    if (!empty($post_keys)) {<br />
    foreach ($post_keys as $pkey) {<br />
    if ($pkey==&#39;url1&#39; || $pkey==&#39;title_url&#39; || $pkey==&#39;url_title&#39;) {<br />
    $post_val = get_post_custom_values($pkey);<br />
    }<br />
    }<br />
    if (empty($post_val)) {<br />
    $link = $perm;<br />
    } else {<br />
    $link = $post_val[0];<br />
    }<br />
    } else {<br />
    $link = $perm;<br />
    }<br />
    echo &#39;&lt;h2&gt;&lt;a href=&quot;&#39;.$link.&#39;&quot; rel=&quot;bookmark&quot; title=&quot;&#39;.$title.&#39;&quot;&gt;&#39;.$title.&#39;&lt;/a&gt;&lt;/h2&gt;&#39;;<br />
    } </p></blockquote>
<p>These codes must be placed in php tags. </p>
<p>Then open your index.php and find the following code:</p>
<blockquote><p>&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;</p></blockquote>
<p>And replace it with:</p>
<blockquote><p>&lt;?php print_post_title(); ?&gt;</p></blockquote>
<p>This can also be accomplished by a use of a plugin called <a href="http://txfx.net/code/WordPress/page-links-to/" target="_blank" rel="nofollow">Page Links To</a>.</p>
<h4>7. <a href="http://www.wpbeginner.com/wp-tutorials/create-a-free-email-newsletter-service-using-wordpress/" target="_blank">Use WordPress as a Free Email Newsletter Service</a></h4>
<p><img src="http://www.wpbeginner.com/newsletter/catid.gif" alt="Free Email News Service using WordPress" /></p>
<p>Did you see other sites using Email Newsletter services? Well you can make your WordPress work this way as well. Simply follow <a href="http://www.wpbeginner.com/wp-tutorials/create-a-free-email-newsletter-service-using-wordpress/">this tutorial</a>.</p>
<h4>8. Display any Number of Posts in a Loop</h4>
<p>Did you ever want to display a different number of posts on different pages. For example on your category pages, you want to display 10 posts which you can control from your Admin panel, but another page you want to show only 5 posts. Well this tutorial is just for you. </p>
<p>Open a Template file where you want to display an x number of recent posts:</p>
<blockquote><p>    // if everything is in place and ready, let&#8217;s start the loop</p>
<p>    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?></p>
<p>    // to display &#8216;n&#8217; number of posts, we need to execute the loop &#8216;n&#8217; number of times<br />
    // so we define a numerical variable called &#8216;$count&#8217; and set its value to zero<br />
    // with each iteration of the loop, the value of &#8216;$count&#8217; will increase by one<br />
    // after the value of &#8216;$count&#8217; reaches the specified number, the loop will stop<br />
    // *USER: change the &#8216;n&#8217; to the number of posts that you would like to display</p>
<p>    <?php static $count = 0;<br />
    if ($count == "n") { break; }<br />
    else { ?></p>
<p>    // for CSS styling and layout purposes, we wrap the post content in a div<br />
    // we then display the entire post content via the &#8216;the_content()&#8217; function<br />
    // *USER: change to &#8216;<?php the_excerpt(); ?>&#8216; to display post excerpts instead</p>
<div class="post">
    <?php the_title(); ?><br />
    <?php the_content(); ?>
    </div>
<p>    // here, we continue with the limiting of the number of displayed posts<br />
    // each iteration of the loop increases the value of &#8216;$count&#8217; by one<br />
    // the final two lines complete the loop and close the if statement</p>
<p>    <?php $count ; } ?><br />
    <?php endwhile; ?><br />
    <?php endif; ?> </p></blockquote>
<p><a href="http://perishablepress.com/press/2007/08/06/super-loop-exclude-specific-categories-and-display-any-number-of-posts/" target="_blank" rel="nofollow">Source</a></p>
<h4>9. Highlight Author&#8217;s Comment</h4>
<p><img src="http://www.wpbeginner.com/mostwanted/authorhighlight.gif" alt="Highlight Authors comment" /></p>
<p>Have you ever seen this on blogs where author&#8217;s comments are distinguished from other comments? Well this is a simple and easy trick.</p>
<p>First you need to open your style.css in your template folder and add the following:</p>
<blockquote><p>.authorstyle {  background-color: #B3FFCC !important; }</p></blockquote>
<p>Then you need to open your comments.php which is also located in your themes folder and find the code that looks some what like this:</p>
<blockquote><p>&lt;li &lt;?php echo $oddcomment; ?&gt;id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;&lt;/li&gt;</p></blockquote>
<p>Replace it with:</p>
<blockquote><p>&lt;li class=&quot;&lt;?php if ($comment-&gt;user_id == 1) $oddcomment = &quot;authorstyle&quot;; echo $oddcomment; ?&gt;&quot;&gt;&lt;/li&gt;</p></blockquote>
<p>Note you must change 1 to the user id of the author. Once you do this, your blog comments will have a different background for the author&#8217;s comment compared to the rest.</p>
<p>Thanks to <a href="http://www.mattcutts.com/blog/highlight-author-comments-wordpress/" target="_blank" rel="nofollow">Matt Cutts</a> for this tutorial.</p>
<h4>10. <a href="http://www.wpbeginner.com/wp-themes/how-to-add-post-thumbnails-in-wordpress/" target="_blank">Create Thumbnails for Each Post and Display Them</a></h4>
<p><img src="http://www.wpbeginner.com/mostwanted/howtothumbnail.gif" alt="Create Thumbnails for Each Post in WordPress" /></p>
<p>This technique utilizes the new feature added in WordPress 2.9 to add Thumbnails to each post and you can display them anywhere in the loop.</p>
<h4>11. Display Feedburner Subscriber Count as Text</h4>
<p>Have you ever been to a site that is not using Feedburner button and is still showing subscriber count? Well they are probably using the trick we are about to share. Most designers use this trick to have custom styling and avoid the annoying feedburner button.</p>
<p>Simply copy and paste this code anywhere you like most likely <em>sidebar.php</em></p>
<blockquote><p>    &lt;?php<br />
    //get cool feedburner count<br />
    $whaturl=&quot;http://api.feedburner.com/awareness/1.0/GetFeedData?uri=your feedburner id&quot;;</p>
<p>    //Initialize the Curl session<br />
    $ch = curl_init();</p>
<p>    //Set curl to return the data instead of printing it to the browser.<br />
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);</p>
<p>    //Set the URL<br />
    curl_setopt($ch, CURLOPT_URL, $whaturl);</p>
<p>    //Execute the fetch<br />
    $data = curl_exec($ch);</p>
<p>    //Close the connection<br />
    curl_close($ch);<br />
    $xml = new SimpleXMLElement($data);<br />
    $fb = $xml-&gt;feed-&gt;entry[&#39;circulation&#39;];<br />
    echo $fb;<br />
    //end get cool feedburner count<br />
    ?&gt;</p></blockquote>
<p>You can wrap it around in styling to make it look like however you want.</p>
<h4>12. Display Twitter Follower Count as Text</h4>
<p>There are users who absolutely hate buttons like Feedburner buttons or Twittercounter buttons. Are you one of them? Do you want to display your twitter count as text, so it blends in to your new custom design? Well then this hack is just for you. </p>
<p>First you would need to create a file twitter.php and paste the following code in there:</p>
<blockquote><p>&lt;?php<br />
$tw = get_option(&quot;twitterfollowerscount&quot;);<br />
if ($tw[&#39;lastcheck&#39;] &lt; ( mktime() &#8211; 3600 ) )<br />
{<br />
$xml=file_get_contents(&#39;http://twitter.com/users/show.xml?screen_name=wpbeginner&#39;);<br />
if (preg_match(&#39;/followers_count&gt;(.*)&lt;/&#39;,$xml,$match)!=0) {<br />
$tw[&#39;count&#39;] = $match[1];<br />
}<br />
$tw[&#39;lastcheck&#39;] = mktime();<br />
update_option(&quot;twitterfollowerscount&quot;,$tw);<br />
}<br />
echo $tw[&#39;count&#39;];<br />
?&gt; </p></blockquote>
<p>Make sure to replace wpbeginner with your twitter name.</p>
<p>Then Simply place this code anywhere you want to display this:</p>
<blockquote><p>&lt;?php include(&quot;twitter.php&quot;); ?&gt;</p></blockquote>
<p><a href="http://www.wprecipes.com" target="_blank" rel="nofollow">Source</a></p>
<h4>13. <a href="http://www.catswhocode.com/blog/create-your-own-private-twitter-site-using-wordpress" target="_blank" rel="nofollow">Create Your Own Private Twitter Site using WordPress</a></h4>
<p><a href="http://www.catswhocode.com/blog/create-your-own-private-twitter-site-using-wordpress" target="_blank" rel="nofollow"><img src="http://www.wpbeginner.com/usesofwp/twitter.gif" alt="Create Your Own Private Twitter Site Using WordPress" /></a></p>
<h4>14. Control When Your Posts are Available via RSS</h4>
<p><img src="http://www.wpbeginner.com/killerhacks/rsstimecontrol.gif" alt="Control When Your Posts are Available via RSS" /></p>
<p>There are times when you publish a post and suddenly find an error. You can go back in the admin panel and change it, but it is already published in the feeds. With this hack, you can put a delay of as many minutes as you like, so you can double check the post live.</p>
<p>Simply open your functions.php and add the following code in there:</p>
<blockquote><p>    function publish_later_on_feed($where) {<br />
    global $wpdb;</p>
<p>    if ( is_feed() ) {<br />
    // timestamp in WP-format<br />
    $now = gmdate(&#39;Y-m-d H:i:s&#39;);</p>
<p>    // value for wait;   device<br />
    $wait = &#39;10&#39;; // integer</p>
<p>    // http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff<br />
    $device = &#39;MINUTE&#39;; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR</p>
<p>    // add SQL-sytax to default $where<br />
    $where .= &quot; AND TIMESTAMPDIFF($device, $wpdb-&gt;posts.post_date_gmt, &#39;$now&#39;) &gt; $wait &quot;;<br />
    }<br />
    return $where;<br />
    }</p>
<p>    add_filter(&#39;posts_where&#39;, &#39;publish_later_on_feed&#39;);</p></blockquote>
<p>Change the time from 10 minutes to whatever you like.</p>
<h4>15. Allow Multiple Authors to be Associated with One Post</h4>
<p>If you run a multi-author blog and have a post coming up that more than one author has contributed to, you can use this trick. This trick is being used by many top multi-author blogs.</p>
<p><img src="http://www.wpbeginner.com/blogposts/coauthors.gif" alt="Co-Author WordPress Blogs" /></p>
<p>Simply Download a Plugin called <a href="http://wordpress.org/extend/plugins/co-authors/" target="_blank" rel="nofollow">Co-Authors</a> or <a href="http://wordpress.org/extend/plugins/co-authors-plus/" target="_blank" rel="nofollow">Co-Authors Plus</a></p>
<h4>16. Change the Default Gravatar Button</h4>
<p><img src="http://www.wpbeginner.com/changegravatar/goodbye.gif" alt="Good Bye Mystery Man" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>The default mystery man is really annoying for most users. Plus if you have one more chance of branding your blog, then why not do it. Changing your default gravatar lets you brand your blog more. With this snippet below you can change your default gravatar.</p>
<p>First you need to open your <em>functions.php</em> which is located in your template folder. If you don&#8217;t have one then create one and insert the following code:</p>
<blockquote><p>add_filter( &#39;avatar_defaults&#39;, &#39;newgravatar&#39; );   </p>
<p>function newgravatar ($avatar_defaults) {<br />
    $myavatar = get_bloginfo(&#39;template_directory&#39;) . &#39;/images/gravataricon.gif&#39;;<br />
    $avatar_defaults[$myavatar] = &amp;quot;WPBeginner&amp;quot;;<br />
    return $avatar_defaults;<br />
}</p></blockquote>
<p>In the code the image is being extracted from the theme directory and it is called gravataricon.gif obviously you will change it to your image name. Where it says WPBeginner, that is the name of the avatar of how it will show in your admin panel options area.</p>
<p><img src="http://www.wpbeginner.com/changegravatar/gravatarsettings.gif" alt="Gravatar Settings" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>Head over to your admin panel and click Settings > Discussion and change the icon, and now you have a branded comment area with your logo.</p>
<h4>17. Display Random Header Images in WordPress</h4>
<p><img src="http://www.wpbeginner.com/blogposts/randomheaderimages.gif" alt="Random Header Images" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>Most blog designs get boring if they have a huge header picture and it is static. This is when this tutorial comes in to make your header images dynamic because it rotates on each visit. You can select as many images as you want to rotate randomly. It brings life to a blog.</p>
<p>First you need to name your images in this format:</p>
<ul>
<li>headerimage_1.gif</li>
<li>headerimage_2.gif</li>
<li>headerimage_3.gif</li>
</ul>
<p>You must separate the name with an underscore. You can change the headerimage text to himage or anything you like.</p>
<p>Once you have done that paste the following code in your <em>header.php</em> where you would like the images to be displayed or in any other file.</p>
<blockquote><p>&lt;img src=&quot;http://path_to_images/headerimage_&lt;?php echo(rand(1,3)); ?&gt;.gif&quot;<br />
width=&quot;image_width&quot; height=&quot;image_height&quot; alt=&quot;image_alt_text&quot; /&gt;</p></blockquote>
<p>Make sure that you change the number 3 if you decide to do more than 3 images. This code is not exclusive for WordPress, it will work with any php based platform.</p>
<h4>18. Only Display Certain Categories in a Menu</h4>
<p><img src="http://www.wpbeginner.com/categoryhacks/catmenu.gif" alt="Display Certain Categories in a Menu" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>In many cases, users only want to display certain categories in their navigation menu at the top of the page. There are limited spots, that can only be filled by top categories, but if you use the default wp_list_categories code, it will show all categories. This is why this hack below comes in very handy when you want to create a navigation menu and only display certain categories. </p>
<blockquote><p>&lt;ul class=&quot;navmenubar&quot; style=&quot;float:left; width:730px;&quot;&gt;<br />
&lt;?php wp_list_categories(&#39;orderby=name&amp;include=7,9,19,16,1,5,17,23&#39;); ?&gt;<br />
&lt;/ul&gt;
</p></blockquote>
<p>Note, you can also change the &#8216;include&#8217; text to &#8216;exclude&#8217; and show all categories and exclude those that you don&#8217;t want displayed. The numbers displayed in the code are the category IDs. Remember since WordPress shows categories in a list format, you will need to edit the CSS in order to make it work.</p>
<h4>19. How set an Expiration Date for Your Posts</h4>
<p><img src="http://www.wpbeginner.com/killerhacks/expired.gif" alt="Set an Expiration Date for Your Posts" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>This hack comes becomes very useful when you are running a contest because you might be posting information such as clues or hints that you don&#8217;t want to stay up for ever. Instead of manually removing the article, you can just make it expire automatically. It also works if you have a product that you are offering a discount on. You posted it on your blog, but you don&#8217;t want that discount to stay on your blog after its over. So you can remove it automatically with this code.</p>
<p>All you need to do is replace your WordPress Loop with this code:</p>
<blockquote><p>&lt;?php<br />
if (have_posts()) :<br />
     while (have_posts()) : the_post(); ?&gt;<br />
         $expirationtime = get_post_custom_values(&#39;expiration&#39;);<br />
         if (is_array($expirationtime)) {<br />
             $expirestring = implode($expirationtime);<br />
         }</p>
<p>         $secondsbetween = strtotime($expirestring)-time();<br />
         if ( $secondsbetween &gt; 0 ) {<br />
             // For example&#8230;<br />
             the_title();<br />
             the_excerpt();<br />
         }<br />
     endwhile;<br />
endif;<br />
?&gt;
</p></blockquote>
<p>Once you have done that, you can use custom fields when writing a post to set an expiration date. Make sure you select the key <strong>&#8220;expiration&#8221;</strong> and use the the following date format: <strong>mm/dd/yyyy 00:00:00</strong></p>
<p>Now this hack does not remove or unpublish the article instead it just excludes the article from being displayed in the loop.</p>
<h4>20. Delete Posts Revisions from Your Database</h4>
<p><img src="http://www.wpbeginner.com/killerhacks/deleterevision.gif" alt="Delete Batches of Post Revisions" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>WordPress has a lot of good features and one of them is Post Revisions. This was included in WordPress 2.6, even though this is a good feature, it can cause some problems. One of them is increase the size of your database. Depending on how long it takes you to write a post, you might have as many as fifty post revisions. Now you can manually delete them, or you can run a simple query which we will show you in this post and get rid of all these useless revisions. </p>
<p>First thing you need to do is login to your phpMyAdmin and select your WordPress Database.</p>
<p>Click on the SQL Button and enter the following query:</p>
<blockquote><p>DELETE FROM wp_posts WHERE post_type = &quot;revision&quot;;</p></blockquote>
<p>In this code basically we looked up a table wp_posts and removed every post that had a post_type revision associated with it. Now depending on the size of your database, this may save you a lot of space.</p>
<h4>21. <a href="http://www.cagintranet.com/archive/the-new-improved-way-to-turn-wordpress-27-into-a-membership-communit/" target="_blank" rel="nofollow">Create a Membership Directory using WordPress</a></h4>
<p><a href="http://www.cagintranet.com/archive/the-new-improved-way-to-turn-wordpress-27-into-a-membership-communit/" target="_blank" rel="nofollow"><img src="http://www.wpbeginner.com/usesofwp/membershipdirectory.gif" alt="Create a Membership Directory using WordPress" /></a></p>
<p>The end result is a moderated directory that allows members to enter information about themselves. <a href="http://pghdesigners.com/" target="_blank" rel="nofollow">Live Example</a>.</p>
<h4>22. Create a Peel Away Effect in WordPress</h4>
<p><img src="http://www.wpbeginner.com/mostwanted/peelaway.gif" alt="Peel Away Effect in WordPress" /></p>
<p>Have you arrived at a site where you see this page peel effect that some bloggers have. They are advertising their recent ebook, or some other product, and you want to do the same. Well then Hongkiat Blog has a <a href="http://www.hongkiat.com/blog/create-a-peel-away-effect-on-website-how-to/" target="_blank" rel="nofollow">great tutorial</a> about this. The tutorial eliminates the use of plugin, but if you want an alternative option. <a href="http://wordpress.org/extend/plugins/page-peel/" target="_blank" rel="nofollow">Page Peel Plugin</a> can get you the same functionality with a lot less work.</p>
<h4>23. Custom CSS Stylesheet for Individual Posts</h4>
<p>There are sites that use custom stylesheet for individual posts. Do you want to know how you can do it also? It is very simple. This is accomplished by the use of Custom Fields. </p>
<p>First you will need to open your <em>header.php</em> and insert this code somewhere in between &lt;head&gt;&lt;/head&gt; codes.</p>
<blockquote><p>&lt;?php if (is_single()) {<br />
    $customstyle = get_post_meta($post-&gt;ID, &#39;customstyle&#39;, true);<br />
    if (!empty($customstyle)) { ?&gt;<br />
        &lt;style type=&quot;text/css&quot;&gt;<br />
        &lt;?php echo $customstyle; ?&gt;<br />
        &lt;style&gt;<br />
    &lt;?php }<br />
} ?&gt;
</p></blockquote>
<p>Once you have done that you can add a custom field in each post with the name customstyle and add the css codes in there.</p>
<p>For example if you want the a certain image to have border you can add:</p>
<blockquote><p>#coolimageclass{border: 5px solid #ccc;}</p></blockquote>
<p>Use the format above and you now have custom CSS for your single posts.</p>
<h4>24. Easily Add Custom Header, Footer, or Sidebar on Different Categories</h4>
<p>Did you ever come across a site that is using different header or sidebar for some categories? Well this is how you can accomplish that as well.</p>
<p>To call a particular header, you will need to open your <em>index.php</em> and replace your normal header code with this one:</p>
<blockquote><p>&lt;?php if (is_category(&#39;Blogging&#39;)) {<br />
    get_header(&#39;blogging&#39;);<br />
} else {<br />
    get_header();<br />
} ?&gt;</p></blockquote>
<p>This code above is basically telling WordPress that if someone opens the category called &#8220;Blogging&#8221; then WordPress needs to display a file called header-blogging.php if it exist. If it does not exist, or if the category is not blogging, then WordPress displays the default header file.</p>
<p>To get a separate sidebar for each all you need to do is add the following code:</p>
<blockquote><p>&lt;?php if (is_category(&#39;Blogging&#39;)) {<br />
    get_sidebar(&#39;blogging&#39;);<br />
} else {<br />
    get_sidebar();<br />
} ?&gt;</p></blockquote>
<p>The code above will look for sidebar-blogging.php to replace the default footer file if the category is Blogging.</p>
<p>To get a separate footer for each category all you need to do is add the following code:</p>
<blockquote><p>&lt;?php if (is_category(&#39;Blogging&#39;)) {<br />
    get_footer(&#39;blogging&#39;);<br />
} else {<br />
    get_footer();<br />
} ?&gt;</p></blockquote>
<p>The code above will look for footer-blogging.php to replace the default footer file if the category is Blogging.</p>
<h4>25. <a href="http://www.wpbeginner.com/showcase/best-of-best-wordpress-custom-login-page-designs/" target="_blank">Create a Custom Login Page Design for WordPress</a></h4>
<p><a href="http://www.wpbeginner.com/showcase/best-of-best-wordpress-custom-login-page-designs/" target="_blank"><img src="http://www.wpbeginner.com/login/sanandres.gif" alt="Custom WordPress Login Page" style="padding: 5px; border: 1px solid #ddd;" /></a></p>
<p>Do you have a multi-author site, or a community site powered by WordPress? Do you want to rebrand the login page design? Then this tutorial is just right for you.</p>
<h4>26. Place Content Only in your RSS Feeds</h4>
<p><img src="http://www.wpbeginner.com/blogposts/rssfooter.gif" alt="RSS Footer" /></p>
<p>Do you have a lot of RSS Subscribers? Well then maybe you want to monetize it just like tons of other users who are doing it. The plugin called <a href="http://yoast.com/wordpress/rss-footer/" target="_blank" rel="nofollow">RSS Footer</a> lets you add content to your RSS Feeds. You can style it however you like. </p>
<h4>27. Disable HTML in WordPress Comments</h4>
<p>Did you ever see in your SPAM folder, how many comments have tons of HTML codes which is basically links. That is how most spammers add links. But you can disable HTML in WordPress Comments to be functional. So if someone uses the strong code, it will not bold the text etc.</p>
<p>All you have to do is simply open your <em>functions.php</em> and add the following code:</p>
<blockquote><p>// This will occur when the comment is posted<br />
function plc_comment_post( $incoming_comment ) {</p>
<p>	// convert everything in a comment to display literally<br />
	$incoming_comment[&#39;comment_content&#39;] = htmlspecialchars($incoming_comment[&#39;comment_content&#39;]);</p>
<p>	// the one exception is single quotes, which cannot be #039; because WordPress marks it as spam<br />
	$incoming_comment[&#39;comment_content&#39;] = str_replace( &quot;&#39;&quot;, &#39;&amp;apos;&#39;, $incoming_comment[&#39;comment_content&#39;] );</p>
<p>	return( $incoming_comment );<br />
}</p>
<p>// This will occur before a comment is displayed<br />
function plc_comment_display( $comment_to_display ) {</p>
<p>	// Put the single quotes back in<br />
	$comment_to_display = str_replace( &#39;&amp;apos;&#39;, &quot;&#39;&quot;, $comment_to_display );</p>
<p>	return $comment_to_display;</p></blockquote>
<p><a href="http://www.theblog.ca/literal-comments" target="_blank">Source</a> &#8211; The original author also offers a plugin that you can download from his site.</p>
<h4>28. Add Digg Buttons in Your Posts using Custom Fields</h4>
<p>Doesn&#8217;t it get annoying posting digg buttons on your articles every time. But you don&#8217;t want to display them on every page by default because some articles are not digg worthy. Well this solution would be very helpful then. In this plugin, you will add the codes in your single.php once, and in each article that you want to display the button, you will just have to enable it using the custom field.</p>
<p>First open your <em>single.php</em> and find a code that looks like this:</p>
<blockquote><p>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</p></blockquote>
<p>Replace it with:</p>
<blockquote><p>&lt;?php if (have_posts()) : while (have_posts()) : the_post();<br />
// check for digg button for single page<br />
$digg = get_post_meta($post-&gt;ID, &#39;Digg&#39;, $single = true);<br />
?&gt;</p></blockquote>
<p>Now you need to add the following code within the loop anywhere you like:</p>
<blockquote><p>&lt;?php // if there&#39;s a single page digg button<br />
if($digg !== &#39;&#39;) { ?&gt;<br />
&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />
&lt;?php } // end if statement<br />
// if there&#39;s not a digg button<br />
else { echo &#39;&#39;; } ?&gt;</p></blockquote>
<p>You may wrap it around with any styling that you want. Save the <em>single.php</em> and upload it to your theme folder.</p>
<p>Now when writing a post if you want to add a digg post simply add a custom field like shown in the screen shot below:</p>
<p><img src="http://www.wpbeginner.com/blogposts/diggcustomfield.gif" alt="Add a Digg Button in Your WordPress using Custom Field" /></p>
<p>Whenever you specify this custom field, WordPress will display a digg button on your post.</p>
<h4>29. Display Latest Sticky Posts in WordPress</h4>
<p>Assuming that you have already created a <a href="http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/" target="_blank">custom page template</a> and/or already have <a href="http://codex.wordpress.org/The_Loop" target="_blank">The Loop</a> ready, paste the following code before the loop.</p>
<blockquote><p>&lt;?php<br />
	/* Get all sticky posts */<br />
	$sticky = get_option( &#39;sticky_posts&#39; );</p>
<p>	/* Sort the stickies with the newest ones at the top */<br />
	rsort( $sticky );</p>
<p>	/* Get the 5 newest stickies (change 5 for a different number) */<br />
	$sticky = array_slice( $sticky, 0, 5 );</p>
<p>	/* Query sticky posts */<br />
	query_posts( array( &#39;post__in&#39; =&gt; $sticky, &#39;caller_get_posts&#39; =&gt; 1 ) );<br />
?&gt;</p></blockquote>
<p>This code can very well be used in featured slider, or any other advanced feature that you would like to display on your site. This snippet is mostly geared toward a WordPress site that has a <a href="http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-homepage-in-wordpress/">custom homepage</a> or a magazine style look.</p>
<p>The credit to this code goes to <a href="http://justintadlock.com/archives/2009/03/28/get-the-latest-sticky-posts-in-wordpress" target="_blank">Justin Tadlock</a> and partially to <a href="http://www.nathanrice.net/" target="_blank">Nathan Rice</a> for coming up with the array slice solution.</p>
<h4>30. Display a Retweet Button On Your Site</h4>
<p><img src="http://www.wpbeginner.com/killerhacks/retweet.gif" alt="Add a Retweet button in WordPress" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>With Twitter getting so much exposure, as a blogger you should already be using it to your advantage. Power of twitter is like no other because it is word of mouth advertising. To make this easier on your readers, what you can do is place a prominent retweet button, so they can retweet the article with one click. Not only just that, but you should make it the way so you can track the retweets as well. That is where tweetmeme widget comes in. </p>
<p>In this tutorial we will have you create a button that will link to the text in the following format:</p>
<p>RT @yoursitename Title of the Post &#8211; Link</p>
<p>Add the following code in the template file of your choosing most likely <em>single.php</em></p>
<p>For the Large Button:</p>
<blockquote><p>&lt;script type=&quot;text/javascript&quot;&gt;<br />
tweetmeme_source = &#39;wpbeginner&#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>For the Compact Button: </p>
<blockquote><p>&lt;script type=&#39;text/javascript&#39;&gt;<br />
tweetmeme_style = &quot;compact&quot;;<br />
tweetmeme_source = &#39;wpbeginner&#39;;<br />
&lt;/script&gt;
</p></blockquote>
<p>Remember to change the source to your twitter account name, this way you will not only promote your account to get more followers, but your article will be promoted as well.</p>
<h4>31. Display Categories in a Drop Down Menu</h4>
<p><img src="http://www.wpbeginner.com/categoryhacks/catdropdown.gif" alt="Display Certain Categories in a Dropdown Menu" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>Some blogs have a lot of categories which they can&#8217;t display in their sidebar. Or some bloggers do not want to take up a lot of space displaying categories. This option allows them to have a select menu, dropdown menu, for categories. See <a href="http://codex.wordpress.org/Template_Tags/wp_dropdown_categories" target="_blank">WordPress Codex</a> for details.</p>
<blockquote><p>&lt;form action=&quot;&lt;?php bloginfo(&#39;url&#39;); ?&gt;/&quot; method=&quot;get&quot;&gt;<br />
&lt;?php<br />
$select = wp_dropdown_categories(&#39;show_option_none=Select Category&amp;show_count=1&amp;orderby=name&amp;echo=0&amp;selected=6&#39;);<br />
$select = preg_replace(&quot;#&lt;select([^&gt;]*)&gt;#&quot;, &quot;&lt;select$1 onchange=&#39;return this.form.submit()&#39;&gt;&quot;, $select);<br />
echo $select;<br />
?&gt;<br />
&lt;noscript&gt;&lt;input type=&quot;submit&quot; value=&quot;View&quot; /&gt;&lt;/noscript&gt;<br />
&lt;/form&gt;
</p></blockquote>
<h4>32. Show Category Icons</h4>
<p><img src="http://www.wpbeginner.com/categoryhacks/caticons.gif" alt="Show Category Icons" style="padding: 5px; border: 1px solid #ddd;" /></p>
<p>Pictures make a site more lively which is a given which is why blogger might want to associate pictures with their category. This plugin lets you associate a specific icon of your choice to a designated category. You can use this plugin to list categories by icon with or without names, and much more.</p>
<p><a href="http://wordpress.org/extend/plugins/category-icons/" target="_blank">Download this Plugin</a></p>
<h4>33. Display the most Recent Post from a Specific Category</h4>
<p>Did you see sites with a magazine style theme who are displaying posts from a specific category. Sometimes only the most recent post. Well you can do this too easily.</p>
<blockquote><p>    &lt;?php<br />
    query_posts(&#39;showposts=1&amp;cat=3&#39;);<br />
    while(have_posts()) : the_post();<br />
    ?&gt;<br />
    &lt;ul&gt;<br />
    &lt;li&gt;&lt;h3&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;</p>
<p>    &lt;ul&gt;&lt;li&gt;&lt;?php the_content(); ?&gt;&lt;/li&gt;<br />
    &lt;/ul&gt;<br />
    &lt;/li&gt;<br />
    &lt;/ul&gt;<br />
    &lt;?php endwhile; ?&gt; </p></blockquote>
<p>Add the above code anywhere you like in the template. Make sure you change the category ID and you can change the number of posts displayed as well if you want.</p>
<h4>34. <a href="http://wordpress.org/extend/plugins/future-posts-calendar/" rel="nofollow" target="_blank">Future Post Calendar</a></h4>
<p>This plugin adds a simple month-by-month calendar that shows all the months you have future posts for (and the current month no matter what), it highlights the days you have posts for, and as an added bonus if you click a day the Post Timestamp boxes change to that day, month and year.</p>
<p><img src="http://www.wpbeginner.com/multiauthor/futurepostcalendar.gif" alt="Future Post Calendar" style="padding: 5px; border: 1px solid #ddd;" /></p>
<h4>35. Modify Excerpt Length and More Tags</h4>
<p>WordPress lets you display Excerpts, but up until version 2.9 you could not control the excerpt length. With the following code, you can increase the length from default 55 words to as many words as you like. Open your <em>functions.php</em> file and add the follwowing codes in there:</p>
<blockquote><p>    // Changing excerpt length<br />
    function new_excerpt_length($length) {<br />
    return 100;<br />
    }<br />
    add_filter(&#39;excerpt_length&#39;, &#39;new_excerpt_length&#39;);</p>
<p>    // Changing excerpt more<br />
    function new_excerpt_more($more) {<br />
    return &#39;&#8230;&#39;;<br />
    }<br />
    add_filter(&#39;excerpt_more&#39;, &#39;new_excerpt_more&#39;);</p></blockquote>
<p>Change the 100 word limit to the count that you desire.</p>
<h4>36. Display Author&#8217;s Twitter and Facebook Information on their Profile Page</h4>
<p>WordPress has fields for fields for author contacts, but it has not been updated in ages. So by default you do not have an ability to add author&#8217;s twitter or facebook. With this hack you can add this information on their profile page.</p>
<p>First open your functions.php and paste the following code:</p>
<blockquote><p>    &lt;?php<br />
    function my_new_contactmethods( $contactmethods ) {<br />
    // Add Twitter<br />
    $contactmethods[&#39;twitter&#39;] = &#39;Twitter&#39;;<br />
    //add Facebook<br />
    $contactmethods[&#39;facebook&#39;] = &#39;Facebook&#39;;</p>
<p>    return $contactmethods;<br />
    }<br />
    add_filter(&#39;user_contactmethods&#39;,&#39;my_new_contactmethods&#39;,10,1);<br />
    ?&gt;</p></blockquote>
<p>The above code will add two extra fields on your user-edit page named twitter and Facebook. You can display the code with the following code in your <em>author.php</em> file.</p>
<blockquote><p>&lt;?php echo $curauth-&gt;twitter; ?&gt;</p></blockquote>
<p>Source: <a href="http://yoast.com/user-contact-fields-wp29/" target="_blank" rel="nofollow">Joost De Valk</a></p>
<h4>37. <a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/" target="_blank">Create a Contributors Page that lists Author with Avatars and Other Details</a></h4>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/" target="_blank"><img src="http://www.wpbeginner.com/blogposts/contirbutorspageex.gif" alt="Create Author List with Avatars and Other Details" /></a></p>
<p>Do you run a multi-author blog? Do you want to create a content-rich contributors page. This tutorial is just for you.</p>
<h4>38. <a href="http://www.wpbeginner.com/plugins/how-to-display-twitter-avatars-in-wordpress-comments/" target="_blank">Display Twitter Avatars in Comments</a></h4>
<p>You probably have seen many sites using gravatars in comments because that is built-in. But there are some sites that are using twitter avatars, and if you are wondering how they are doing it then this trick will help you.</p>
<p><img src="http://www.wpbeginner.com/blogposts/twittar.gif" alt="Twitter Avatars in WordPress Comments" /></p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-display-twitter-avatars-in-wordpress-comments/" target="_blank">Download the Plugin and follow this article for the instructions.</a></p>
<h4>39. <a href="http://wordpress.org/extend/plugins/business-directory/" target="_blank" rel="nofollow">Create a Business Directory using WordPress</a></h4>
<p><a href="http://wordpress.org/extend/plugins/business-directory/" target="_blank" rel="nofollow"><img src="http://www.wpbeginner.com/usesofwp/businessdir.gif" alt="Create a Business Directory Using WordPress" /></a></p>
<p>This plugin lets you create a business/web directory which allows users to submit their links or other information.</p>
<h4>40. <a href="http://www.freshlabs.de/journal/archives/2006/10/wordpress-plugin-simile-timeline/" target="_blank" rel="nofollow">Create a SIMILE Timeline using WordPress</a></h4>
<p><a href="http://www.freshlabs.de/journal/archives/2006/10/wordpress-plugin-simile-timeline/" target="_blank" rel="nofollow"><img src="http://www.wpbeginner.com/usesofwp/timeline.gif" alt="Create a Timeline Using WordPress" /></a></p>
<h4>41. Display Breadcrumb Navigation in WordPress</h4>
<p>Have you seen sites that have a breadcrumb like ebay? Did you want to do it on your site? If you do then this plugin is just right for you. It has plenty of SEO advantage and it is extremely helpful to users.</p>
<p><a href="http://mtekk.weblogs.us/code/breadcrumb-navxt/" target="_blank" rel="nofollow"><img src="http://www.wpbeginner.com/blogposts/breadcrumb.gif" alt="Display Breadcrumb Navigation in WordPress" /></a></p>
<h4>42. <a href="http://www.wpbeginner.com/wp-tutorials/excellent-tutorials-to-utilize-the-power-of-wordpress-and-facebook/" target="_blank">Create Your Own Facebook Application for Your WordPress Site</a></h4>
<p><a href="http://www.wpbeginner.com/wp-tutorials/excellent-tutorials-to-utilize-the-power-of-wordpress-and-facebook/" target="_blank"><img src="http://www.wpbeginner.com/facebook/previewapp.gif" alt="Facebook Application for Your WordPress Site" /></a></p>
<p>Did you ever want to utilize the power of Facebook by creating your own Application? Well WordPress lets you create an application for your blog. Follow this tutorial and utilize the power of facebook.</p>
<h4>43. Display Most Recent Comments with Gravatars</h4>
<p>Have you seen sites that display most recent comments in their sidebar with user gravatars. Well this can be done easily with these codes. Simply paste the following code anywhere you want to display the most recent comments.</p>
<blockquote><p>&lt;?php<br />
$query = &quot;SELECT * from $wpdb-&gt;comments WHERE comment_approved= &#39;1&#39;<br />
ORDER BY comment_date DESC LIMIT 0 ,5&quot;;<br />
$comments = $wpdb-&gt;get_results($query);</p>
<p>if ($comments) {<br />
    echo &#39;&lt;ul&gt;&#39;;<br />
    foreach ($comments as $comment) {<br />
        $url = &#39;&lt;a href=&quot;&#39;. get_permalink($comment-&gt;comment_post_ID).&#39;#comment-&#39;.$comment-&gt;comment_ID .&#39;&quot; title=&quot;&#39;.$comment-&gt;comment_author .&#39; | &#39;.get_the_title($comment-&gt;comment_post_ID).&#39;&quot;&gt;&#39;;<br />
        echo &#39;&lt;li&gt;&#39;;<br />
        echo &#39;&lt;div class=&quot;img&quot;&gt;&#39;;<br />
        echo $url;<br />
        echo get_avatar( $comment-&gt;comment_author_email, $img_w);<br />
        echo &#39;&lt;/a&gt;&lt;/div&gt;&#39;;</p>
<p>        echo &#39;&lt;div class=&quot;txt&quot;&gt;Par: &#39;;<br />
        echo $url;<br />
        echo $comment-&gt;comment_author;<br />
        echo &#39;&lt;/a&gt;&lt;/div&gt;&#39;;<br />
        echo &#39;&lt;/li&gt;&#39;;<br />
    }<br />
    echo &#39;&lt;/ul&gt;&#39;;<br />
}<br />
?&gt;
</p></blockquote>
<p>To get more or less than 5 comments, change the number 5 on line 2. </p>
<p>Source: <a href="http://www.wprecipes.com/display-most-recent-comments-with-gravatar" target="_blank">WPRecipes</a></p>
<h4>44. Greet Each User with Appropriate Message</h4>
<p><img src="http://www.wpbeginner.com/blogposts/wpgreetbox1.gif" alt="Greet Each User with Appropriate Message" /></p>
<p>If you like to read blogs, then you must have seen this on at least one blog. You can select to display a specific message to different users depending on the source they arrived at your blog. So for example, if someone comes to your blog via twitter, this plugin will show them a different text.</p>
<p>Download this Plugin: <a href="http://wordpress.org/extend/plugins/wp-greet-box/" rel="nofollow" target="_blank">WP Greet Box</a></p>
<h4>45. <a href="http://www.wpbeginner.com/wp-themes/social-media-cheat-sheet-for-wordpress/" target="_blank">Display Different Social Media Submit Buttons</a></h4>
<p>Many if not all blogs has some type of social media integration on their site. Most sites though have different social media sites button on their single pages, so they can get more votes. There are many plugins that can add this feature in your WordPress Blog. But this can also be done manually. Anyone who is curious should use <a href="http://www.wpbeginner.com/wp-themes/social-media-cheat-sheet-for-wordpress/" target="_blank">this social media theme guide</a> as a reference.</p>
<h4>46. <a href="http://wordpress.org/extend/plugins/wordpress-comment-digg/" target="_blank" rel="nofollow">Digg/Bury Blog Comments</a></h4>
<p><img src="http://www.wpbeginner.com/mostwanted/diggcomment.gif" alt="Digg-Bury Blog Comments" /></p>
<p>Did you ever wish that there was some type of voting system on your blog comments. Well this plugin has just what you want. It allows users to vote up or vote down the comment.</p>
<h4>47. Redirect Your User&#8217;s Attention</h4>
<p>Have you been to a WordPress site where you make your first comment and you are redirected to another page? If not, then you are at one right now. We redirect our first commentators to a <a href="http://www.wpbeginner.com/thank-you-for-being-a-contributing-user/">Thank You Page</a>. But this Plugin can be used for the sake of advertisement also if you want your users to know about your new product. Simply Download a plugin called <a href="http://wordpress.org/extend/plugins/comment-redirect/" target="_blank" rel="nofollow">Comment Redirect</a>.</p>
<p><img src="http://www.wpbeginner.com/blogposts/commentredirect.gif" alt="Comment Redirect" /></p>
<h4>48. <a href="http://www.animhut.com/tuts/add-twitter-id-field-to-comment-form-in-5-easy-steps/" target="_blank" rel="nofollow">Add Twitter ID Field in WordPress Comment Form</a></h4>
<p><img src="http://www.wpbeginner.com/mostwanted/twittercomment.gif" alt="Add Twitter Field in WordPress Comment Form" /></p>
<p>Many top sites including Mashable and Techcrunch are doing this. They have an additional twitter field in their comment forms. So users can put their twitter profile if they want to. This can be done in 5 easy steps if you follow the tutorial by clicking on the hack title.</p>
<h4>49. Display Guest Author&#8217;s Name via Custom Field</h4>
<p>Many Blogs are now having guest posts on their site. Some of these guest authors are one-time only authors, so there is no point in creating a separate profile for them just so you can display their name in the post. The smarter way to do this is by using the following code.</p>
<p>Open you single.php, or page.php in your template and add the following code where you display the author name:</p>
<blockquote><p>&lt;?php $author = get_post_meta($post-&gt;ID, &quot;guest-author&quot;, true);<br />
if ($author != &quot;&quot;) {<br />
    echo $author;<br />
} else {<br />
    the_author();<br />
}  ?&gt;</p></blockquote>
<p>This code will look for the custom field called guest-author if it is found, then it will display that name, otherwise it will display the_author function meaning the person who actually published it meaning you. </p>
<p>Note: You might have to remove the original the_author function before you place this.</p>
<p>Source: <a href="http://www.wprecipes.com/rewrite-author-name-with-custom-field" target="_blank" rel="nofollow">WPRecipes</a></p>
<h4>50. Display Most Recent Tweet in WordPress</h4>
<p>Twitter is getting very famous among bloggers. Many bloggers are now displaying their most recent tweet on their blog. If you want to display your most recent tweet on your blog simply place this code where you want to display it in your WordPress theme.</p>
<blockquote><p>&lt;?php<br />
$username = &quot;TwitterUsername&quot;; // Your twitter username.<br />
$prefix = &quot;&quot;; // Prefix &#8211; some text you want displayed before your latest tweet.<br />
$suffix = &quot;&quot;; // Suffix &#8211; some text you want display after your latest tweet.<br />
$feed = &quot;http://search.twitter.com/search.atom?q=from:&quot; . $username . &quot;&amp;rpp=1&quot;;</p>
<p>function parse_feed($feed) {<br />
$stepOne = explode(&quot;&lt;content type=\&quot;html\&quot;&gt;&quot;, $feed);<br />
$stepTwo = explode(&quot;&lt;/content&gt;&quot;, $stepOne[1]);<br />
$tweet = $stepTwo[0];<br />
$tweet = str_replace(&quot;&amp;lt;&quot;, &quot;&lt;&quot;, $tweet);<br />
$tweet = str_replace(&quot;&amp;gt;&quot;, &quot;&gt;&quot;, $tweet);<br />
return $tweet;<br />
}</p>
<p>$twitterFeed = file_get_contents($feed);<br />
echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);<br />
?&gt;
</p></blockquote>
<p>Make sure to change the username in the first line.</p>
<h4>51. <a href="http://www.wpbeginner.com/beginners-guide/must-see-seo-guide-for-all-wordpress-bloggers/" target="_blank">Improve Your WordPress SEO</a></h4>
<p>This is a detailed guide that will help you improve your WordPress SEO. We compiled it a while back and it has received many positive reviews from users.</p>
<h4>52. <a href="http://lesterchan.net/wordpress/readme/wp-email.html" target="_blank" rel="nofollow">Add Email This Article Option to Your WordPress Posts</a></h4>
<p>Have you seen a site that gives you an option to email the article to your friend. If you have read a newspaper online, then you have. WordPress has a similar feature for the posts. You can add it by simply enabling a plugin called <a href="http://lesterchan.net/wordpress/readme/wp-email.html" target="_blank" rel="nofollow">Email This</a>.</p>
<p><img src="http://www.wpbeginner.com/blogposts/email-this.gif" alt="Email This Article Plugin for WordPress" /></p>
<p>Once you have installed and updated the settings to your desire, simiply add this code in your single.php inside the loop.</p>
<blockquote><p>&lt;?php if(function_exists(&#39;wp_email&#39;)) { email_link(); } ?&gt;</p></blockquote>
<p>This code will put a printer icon / link to every post page.</p>
<h4>53. <a href="http://www.wpbeginner.com/showcase/best-of-best-wordpress-404-error-page-designs/" target="_blank">Create a Resourceful 404 Page Design</a></h4>
<p><img src="http://www.wpbeginner.com/404pages/catalyst.gif" alt="Best 404 Page Design" /></p>
<p>The above tutorial lists some of the elements that you should have in a 404 page design.</p>
<h4>54. <a href="http://wordpress.org/extend/plugins/wp-typography/" target="_blank" rel="nofollow">Improve Typography in WordPress</a></h4>
<p>Have you ever wished that you can have rounded quotes, show elipses, your hyphens don’t get mixed up, well this is your lucky day because it can be done with a plugin called <a href="http://wordpress.org/extend/plugins/wp-typography/" target="_blank" rel="nofollow">WP-Typography</a>.</p>
<p><img src="http://www.wpbeginner.com/blogposts/wptypography.gif" alt="Web Typography Plugin for WordPress" /></p>
<h4>55. <a href="http://armeda.com/how-to-create-a-jquery-carousel-with-WordPress-posts/" target="_blank" rel="nofollow">Create a jQuery Carousel in WordPress</a></h4>
<p><img src="http://www.wpbeginner.com/jquerypower/carousel.gif" alt="jQuery Carousel in WordPress" /></p>
<p>A great tutorial that shows you how to display your WordPress posts in a Carousel.</p>
<p>We hoped that you enjoyed this long and resourceful article. If you like it please retweet, and share it with your friends on Facebook.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/55-most-wanted-wordpress-tips-tricks-and-hacks/">55+ Most Wanted WordPress Tips, Tricks, and Hacks</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/most-wanted-twitter-hacks-and-plugins-for-wordpress/' rel='bookmark' title='Permanent Link: Most Wanted Twitter Hacks and Plugins for WordPress'>Most Wanted Twitter Hacks and Plugins for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/10-most-wanted-category-hacks-and-plugins-for-wordpress/' rel='bookmark' title='Permanent Link: 10 Most Wanted Category Hacks and Plugins for WordPress'>10 Most Wanted Category Hacks and Plugins for WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/11-vital-tips-and-hacks-to-protect-your-wordpress-admin-area/' rel='bookmark' title='Permanent Link: 13 Vital Tips and Hacks to Protect Your WordPress Admin Area'>13 Vital Tips and Hacks to Protect Your WordPress Admin Area</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/55-most-wanted-wordpress-tips-tricks-and-hacks/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>The Right Way to Remove WordPress Version Number</title>
		<link>http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 15:14:38 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to remove WordPress version number]]></category>
		<category><![CDATA[how to remove WordPress version number from head]]></category>
		<category><![CDATA[how to remove WordPress version number from rss feeds]]></category>
		<category><![CDATA[how to remove wp generator code]]></category>
		<category><![CDATA[protect your wordpress]]></category>
		<category><![CDATA[remove wordpress version from head]]></category>
		<category><![CDATA[remove wordpress version number]]></category>
		<category><![CDATA[remove wordpress version number from rss feeds]]></category>
		<category><![CDATA[the right way to remove WordPress version number]]></category>
		<category><![CDATA[wordpress generator code]]></category>
		<category><![CDATA[wordpress security]]></category>
		<category><![CDATA[wp generator]]></category>
		<category><![CDATA[wp head]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1189</guid>
		<description><![CDATA[In this tutorial we will show you the right way to remove your WordPress version number and keep your blog protected. This tutorial only applies if you are not using the most up to date version of WordPress. If you don't want to bother following this tutorial than simply upgrade your blog and stay protected.<p><a href="http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/">The Right Way to Remove WordPress Version Number</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/beginners-guide/how-to-remove-visual-editor-mode-in-wordpress/' rel='bookmark' title='Permanent Link: How to Remove Visual Editor Mode in WordPress'>How to Remove Visual Editor Mode in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-setup-auto-discovery-for-your-wordpress-rss-feeds/' rel='bookmark' title='Permanent Link: How to Setup Auto Discovery for Your WordPress RSS Feeds'>How to Setup Auto Discovery for Your WordPress RSS Feeds</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>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default WordPress leaves it&#8217;s footprints on your site for the sake of tracking. That is how we know that WordPress is the World&#8217;s largest Blogging platform. But sometimes this footprint might be a security leak on your site if you are not running the most updated version of WordPress. Because you are providing the hacker with the useful information by telling them which version you are running. </p>
<p>If you are running the most up to date version of WordPress, which we recommend you do, then you do not have to worry about this tutorial at all. But if for some reason you are not, then it is in your best interest to follow this tutorial.</p>
<p>There are many ways to get rid of the WordPress version number from your header. But there is only one correct way to do this.</p>
<p>Some sites will recommend that you open your <em>header.php</em> file and get rid of this code:</p>
<blockquote><p>&lt;meta name=&quot;generator&quot; content=&quot;WordPress &lt;?php bloginfo(&#39;version&#39;); ?&gt;&quot; /&gt;</p></blockquote>
<p>Or others will recommend that you open your <em>functions.php</em> and add the following function:</p>
<blockquote><p>remove_action(&#39;wp_head&#39;, &#39;wp_generator&#39;);</p></blockquote>
<p>But both of these ways are offering you an incomplete solution. These ways will simply remove the WordPress version number from your head area. So if someone views your website source, they will not be able to see the version.</p>
<p>But a smart hacker who knows about WordPress will simply go to your RSS Feeds, and they will find your version number there because neither of the above codes will remove that number.</p>
<p>In order for you to completely remove your WordPress version number from both your head file and RSS feeds, you will need to add the following function to your <em>functions.php</em> file:</p>
<blockquote><p>function wpbeginner_remove_version() {<br />
     return &#39;&#39;;<br />
}<br />
add_filter(&#39;the_generator&#39;, &#39;wpbeginner_remove_version&#39;);</p></blockquote>
<p>By adding this version, you will remove the WordPress version number from all different areas on your site. Above is the right way to remove WordPress Version number.</p>
<p>Note: We still recommend that you update to the latest version of WordPress because that is the only guaranteed way to keep your blog protected.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/">The Right Way to Remove WordPress Version Number</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/beginners-guide/how-to-remove-visual-editor-mode-in-wordpress/' rel='bookmark' title='Permanent Link: How to Remove Visual Editor Mode in WordPress'>How to Remove Visual Editor Mode in WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-setup-auto-discovery-for-your-wordpress-rss-feeds/' rel='bookmark' title='Permanent Link: How to Setup Auto Discovery for Your WordPress RSS Feeds'>How to Setup Auto Discovery for Your WordPress RSS Feeds</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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>How to Display an Author List with Avatars in WordPress Contributors Page</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 15:10:06 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[contributors page]]></category>
		<category><![CDATA[display author list with avatars]]></category>
		<category><![CDATA[display author list with userphoto]]></category>
		<category><![CDATA[how to display all authors in one list]]></category>
		<category><![CDATA[how to display author list in wordpress]]></category>
		<category><![CDATA[multi author wordpress blogs]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=1172</guid>
		<description><![CDATA[In this article we will show you how you can create a contributors page which will display a list of authors with avatars or userphoto and any other information that you like. This tutorial is an <strong>intermediate level</strong> tutorial.<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/">How to Display an Author List with Avatars in WordPress Contributors Page</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-display-authors-twitter-and-facebook-on-the-profile-page/' rel='bookmark' title='Permanent Link: How to Display Author&#8217;s Twitter and Facebook on the Profile Page'>How to Display Author&#8217;s Twitter and Facebook on the Profile Page</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-add-a-custom-author-profile-page-to-your-wordpress/' rel='bookmark' title='Permanent Link: How to Add a Custom Author Profile Page to Your WordPress'>How to Add a Custom Author Profile Page to Your WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-list-all-authors-from-your-blog-in-wordpress/' rel='bookmark' title='Permanent Link: How to List All Authors From Your Blog in WordPress'>How to List All Authors From Your Blog in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>While working on a client&#8217;s website, we realized that the built-in function for listing authors was not enough. We showed you <a href="http://www.wpbeginner.com/wp-tutorials/how-to-list-all-authors-from-your-blog-in-wordpress/">how to display all authors from your site</a>, but that method was only good if you want a simple list to display in your sidebar. If you want to create a more content-rich and useful contributors page, then that function is useless.</p>
<p>In this article we will show you how you can create a contributors page which will display a list of authors with avatars or userphoto and any other information that you like. This tutorial is an <strong>intermediate level</strong> tutorial.</p>
<p>First thing you need to do is <a href="http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/" target="_blank">create a custom page</a> using this template.</p>
<p>Then you will need to open <em>functions.php</em> file in your themes folder and add the following code:</p>
<blockquote><p>function contributors() {<br />
global $wpdb;</p>
<p>$authors = $wpdb-&gt;get_results(&quot;SELECT ID, user_nicename from $wpdb-&gt;users ORDER BY display_name&quot;);</p>
<p>foreach($authors as $author) {<br />
echo &quot;&lt;li&gt;&quot;;<br />
echo &quot;&lt;a href=\&quot;&quot;.get_bloginfo(&#39;url&#39;).&quot;/?author=&quot;;<br />
echo $author-&gt;ID;<br />
echo &quot;\&quot;&gt;&quot;;<br />
echo get_avatar($author-&gt;ID);<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &#39;&lt;div&gt;&#39;;<br />
echo &quot;&lt;a href=\&quot;&quot;.get_bloginfo(&#39;url&#39;).&quot;/?author=&quot;;<br />
echo $author-&gt;ID;<br />
echo &quot;\&quot;&gt;&quot;;<br />
the_author_meta(&#39;display_name&#39;, $author-&gt;ID);<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &quot;&lt;/div&gt;&quot;;<br />
echo &quot;&lt;/li&gt;&quot;;<br />
}<br />
}</p></blockquote>
<p>By adding this function you are telling WordPress to create a function that will display author&#8217;s name, and author&#8217;s avatar. You can change the avatar to userphoto plugin setting by simply changing the following line:</p>
<blockquote><p>echo get_avatar($author-&gt;ID);</p></blockquote>
<p>and replacing it with:</p>
<blockquote><p>echo userphoto($author-&gt;ID);</p></blockquote>
<p>You can add more features to this function such as displaying author URL and other information from the profile by following the structure used.</p>
<p>You would also need to add the following lines to your CSS file:</p>
<blockquote><p>#authorlist li {<br />
	clear: left;<br />
	float: left;<br />
	margin: 0 0 5px 0;<br />
	}	</p>
<p>#authorlist img.photo {<br />
	width: 40px;<br />
	height: 40px;<br />
	float: left;<br />
	}</p>
<p>#authorlist div.authname {<br />
	margin: 20px 0 0 10px;<br />
	float: left;<br />
	}</p></blockquote>
<p>Once you are done adding the function, now you would need to call it in your page-template. Open the contributors.php file or whatever you name the file. Follow the same page template as your page.php and in the loop, just add this function instead of displaying the content:</p>
<blockquote><p>&lt;div id=&quot;authorlist&quot;&gt;&lt;ul&gt;&lt;?php contributors(); ?&gt;&lt;/ul&gt;&lt;/div&gt;</p></blockquote>
<p>This will provide you with a more content-rich contributors page. This trick is excellent for Multi-Author blogs.</p>
<p>Now here is an example of how we used it:</p>
<p><img src="http://www.wpbeginner.com/blogposts/contirbutorspageex.gif" alt="Example of a Contributors Page with Author List and other Info" /></p>
<p>If you want to have a contributors page with information like displayed in the example above, you will need to make a few changes to the original function. We have an example code that will get you exactly everything displayed in the image above.</p>
<blockquote><p>function contributors() {<br />
global $wpdb;</p>
<p>$authors = $wpdb-&gt;get_results(&quot;SELECT ID, user_nicename from $wpdb-&gt;users WHERE display_name &lt;&gt; &#39;admin&#39; ORDER BY display_name&quot;);</p>
<p>foreach ($authors as $author ) {</p>
<p>echo &quot;&lt;li&gt;&quot;;<br />
echo &quot;&lt;a href=\&quot;&quot;.get_bloginfo(&#39;url&#39;).&quot;/author/&quot;;<br />
the_author_meta(&#39;user_nicename&#39;, $author-&gt;ID);<br />
echo &quot;/\&quot;&gt;&quot;;<br />
echo get_avatar($author-&gt;ID);<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &#39;&lt;div&gt;&#39;;<br />
echo &quot;&lt;a href=\&quot;&quot;.get_bloginfo(&#39;url&#39;).&quot;/author/&quot;;<br />
the_author_meta(&#39;user_nicename&#39;, $author-&gt;ID);<br />
echo &quot;/\&quot;&gt;&quot;;<br />
the_author_meta(&#39;display_name&#39;, $author-&gt;ID);<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &quot;&lt;br /&gt;&quot;;<br />
echo &quot;Website: &lt;a href=\&quot;&quot;;<br />
the_author_meta(&#39;user_url&#39;, $author-&gt;ID);<br />
echo &quot;/\&quot; target=&#39;_blank&#39;&gt;&quot;;<br />
the_author_meta(&#39;user_url&#39;, $author-&gt;ID);<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &quot;&lt;br /&gt;&quot;;<br />
echo &quot;Twitter: &lt;a href=\&quot;http://twitter.com/&quot;;<br />
the_author_meta(&#39;twitter&#39;, $author-&gt;ID);<br />
echo &quot;\&quot; target=&#39;_blank&#39;&gt;&quot;;<br />
the_author_meta(&#39;twitter&#39;, $author-&gt;ID);<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &quot;&lt;br /&gt;&quot;;<br />
echo &quot;&lt;a href=\&quot;&quot;.get_bloginfo(&#39;url&#39;).&quot;/author/&quot;;<br />
the_author_meta(&#39;user_nicename&#39;, $author-&gt;ID);<br />
echo &quot;/\&quot;&gt;Visit&amp;nbsp;&quot;;<br />
the_author_meta(&#39;display_name&#39;, $author-&gt;ID);<br />
echo &quot;&#39;s Profile Page&quot;;<br />
echo &quot;&lt;/a&gt;&quot;;<br />
echo &quot;&lt;/div&gt;&quot;;<br />
echo &quot;&lt;/li&gt;&quot;;<br />
}<br />
}</p></blockquote>
<p>This code is utilizing <a href="http://www.wpbeginner.com/plugins/how-to-add-an-authors-photo-in-wordpress/">User Photo plugin</a>. The twitter field is being displayed using the trick we mentioned in the article <a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-authors-twitter-and-facebook-on-the-profile-page/">How to Display Author&#8217;s Twitter and Facebook in the Profile page</a>.</p>
<p>The CSS for example would look like:</p>
<blockquote><p>#authorlist ul{<br />
	list-style: none;<br />
	width: 600px;<br />
	margin: 0;<br />
	padding: 0;<br />
}<br />
#authorlist li {<br />
	margin: 0 0 5px 0;<br />
	list-style: none;<br />
	height: 90px;<br />
	padding: 15px 0 15px 0;<br />
	border-bottom: 1px solid #ececec;<br />
	}	</p>
<p>#authorlist img.photo {<br />
	width: 80px;<br />
	height: 80px;<br />
	float: left;<br />
	margin: 0 15px 0 0;<br />
	padding: 3px;<br />
	border: 1px solid #ececec;<br />
	}</p>
<p>#authorlist div.authname {<br />
	margin: 20px 0 0 10px;<br />
	}
</p></blockquote>
<p>You can display more information if you like by using the advanced code as your guide.</p>
<p><a href="http://bavotasan.com/tutorials/how-to-display-an-author-list-with-avatars-in-wordpress/" rel="source" target="_blank">Source of this Function</a></p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/">How to Display an Author List with Avatars in WordPress Contributors Page</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-display-authors-twitter-and-facebook-on-the-profile-page/' rel='bookmark' title='Permanent Link: How to Display Author&#8217;s Twitter and Facebook on the Profile Page'>How to Display Author&#8217;s Twitter and Facebook on the Profile Page</a></li>
<li><a href='http://www.wpbeginner.com/wp-themes/how-to-add-a-custom-author-profile-page-to-your-wordpress/' rel='bookmark' title='Permanent Link: How to Add a Custom Author Profile Page to Your WordPress'>How to Add a Custom Author Profile Page to Your WordPress</a></li>
<li><a href='http://www.wpbeginner.com/wp-tutorials/how-to-list-all-authors-from-your-blog-in-wordpress/' rel='bookmark' title='Permanent Link: How to List All Authors From Your Blog in WordPress'>How to List All Authors From Your Blog in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 2.438 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-13 07:00:39 -->
<!-- Compression = gzip -->