<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>WPBeginner &#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>Wed, 08 Feb 2012 13:37:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.wpbeginner.com/?pushpress=hub'/>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Add Additional Fields to the WordPress Media Uploader</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 16:26:21 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[add meta data to wordpress attachments]]></category>
		<category><![CDATA[adding fields to the attachment]]></category>
		<category><![CDATA[adding fields to the media gallery]]></category>
		<category><![CDATA[additional fields to the media uploader]]></category>
		<category><![CDATA[how to add additional fields to the wordpress media uploader]]></category>
		<category><![CDATA[how to add fields to the wordpress media uploader]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5205</guid>
		<description><![CDATA[<p>While working on a project where we created a very cool gallery powered totally by WordPress attachments and a custom post type, we found a need to add additional fields to the WordPress media uploader. These additional fields allowed us to give each photographer credit by adding photographer name, and their URL on each image page. WordPress stores images as posts in the attachment post type, so adding meta data is just like adding custom fields. Because the WordPress attachments...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/">How to Add Additional Fields to the WordPress Media Uploader</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>]]></description>
			<content:encoded><![CDATA[<p>While working on a project where we created a very cool gallery powered totally by WordPress attachments and a custom post type, we found a need to add additional fields to the WordPress media uploader. These additional fields allowed us to give each photographer credit by adding photographer name, and their URL on each image page. WordPress stores images as posts in the attachment post type, so adding meta data is just like adding custom fields. Because the WordPress attachments does not have a custom fields UI, we have to add a custom fields to the media uploader in order to collect the meta data. In this article, we will show you how to add additional fields to the WordPress Media Uploader. </p>
<p>We will be using the following filters to make the change: <em>attachment_fields_to_edit</em> and <em>attachment_fields_to_save</em></p>
<p>For a project like this, we highly recommend that you create a <a href="http://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/" title="Site Specific WordPress Plugin">site-specific plugin</a> and add the following code. However, you can still add the codes in your theme&#8217;s functions.php file to make it work.</p>
<pre class="brush: php; title: ; notranslate">
/**
 * Add Photographer Name and URL fields to media uploader
 *
 * @param $form_fields array, fields to include in attachment form
 * @param $post object, attachment record in database
 * @return $form_fields, modified form fields
 */

function be_attachment_field_credit( $form_fields, $post ) {
	$form_fields['be-photographer-name'] = array(
		'label' =&gt; 'Photographer Name',
		'input' =&gt; 'text',
		'value' =&gt; get_post_meta( $post-&gt;ID, 'be_photographer_name', true ),
		'helps' =&gt; 'If provided, photo credit will be displayed',
	);

	$form_fields['be-photographer-url'] = array(
		'label' =&gt; 'Photographer URL',
		'input' =&gt; 'text',
		'value' =&gt; get_post_meta( $post-&gt;ID, 'be_photographer_url', true ),
		'helps' =&gt; 'Add Photographer URL',
	);

	return $form_fields;
}

add_filter( 'attachment_fields_to_edit', 'be_attachment_field_credit', 10, 2 );

/**
 * Save values of Photographer Name and URL in media uploader
 *
 * @param $post array, the post data for database
 * @param $attachment array, attachment fields from $_POST form
 * @return $post array, modified post data
 */

function be_attachment_field_credit_save( $post, $attachment ) {
	if( isset( $attachment['be-photographer-name'] ) )
		update_post_meta( $post['ID'], 'be_photographer_name', $attachment['be-photographer-name'] );

	if( isset( $attachment['be-photographer-url'] ) )
update_post_meta( $post['ID'], 'be_photographer_url', esc_url( $attachment['be-photographer-url'] ) );

	return $post;
}

add_filter( 'attachment_fields_to_save', 'be_attachment_field_credit_save', 10, 2 );
?&gt;
</pre>
<p>The code above will add two text fields to the Media Uploader called Photographer Name and Photographer URL. You can see that in the screenshot below:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/mediauploaderfields.gif" alt="Additional Fields in the Media Uploader" title="Additional Fields in the Media Uploader" width="520" height="245" class="alignnone size-full wp-image-5206" /> </p>
<p><strong>Explanation of the code:</strong> In the first function, we are simply using an array to specify the field&#8217;s label, input type, value, and help text. The second function is checking to see if a value has been set for those fields. IF the value is set, then the post metadata is updated. </p>
<p>If you want to display the fields in your attachments template, then simply paste the following codes inside the loop:</p>
<pre class="brush: php; title: ; notranslate">echo get_post_meta($post-&gt;ID, 'be_photographer_url', true);</pre>
<p>If you want to display the fields for your featured image in your archive template or any other template, then simply use:</p>
<pre class="brush: php; title: ; notranslate">echo get_post_meta(get_post_thumbnail_id(), 'be_photographer_url', true);</pre>
<p>We hope that you enjoyed this article. For those who don&#8217;t know how to create an attachment&#8217;s template, don&#8217;t worry. In the next article, we will cover how to create an attachment&#8217;s template in WordPress.</p>
<p>Hat Tip to <a href="http://www.billerickson.net/wordpress-add-custom-fields-media-gallery/" title="Bill Erickson" target="_blank" rel="nofollow">Bill Erickson</a> for showing us how to do this.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/">How to Add Additional Fields to the WordPress Media Uploader</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/mediauploaderfields-150x150.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/mediauploaderfields.gif" medium="image">
			<media:title type="html">Additional Fields in the Media Uploader</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/mediauploaderfields-150x150.gif" />
		</media:content>
	</item>
		<item>
		<title>How to Add SlideShare to WordPress oEmbed without a Plugin</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 11:51:03 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[add slideshare to wordpress oembed]]></category>
		<category><![CDATA[add slideshare to wordpress oembed without a plugin]]></category>
		<category><![CDATA[adding slideshare to wordpress oembed]]></category>
		<category><![CDATA[how to add slideshare to wordpress oembed]]></category>
		<category><![CDATA[how to add slideshare to wordpress oembed without a plugin]]></category>
		<category><![CDATA[slideshare oembed wordpress]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5186</guid>
		<description><![CDATA[<p>If you have ever spoken in front of an audience, then you probably know what slideshare is. If you haven&#8217;t, then slideshare is a place where people upload their presentation slides, so others can see it. Very often these speakers also embed their slides in their blogs. You can either use the slideshare embed code which works fine, or you can make it much easier for yourself by simply adding it to WordPress oEmbed. This would allow you to simply...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/">How to Add SlideShare to WordPress oEmbed without a Plugin</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>]]></description>
			<content:encoded><![CDATA[<p>If you have ever spoken in front of an audience, then you probably know what slideshare is. If you haven&#8217;t, then slideshare is a place where people upload their presentation slides, so others can see it. Very often these speakers also embed their slides in their blogs. You can either use the slideshare embed code which works fine, or you can make it much easier for yourself by simply adding it to WordPress oEmbed. This would allow you to simply paste a URL of your slideshare presentation, and it will auto-embed just like the Youtube videos. In this article, we will show you how to add slideshare to WordPress oEmbed without a plugin.</p>
<p>Open your theme&#8217;s functions.php file or a site plugin and simply paste this code:</p>
<pre class="brush: php; title: ; notranslate">// Add Slideshare oEmbed
function add_oembed_slideshare(){
wp_oembed_add_provider( 'http://www.slideshare.net/*', 'http://api.embed.ly/v1/api/oembed');
}
add_action('init','add_oembed_slideshare');</pre>
<p>Thanks to @tammyhart for sharing the snippet with us.</p>
<p>P.S. want to check out all the presentations that we have given? Then visit <a href="http://www.slideshare.net/wpbeginner" title="WPBeginner Slides" target="_blank" rel="nofollow">WPBeginner&#8217;s Slideshare</a></p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/">How to Add SlideShare to WordPress oEmbed without a Plugin</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
	</item>
		<item>
		<title>How to Prevent Youtube oEmbed from Overriding your WordPress Content</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-prevent-youtube-oembed-from-overriding-your-wordpress-content/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-prevent-youtube-oembed-from-overriding-your-wordpress-content/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 11:34:18 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to fix youtube overriding wordpress]]></category>
		<category><![CDATA[youtube oembed]]></category>
		<category><![CDATA[youtube overriding wordpress]]></category>
		<category><![CDATA[youtube transparency]]></category>
		<category><![CDATA[youtube wmode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5168</guid>
		<description><![CDATA[<p>Have you ever been to a site where you notice that media elements such as youtube videos override other content? This can happen if you have drop down menus, floating bars, lightbox popup etc. Well as designers, this get really frustrating for us. In the past, you would have to add ?wmode=transparent to each video embed code, but with WordPress 2.9, embedding videos have gotten much easier. All you have to do is paste the URL of a video, and...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-prevent-youtube-oembed-from-overriding-your-wordpress-content/">How to Prevent Youtube oEmbed from Overriding your WordPress Content</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>]]></description>
			<content:encoded><![CDATA[<p>Have you ever been to a site where you notice that media elements such as youtube videos override other content? This can happen if you have drop down menus, floating bars, lightbox popup etc. Well as designers, this get really frustrating for us. In the past, you would have to add ?wmode=transparent to each video embed code, but with WordPress 2.9, <a href="http://www.wpbeginner.com/beginners-guide/how-to-easily-embed-videos-in-wordpress-blog-posts/" title="Embedding Videos in WordPress">embedding videos</a> have gotten much easier. All you have to do is paste the URL of a video, and it will auto-embed. However, this makes it harder for us to add the ?wmode=transparent tag to each video. Well, you don&#8217;t have to worry. In this article, we will share with you a snippet that prevents Youtube and any other media files that are embedded via oEmbed from overriding your WordPress content. </p>
<p><strong>Example:</strong></p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/youtubeoembedissue.gif" alt="Youtube oEmbed issue" title="Youtube oEmbed issue" width="520" height="341" class="alignnone size-full wp-image-5170" /></p>
<p>All you have to do is open your theme&#8217;s functions.php file or better yet your <a href="http://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/" title="Site Specific Plugin for WordPress">site&#8217;s plugin file</a> and paste the following code:</p>
<pre class="brush: php; title: ; notranslate">function add_video_wmode_transparent($html, $url, $attr) {

if ( strpos( $html, &quot;&lt;embed src=&quot; ) !== false )
   { return str_replace('&lt;/param&gt;&lt;embed', '&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot;&gt;&lt;/param&gt;&lt;embed wmode=&quot;opaque&quot; ', $html); }
elseif ( strpos ( $html, 'feature=oembed' ) !== false )
   { return str_replace( 'feature=oembed', 'feature=oembed&amp;wmode=opaque', $html ); }
else
   { return $html; }
}
add_filter( 'embed_oembed_html', 'add_video_wmode_transparent', 10, 3);</pre>
<p><a href="http://mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html" title="Source" target="_blank" rel="nofollow">Source</a></p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-prevent-youtube-oembed-from-overriding-your-wordpress-content/">How to Prevent Youtube oEmbed from Overriding your WordPress Content</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-prevent-youtube-oembed-from-overriding-your-wordpress-content/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/youtubeoembedissue-150x150.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/youtubeoembedissue.gif" medium="image">
			<media:title type="html">Youtube oEmbed issue</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/youtubeoembedissue-150x150.gif" />
		</media:content>
	</item>
		<item>
		<title>How to Add Google+ &#8220;Add to Circles&#8221; Badge in your WordPress Site</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-add-google-add-to-circles-badge-in-your-wordpress-site/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-add-google-add-to-circles-badge-in-your-wordpress-site/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 14:14:41 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[google+ add to circle widget]]></category>
		<category><![CDATA[google+ add to circles badge]]></category>
		<category><![CDATA[google+ badge]]></category>
		<category><![CDATA[google+ widget like mashable]]></category>
		<category><![CDATA[how to add google+ add to circles widget in wordpress]]></category>
		<category><![CDATA[how to add google+ badge in wordpress]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5176</guid>
		<description><![CDATA[<p>Recently, one of our users asked us how they can add the Google+ &#8220;Add to Circles&#8221; Badge in their WordPress site. In the past, we have shown you how to add the Google +1 Button your WordPress Posts. In this article, we will show you how to add the Google+ &#8220;Add to Circles&#8221; Badge in your WordPress site. Preview of how a Google+ Badge looks like: Before we begin, you should note that this is only for Google+ Pages not...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-google-add-to-circles-badge-in-your-wordpress-site/">How to Add Google+ &#8220;Add to Circles&#8221; Badge in your WordPress Site</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>]]></description>
			<content:encoded><![CDATA[<p>Recently, one of our users asked us how they can add the Google+ &#8220;Add to Circles&#8221; Badge in their WordPress site. In the past, we have shown you <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-the-google-1-button-to-your-wordpress/" title="How to Add the Google +1 Button in WordPress Posts">how to add the Google +1 Button your WordPress Posts</a>. In this article, we will show you how to add the Google+ &#8220;Add to Circles&#8221; Badge in your WordPress site.</p>
<p>Preview of how a Google+ Badge looks like:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/googleplusbadges.gif" alt="Google+ Add to Circles Badge" title="Google+ Add to Circles Badge" width="520" height="109" class="alignnone size-full wp-image-5177" /></p>
<p>Before we begin, you should note that this is only for Google+ Pages not profiles. Example of <a href="https://plus.google.com/101634180904808003404/" title="WPBeginner on Google+" target="_blank">Google+ Page</a>. Example of <a href="https://plus.google.com/101623299936375408403/" title="Syed Balkhi on Google+" target="_blank">Google+ Profile</a>.</p>
<p>First thing you need to do is put the following code in your <strong>&lt;head&gt;</strong> section of your site which you can modify by editing the <strong>header.php</strong> file of your theme.</p>
<pre class="brush: php; title: ; notranslate">
&lt;link href=&quot;https://plus.google.com/{plusPageID}&quot; rel=&quot;publisher&quot; /&gt;&lt;script type=&quot;text/javascript&quot;&gt;
(function()
{var po = document.createElement(&quot;script&quot;);
po.type = &quot;text/javascript&quot;; po.async = true;po.src = &quot;https://apis.google.com/js/plusone.js&quot;;
var s = document.getElementsByTagName(&quot;script&quot;)[0];
s.parentNode.insertBefore(po, s);
})();&lt;/script&gt;
</pre>
<p>Don&#8217;t forget to replace the {plusPageID} with your Google+ Page ID. Your Page ID is a 21-digit string at the end of the URL. For example if your page URL is: https://plus.google.com/<strong>101634180904808003404</strong>/ then the numbers in bold is your Page ID.</p>
<p>Once you have added the header code, then all you have to do is place the following code wherever you want the Google+ Add to Circles widget to show. Most users like to display this in their sidebar, so you can either modify your <strong>sidebar.php</strong> file, or simply add it in a text widget area.</p>
<pre class="brush: php; title: ; notranslate">&lt;g:plus href=&quot;https://plus.google.com/{plusPageID}&quot; size=&quot;badge&quot;&gt;&lt;/g:plus&gt;</pre>
<p>For the Small badge, simply use this code:</p>
<pre class="brush: php; title: ; notranslate">&lt;g:plus href=&quot;https://plus.google.com/101634180904808003404&quot; size=&quot;smallbadge&quot;&gt;&lt;/g:plus&gt;</pre>
<p>We hope that this article has helped you. If it did, then please consider adding <a href="https://plus.google.com/101634180904808003404/" title="WPBeginner on Google+" target="_blank">WPBeginner in your Circle</a>.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-google-add-to-circles-badge-in-your-wordpress-site/">How to Add Google+ &#8220;Add to Circles&#8221; Badge in your WordPress Site</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-add-google-add-to-circles-badge-in-your-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/googleplusbadges-150x109.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/googleplusbadges.gif" medium="image">
			<media:title type="html">Google+ Add to Circles Badge</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/02/googleplusbadges-150x109.gif" />
		</media:content>
	</item>
		<item>
		<title>How to Add Pinterest &#8220;Pin It&#8221; button in your WordPress Blog</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-add-pinterest-pin-it-button-in-your-wordpress-blog/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-add-pinterest-pin-it-button-in-your-wordpress-blog/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 15:51:47 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[adding pin it button in wordpress]]></category>
		<category><![CDATA[adding pinterest to wordpress]]></category>
		<category><![CDATA[how to add pin it button in wordpress]]></category>
		<category><![CDATA[how to add pinterest pin it button in wordpress]]></category>
		<category><![CDATA[how to add pinterest to wordpress]]></category>
		<category><![CDATA[how to add pinterest to your blog]]></category>
		<category><![CDATA[pinterest]]></category>
		<category><![CDATA[pinterest pin it button in wordpress]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5144</guid>
		<description><![CDATA[<p>Recently while monitoring our blog stats, a new traffic source was popping up enough for us to notice. This traffic source was Pinterest. We started using the platform and saw great potential in it therefore we have added it on List25. In this article, we will show you how to add the Pinterest &#8220;Pin It&#8221; button to your WordPress blog. First thing you need to do is paste the following script in your footer.php file right before the body close...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-pinterest-pin-it-button-in-your-wordpress-blog/">How to Add Pinterest &#8220;Pin It&#8221; button in your WordPress Blog</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>]]></description>
			<content:encoded><![CDATA[<p>Recently while monitoring our blog stats, a new traffic source was popping up enough for us to notice. This traffic source was <a href="http://www.pinterest.com/syedbalkhi" title="Pinterest" target="_blank">Pinterest</a>. We started using the platform and saw great potential in it therefore we have added it on <a href="http://list25.com/" title="List25" target="_blank">List25</a>. In this article, we will show you how to add the Pinterest &#8220;Pin It&#8221; button to your WordPress blog.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/pinterestbuttons.gif" alt="Pinterest Buttons" title="Pinterest Buttons" width="520" height="120" class="alignnone size-full wp-image-5147" /></p>
<p>First thing you need to do is paste the following script in your <em>footer.php</em> file right before the body close tag.</p>
<pre class="brush: php; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
(function() {
    window.PinIt = window.PinIt || { loaded:false };
    if (window.PinIt.loaded) return;
    window.PinIt.loaded = true;
    function async_load(){
        var s = document.createElement(&quot;script&quot;);
        s.type = &quot;text/javascript&quot;;
        s.async = true;
        s.src = &quot;http://assets.pinterest.com/js/pinit.js&quot;;
        var x = document.getElementsByTagName(&quot;script&quot;)[0];
        x.parentNode.insertBefore(s, x);
    }
    if (window.attachEvent)
        window.attachEvent(&quot;onload&quot;, async_load);
    else
        window.addEventListener(&quot;load&quot;, async_load, false);
})();
&lt;/script&gt;
</pre>
<p>Once you have done that, you can add the following code in your <em>single.php</em> file at a location of your choice:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'full' ); ?&gt;
&lt;a href=&quot;http://pinterest.com/pin/create/button/?url=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;media=&lt;?php echo $pinterestimage[0]; ?&gt;&amp;description=&lt;?php the_title(); ?&gt;&quot; class=&quot;pin-it-button&quot; count-layout=&quot;vertical&quot;&gt;Pin It&lt;/a&gt;
</pre>
<p>The code above is basically pulling your Featured Image, the title of your post as description, and the URL of the post. It is designed for the vertical share button. If you want to put the horizontal share button, simply change count-layout parameter to horizontal.</p>
<p>We hope that this will help. P.S. if you are on Pinterest then please follow <a href="http://www.pinterest.com/syedbalkhi" title="Pinterest" target="_blank">Syed Balkhi</a></p>
<h4>Pinterest Shortcode</h4>
<p>Update: one of our user wanted to create a shortcode for the Pinterest &#8220;Pin It&#8221; button. You can easily do so by pasting the following code either in your theme&#8217;s functions.php file or your site plugin&#8217;s file:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
function get_pin($atts) {
$pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'full' );
return '&lt;a href=&quot;http://pinterest.com/pin/create/button/?url' . urlencode(get_permalink($post-&gt;ID)) . '&amp;media=' . $pinterestimage[0] . '&amp;description=' . get_the_title() .'&quot; class=&quot;pin-it-button&quot; count-layout=&quot;vertical&quot;&gt;Pin It&lt;/a&gt;'; }

add_shortcode('pin', 'get_pin');
?&gt;
</pre>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-pinterest-pin-it-button-in-your-wordpress-blog/">How to Add Pinterest &#8220;Pin It&#8221; button in your WordPress Blog</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-add-pinterest-pin-it-button-in-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/pinterestbuttons-150x120.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/pinterestbuttons.gif" medium="image">
			<media:title type="html">Pinterest Buttons</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/pinterestbuttons-150x120.gif" />
		</media:content>
	</item>
		<item>
		<title>How to Split WordPress Posts into Multiple Pages</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 16:36:38 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to split wordpress posts]]></category>
		<category><![CDATA[how to split wordpress posts in multiple pages]]></category>
		<category><![CDATA[post pagination]]></category>
		<category><![CDATA[split wordpress posts]]></category>
		<category><![CDATA[splitting wordpress posts in multiple pages]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5133</guid>
		<description><![CDATA[<p>Yesterday we wrote an article on the site showing you how to increase pageviews and reduce bounce rate in WordPress. One of the tips we mentioned was splitting long posts into multiple pages. You can see an example of how we split our posts into two pages or even into five pages. After writing that article, we got a lot of inquiries from people asking us multiple questions. How do you split the posts into multiple pages? I put the...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/">How to Split WordPress Posts into Multiple Pages</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>]]></description>
			<content:encoded><![CDATA[<p>Yesterday we wrote an article on the site showing you <a href="http://www.wpbeginner.com/beginners-guide/how-to-increase-pageviews-and-reduce-bounce-rate-in-wordpress/" title="How to Increase Pageviews and Reduce Bounce Rate in WordPress">how to increase pageviews and reduce bounce rate in WordPress</a>. One of the tips we mentioned was splitting long posts into multiple pages. You can see an example of how we split our posts into <a href="http://list25.com/25-hilarious-siri-responses/" title="25 Hilarious Siri Responses" target="_blank">two pages</a> or even into <a href="http://list25.com/25-epic-fail-gifs/" title="Epic Fail GIFs" target="_blank">five pages</a>. After writing that article, we got a lot of inquiries from people asking us multiple questions. How do you split the posts into multiple pages? I put the &lt;!&#8211;nextpage&#8211;&gt; tag, but no pagination shows up. Well worry not. In this article, we will show you how to split WordPress posts into multiple pages.</p>
<p>On most well-coded themes, all you have to do is paste this code: &lt;!&#8211;nextpage&#8211;&gt; wherever you want the next page to start. The pagination will automatically show up. But that might not be the case if your theme is not coded properly. </p>
<p>If for some reason, pagination is not showing up after you have pasted the next page tags, then you would need to add the following code in your <em>single.php</em> loop.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php wp_link_pages(); ?&gt;</pre>
<p>Once you add that, then the pagination will start to show. There are several parameters for this function that you can use. The codex page for <a href="http://codex.wordpress.org/Styling_Page-Links" title="Styling Page Links" target="_blank" rel="nofollow">Styling Page-Links</a> does a good job explaining that.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/">How to Split WordPress Posts into Multiple Pages</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
	</item>
		<item>
		<title>How to Display Child Taxonomy on Parent Taxonomy&#8217;s Archive Page</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-display-child-taxonomy-on-parent-taxonomys-archive-page/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-display-child-taxonomy-on-parent-taxonomys-archive-page/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 19:00:21 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[custom taxonomies archive page]]></category>
		<category><![CDATA[custom taxonomy list]]></category>
		<category><![CDATA[display a list of custom taxonomy]]></category>
		<category><![CDATA[how to display child taxonomy on parent taxonomy archive page in custom taxonomies]]></category>
		<category><![CDATA[taxonomy archive pages]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5075</guid>
		<description><![CDATA[<p>In the past we have shown you how to display subcategories on category pages in WordPress. Recently while working with Custom Taxonomies, we found a need to display child-taxonomies on parent-taxonomies archive page. After doing a bit of research, we didn&#8217;t find a single tutorial covering this issue. In this article, we will show you how to display a list of child taxonomies on taxonomies pages. Open up your custom taxonomy template file which may look like: taxonomy-{taxonomyname}.php and paste...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-child-taxonomy-on-parent-taxonomys-archive-page/">How to Display Child Taxonomy on Parent Taxonomy&#8217;s Archive 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>]]></description>
			<content:encoded><![CDATA[<p>In the past we have shown you how to <a href="http://www.wpbeginner.com/wp-tutorials/display-subcategories-on-category-pages-in-wordpress/" title="Display SubCategories on Categories Pages">display subcategories on category pages in WordPress</a>. Recently while working with Custom Taxonomies, we found a need to display child-taxonomies on parent-taxonomies archive page. After doing a bit of research, we didn&#8217;t find a single tutorial covering this issue. In this article, we will show you how to display a list of child taxonomies on taxonomies pages.</p>
<p>Open up your custom taxonomy template file which may look like: <strong>taxonomy-{taxonomyname}.php</strong> and paste the following code where ever you want to display the list:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
if ($term-&gt;parent == 0) {
wp_list_categories('taxonomy=YOUR-TAXONOMY-NAME&amp;depth=1&amp;show_count=0
&amp;title_li=&amp;child_of=' . $term-&gt;term_id);
} else {
wp_list_categories('taxonomy=YOUR-TAXONOMY-NAME&amp;show_count=0
&amp;title_li=&amp;child_of=' . $term-&gt;parent);
}
?&gt;
</pre>
<p>Don&#8217;t forget to replace YOUR-TAXONOMY-NAME with the name of your taxonomy.</p>
<p><strong>Final Result:</strong></p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/taxonomylist.gif" alt="List of Taxonomies" title="List of Taxonomies" width="520" height="366" class="alignnone size-full wp-image-5076" /></p>
<p><strong>Explanation:</strong></p>
<p>We are using <strong><a href="http://codex.wordpress.org/Function_Reference/get_term_by" target="_blank" rel="nofollow">get_term_by</a></strong> to query the information of the current taxonomy by slug. For example if your taxonomy is called topics and you are on a page /topics/nutrition/ then $term variable will pull all the data related to the specific term page that you are on. </p>
<p>In the project we were working on, the topics taxonomy was hierarchical just like categories. So we decided to run a conditional using $term->parent variable. This variable outputs the ID of the parent taxonomy. So if you are on the taxonomy nutrition which is the parent taxonomy, then $term->parent will echo 0. This is why we said if $term->parent == 0 then use <a href="http://codex.wordpress.org/Function_Reference/wp_list_categories" target="_blank" rel="nofollow">wp_list_categories()</a> function to display terms from our custom taxonomy that are child_of the term which page you are on. We accomplished this by using $term->term_id as the child_of variable.</p>
<p>Now if you go to the child taxonomy page, it would have been blank because the $term->parent would no longer equals to 0. On a child taxonomy page, $term->parent outputs the ID of the parent category. So we ran an else statement using the same wp_list_categories() function except we changed $term->term_id to $term->parent.</p>
<p>There you have it. We hope that this helps everyone who was looking for a solution.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-display-child-taxonomy-on-parent-taxonomys-archive-page/">How to Display Child Taxonomy on Parent Taxonomy&#8217;s Archive 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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-display-child-taxonomy-on-parent-taxonomys-archive-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/taxonomylist-150x150.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/taxonomylist.gif" medium="image">
			<media:title type="html">List of Taxonomies</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2012/01/taxonomylist-150x150.gif" />
		</media:content>
	</item>
		<item>
		<title>Case Study: Behind the Scenes Look of List25 &#8211; Plugins and Hacks</title>
		<link>http://www.wpbeginner.com/wp-tutorials/case-study-behind-the-scenes-look-of-list25-plugins-and-hacks/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/case-study-behind-the-scenes-look-of-list25-plugins-and-hacks/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 19:12:10 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[behind the scenes]]></category>
		<category><![CDATA[list25]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=5019</guid>
		<description><![CDATA[<p>As many of you know that we have launched a new blog called List25. In the past month or so, we have been continuously working on improving that site. What looks like a simple list blog in the front-end has a lot of cool little things that you never see. In this article, we will take you behind the scenes of List25 and show you the plugins and cool hacks that we are using to power that site. Perhaps reading...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/case-study-behind-the-scenes-look-of-list25-plugins-and-hacks/">Case Study: Behind the Scenes Look of List25 &#8211; Plugins 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>]]></description>
			<content:encoded><![CDATA[<p>As many of you know that we have launched a new blog called <a href="http://list25.com/" title="List25" target="_blank">List25</a>. In the past month or so, we have been continuously working on improving that site. What looks like a simple list blog in the front-end has a lot of cool little things that you never see. In this article, we will take you behind the scenes of List25 and show you the plugins and cool hacks that we are using to power that site. Perhaps reading this article will give you some feature ideas for your own site.</p>
<h4>About List25</h4>
<p><a href="http://list25.com/" title="List25" target="_blank">List25</a> is a blog that curates lists of lesser-known intriguing information on a variety of subjects. The purpose of this blog is to be a good fun read when you are bored while being educational at times.</p>
<p>We have the site optimized for readers, so they can always find interesting content while being on our site. We also have the site optimized for new authors, so they can easily adopt to the writing style and format of List25.</p>
<h4>Plugins</h4>
<p>Here we go. People are always interested in knowing what plugins are other sites using. Our goal when developing a site is to accomplish things the easiest way possible. Plugins are pretty handy and saves us a lot of time. We will list a plugin and then share why we are using it.</p>
<p><a href="http://akismet.com" title="Akismet" target="_blank" rel="nofollow">Akismet</a> &#8211; D&#8217;oh. We don&#8217;t want comment spam. Every WordPress installation comes built-in with it for a reason.</p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-create-compact-archives-in-wordpress/" title="Compact Archives">Compact Archives</a> &#8211; We are using Compact Archives plugin power the dates area of the <a href="http://list25.com/archives/" title="List25 Archives" target="_blank">archives page</a>. Having the year and months organized in a compact style not only saves space, but it also makes it look good.</p>
<p><a href="http://www.wpbeginner.com/wp-themes/how-to-display-featured-posts-with-thumbnails-in-wordpress/" title="Featured Posts Lists with Thumbnails">Featured Posts List with Thumbnails</a> &#8211; We are using this to showcase our &#8220;featured&#8221; articles in the sidebar. Instead of using a popular views mechanism, we handpick these articles. This allows us to control and moderate the traffic flow to specific articles. You can see the live demo of it in our sidebar or see the image below.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/featuredpoststhumbnaillist25.gif" alt="Featured Posts with Thumbnails on List25" title="Featured Posts with Thumbnails on List25" width="520" height="336" class="alignnone size-full wp-image-5020" /></p>
<p><a href="http://www.wpbeginner.com/refer/gravityforms" style="" target="_blank" rel="nofollow" >Gravity Forms</a> with the <a href="http://www.wpbeginner.com/refer/mailchimp" style="" target="_blank" rel="nofollow" >MailChimp</a> Addon &#8211; We are using it to power our contact form. We are using the <a href="http://www.wpbeginner.com/refer/mailchimp" style="" target="_blank" rel="nofollow" >MailChimp</a> addon to collect emails from the contact form if the user choose to opt-in. We have already written about <a href="http://www.wpbeginner.com/refer/gravityforms" style="" target="_blank" rel="nofollow" >Gravity Forms</a> and its benefits in <a href="http://www.wpbeginner.com/plugins/how-to-do-lead-generation-in-wordpress-part-2-contact-forms/" title="Lead Generation with Contact Forms in WordPress">lead generation</a>.</p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-do-lazy-load-images-in-wordpress/" title="Lazy Load Plugin for WordPress">Lazy Load</a> &#8211; This allows us to lazy load our images. Basically when you install Lazy Load, it only loads the areas that is being accessed right away. So if you have a page with <a href="http://list25.com/25-epic-fail-gifs/" title="25 Epic Fail GIFs" target="_blank">25 Fail GIFs</a>, then only the first few images in the post will be loaded. The rest of the images load as the user scrolls down. By using this technique, the perceived page load time is a lot faster.</p>
<p><a href="http://www.wpbeginner.com/refer/ninja" title="Ninja Affiliate" target="_blank" rel="nofollow">MaxBlogPress Ninja Affiliate</a> &#8211; Although we haven&#8217;t done a lot of affiliate marketing on this site. But we are using <a href="http://www.wpbeginner.com/refer/ninja" style="" target="_blank" rel="nofollow" >Ninja Affiliate</a> to automatically replace some keywords with affiliate links in our posts. This hasn&#8217;t generated a lot of revenue for that site yet, but it is because it is such a new site.</p>
<p><a href="http://wordpress.org/extend/plugins/members/" title="Members Plugin" target="_blank" rel="nofollow">Members</a> &#8211; Members plugin allows us to create new user roles and limit permission based on the user role. This plugin is a must have for any multi-author blogs.</p>
<p><a href="http://www.wpbeginner.com/plugins/no-self-ping-keeps-wordpress-from-sending-pings-to-your-own-site/" title="No Self Pings">No Self Pings</a> &#8211; Occasionally we link to our own posts. This pretty much tells WordPress to not send pings when we are linking to our own site. Because there is nothing worst than having your own site&#8217;s trackbacks to your other entries.</p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-track-404-pages-and-redirect-them-in-wordpress/" title="Redirection plugin for WordPress">Redirection</a> &#8211;  We are using redirection plugin to track 404 pages and redirect them appropriately. Its a good plugin to have in general.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-create-additional-image-sizes-in-wordpress/" title="Regenerate Thumbnails">Regenerate Thumbnails</a> &#8211; We are using Regenerate Thumbnails plugin to generate additional image sizes. This allows us to have various sizes for design purposes (such as Slider Navigation, Featured Posts in the Sidebar etc).</p>
<p><a href="http://wordpress.org/extend/plugins/simple-facebook-connect/" title="Simple Facebook Connect" target="_blank">Simple Facebook Connect</a> and <a href="http://wordpress.org/extend/plugins/simple-twitter-connect/" title="Simple Twitter Connect" target="_blank">Simple Twitter Connect</a> &#8211; These two plugins are super powerful and are being used for variety of purposes through out the site. Their #1 purpose is to allow third-party login for comments. See the screenshot below:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25commentsarea.gif" alt="List25 Comments Area" title="List25 Comments Area" width="520" height="154" class="alignnone size-full wp-image-5021" /></p>
<p>Simple Facebook Connect is handling our Facebook Open Graph Meta Data details for us, so we have the right image, title, and description when users share our articles on Facebook.</p>
<p>Simple Twitter connect is also being used for automatically linking our twitter usernames when you type @list25 or any other twitter handle. Because simple twitter connect is using the <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-twitter-anywhere-in-wordpress/" title="Twitter Anywhere API">Twitter Anywhere API</a>, we are also using it for live tweet box on our <a href="http://list25.com/subscribe/" title="Subscribe to List25">Subscribe Page</a> for List25. (This tutorial will show you <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-twitter-anywhere-in-wordpress/" title="Twitter Anywhere API">how to create live tweet boxes on your WordPress site</a>)</p>
<p><a href="http://wordpress.org/extend/plugins/subscribe-to-comments/" title="Subscribe to comments" target="_blank" rel="nofollow">Subscribe to Comments</a> &#8211; This plugin adds a little checkbox after the comment that allows users to subscribe to comments if they choose to.</p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-add-an-authors-photo-in-wordpress/" title="User Photo for Authors">User Photo</a> &#8211; User photo plugin lets each author to upload their own image rather than using gravatar. This allows us to moderate the images that show up in our author bio&#8217;s. </p>
<p><a href="http://vaultpress.com/" title="VaultPress" target="_blank" rel="nofollow">VaultPress</a> &#8211; We are using VaultPress for backups. It is a managed backup solution by Automattic. They backup our theme, plugins, posts, and all other media files. This protects us from disasters. If anything happens, we can always use VaultPress to restore the site to normal.</p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-install-and-setup-w3-total-cache-for-beginners/" title="W3 Total Cache">W3 Total Cache</a> &#8211; This keeps our site from not crashing. List25 is getting a lot of traffic and without this plugin, our servers would crash every hour.</p>
<p><a href="http://wordpress.org/extend/plugins/wordpress-https/" title="WordPress HTTPs" target="_blank" rel="nofollow">WordPress HTTPs</a> &#8211; We are using this plugin to make sure that our site&#8217;s backend is secured. But most importantly, we are using it to host media files and serve it to our Facebook Application that we have discussed in <a href="http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/" title="Boost your Facebook Likes">this article</a> at WPBeginner.</p>
<p><a href="http://www.wpbeginner.com/plugins/how-to-install-and-setup-wordpress-seo-plugin-by-yoast/" title="WordPress SEO by Yoast">WordPress SEO by Yoast</a> &#8211; This plugin handles our sitemaps, and all other on-site SEO such as Meta tags, indexation etc.</p>
<p><a href="http://wordpress.org/extend/plugins/wp-leads-mailchimp-constant-contact-and-salesforcecom-integration/" title="WP-Leads" target="_blank" rel="nofollow">WP-Leads</a> &#8211; We are using this plugin to add a little checkbox in the comment form for our <a href="http://www.wpbeginner.com/refer/mailchimp" style="" target="_blank" rel="nofollow" >MailChimp</a> list. It makes it easier for our users to subscribe to our daily <a href="http://www.wpbeginner.com/refer/aweber" style="" target="_blank" rel="nofollow" onmouseover="self.status='Aweber - Email Marketing Software';return true;" onmouseout="self.status=''">newsletter</a> if they choose to. </p>
<p><a href="http://www.wpbeginner.com/plugins/making-your-wordpress-mobile-friendly-with-wptouch-pro/" title="WP Touch Pro">WPTouch Pro</a> &#8211; We are using WP Touch Pro to power our mobile version of the site. We did create a custom theme for WP Touch Pro, but it didn&#8217;t take that long to do so.</p>
<p>WP4FB Pro &#8211; This plugin is handling our facebook application for Giveaway. Which we have discussed on pretty extensively on <a href="http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/" title="WP4FB - Facebook Campaigns using WordPress">how to do facebook giveaways using WordPress</a>.</p>
<p>That will conclude the list of plugins that we are running. Now lets take a look at other cool hacks that we have on the site.</p>
<h4>List25: Theme and Hacks</h4>
<p>It is important to emphasize that List25 is running on a custom <a href="http://www.wpbeginner.com/refer/studiopress-genesis" style="" target="_blank" rel="nofollow" >Genesis</a> Child Theme. We do have some pretty nifty features on the site. </p>
<p><strong>I&#8217;m Curious Button in the Header</strong> &#8211; When a user clicks on that, it redirects them to a random post on a site. It&#8217;s essentially simulating a Stumbleupon like experience. You can do this too. Check out our tutorial on <a href="http://www.wpbeginner.com/wp-tutorials/how-to-redirect-users-to-a-random-post-in-wordpress/" title="How to Redirect Users to a Random Post in WordPress">How to Redirect Users to a Random Post in WordPress</a>.</p>
<p><strong>Custom Post Editor Layout</strong></p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/customeditorlayout.gif" alt="Custom Post Editor Layout" title="Custom Post Editor Layout" width="520" height="563" class="alignnone size-full wp-image-5022" /></p>
<p>The reason why we have a custom post editor layout is so our new authors know exactly what type of formatting we want. If you visit any one of our posts, you will see how handy this feature can really be. It does require some knowledge to create a custom post editor. <a href="http://wp.smashingmagazine.com/2011/10/14/advanced-layout-templates-in-wordpress-content-editor/" title="Smashing Magazine" target="_blank" rel="nofollow">Smashing Magazine</a> has a tutorial on how to do this.</p>
<p><strong>Slider</strong></p>
<p>We are using the jQuery version of <a href="http://www.wpbeginner.com/refer/slidedeck" style="" target="_blank" rel="nofollow" >SlideDeck</a> plugin to create our slider. They do have a WordPress plugin. Check out our <a href="http://www.wpbeginner.com/plugins/step-by-step-guide-to-creating-a-slider-in-wordpress-with-slidedeck/" title="Step by step guide to creating a slider in WordPress">step by step guide to creating a slider in WordPress</a>.</p>
<p>That&#8217;s about it. We hope that this gave you ideas for your own site. Let us know your comments and feedbacks. Oh, and don&#8217;t forget to check out <a href="http://list25.com/" title="List25" target="_blank">List25</a>.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/case-study-behind-the-scenes-look-of-list25-plugins-and-hacks/">Case Study: Behind the Scenes Look of List25 &#8211; Plugins 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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/case-study-behind-the-scenes-look-of-list25-plugins-and-hacks/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/featuredpoststhumbnaillist25-150x150.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/featuredpoststhumbnaillist25.gif" medium="image">
			<media:title type="html">Featured Posts with Thumbnails on List25</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/featuredpoststhumbnaillist25-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25commentsarea.gif" medium="image">
			<media:title type="html">List25 Comments Area</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25commentsarea-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/customeditorlayout.gif" medium="image">
			<media:title type="html">Custom Post Editor Layout</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/customeditorlayout-150x150.gif" />
		</media:content>
	</item>
		<item>
		<title>Boost Your Likes by Creating a Facebook Giveaway Using WordPress</title>
		<link>http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 21:33:44 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[facebook giveaway techniques]]></category>
		<category><![CDATA[how to create facebook giveaway campaigns using wordpress]]></category>
		<category><![CDATA[how to do giveaways in facebook]]></category>
		<category><![CDATA[wordpress and facebook]]></category>
		<category><![CDATA[wp4fb]]></category>
		<category><![CDATA[wp4fb resources]]></category>
		<category><![CDATA[wp4fb tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=4990</guid>
		<description><![CDATA[<p>As a lot of you know that we recently launched a new site List25 last month. We have been doing a lot of social media promotions for it, and in one month you can see that the site&#8217;s facebook like count is already surpassing 27,000. Yes that is pretty insane. One of the things we did to give this site a boost start on facebook was creating a facebook giveaway campaign. For which you see the ad in the sidebar...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/">Boost Your Likes by Creating a Facebook Giveaway Using 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>]]></description>
			<content:encoded><![CDATA[<p>As a lot of you know that we recently launched a new site <a href="http://list25.com/" title="List25" target="_blank">List25</a> last month. We have been doing a lot of social media promotions for it, and in one month you can see that the site&#8217;s facebook like count is already surpassing <strong>27,000</strong>. Yes that is pretty insane. One of the things we did to give this site a boost start on facebook was creating a facebook giveaway campaign. For which you see the ad in the sidebar of WPBeginner. In this article, we will show you how you can boost your likes by creating a facebook giveaway campaign using WordPress. This will get very interesting in terms of results, so read along.</p>
<p>Note: Intermediate level of technical know how of WordPress and CSS is required for this tutorial. We tried to make it as clear as possible for everyone to follow.</p>
<h4>How does this Giveaway work?</h4>
<p>When the user lands on <a href="http://facebook.com/list25" title="List25 on Facebook" target="_blank">List25&#8242;s Facebook Page</a>, they see the <a href="http://www.wpbeginner.com/refer/premise" style="" target="_blank" rel="nofollow" >landing page</a> for our contest. It says &#8220;List25 is doing a Holiday Giveaway&#8221; -> Win $25 Amazon Giftcards. Like our page to see how you can enter. Image below:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaign.jpg" alt="List25 Amazon Campaign" title="List25 Amazon Campaign" width="520" height="620" class="alignnone size-full wp-image-4991" /></p>
<p>Amazon giftcards is something that a lot of people want. So majority of the users click Like to see how they can enter. When they like the page, they are now shown the fan-only content which has the instructions on how to win. It basically says, we are giving away 25 x $25 Amazon Gift Cards. You must share this page with your friends to qualify. There is a button for the user to click and share the page with their friends.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaigndetails.jpg" alt="List25 Amazon Giveaway Campaign Details" title="List25 Amazon Giveaway Campaign Details" width="520" height="620" class="alignnone size-full wp-image-4992" /></p>
<p>When the user clicks on the button, a Post to Your Wall popup shows up like this:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbgiveawayshare.gif" alt="List25 Giveaway Share Popup" title="List25 Giveaway Share Popup" width="520" height="264" class="alignnone size-full wp-image-4993" /></p>
<p>We have already predefined the text and the image there. So all the user has to do is write their comment and share it. Once they hit share, they will be brought to the page to enter their information. If the user clicks Cancel, then they are sent back to the previous tab.</p>
<p><strong>This campaign will be live until December 20th (that&#8217;s when we will announce our winners). So for those who want to see a live demo of this, head over to <a href="http://facebook.com/list25" title="List25 Facebook Page" target="_blank">List25 Fan Page</a> and see it for yourself.</strong></p>
<p>The craziest part about all this is that most people think it will require you to do some crazy coding or pay big money to have an app like this. What if we were to tell you that we did this all with a combination of WordPress plugins, <a href="http://www.wpbeginner.com/refer/mailchimp" style="" target="_blank" rel="nofollow" >MailChimp</a> and obviously design skills for the images. Want to know how to do it? Read along. </p>
<h4>Step 1: Getting Things Together</h4>
<p>First thing you need to do is figure out what you are going to giveaway. In our case it was Amazon Giftcards. As I mentioned previously, it required a combination of plugins and services. So I will lay it out all out here. Remember some are paid plugins:</p>
<ul>
<li><a href="http://www.wpbeginner.com/refer/wp4fb" target="_blank" rel="nofollow">WP4FB Pro</a> <- Get the Pro option if you want to be able to do the stuff we did (the feature is called Like Gate and Share Gate) which is only available at Pro and Developer level.</li>
<li><a href="http://wordpress.org/extend/plugins/wordpress-https/" title="WordPress HTTPs Plugin" target="_blank">WordPress HTTPs Plugin</a> (Free from the Repository)</li>
<li>SSL Certificate for the HTTPs users. As of <a href="http://www.hyperarts.com/blog/how-to-prepare-for-facebooks-secure-hosting-https-requirement/" title="HyperArts News Article" target="_blank">October 1st</a>, Facebook now requires developers to have a SSL ready version for the users using secured browsing. If you are on a <a href="http://www.wpbeginner.com/refer/hostgator" style="" target="_blank" rel="nofollow" onmouseover="self.status='Host Gator - Best Web Host for WordPress';return true;" onmouseout="self.status=''">dedicated server</a> like us, then you have to pay for a SSL certificate. <a href="http://www.wpbeginner.com/refer/hostgator" style="" target="_blank" rel="nofollow" onmouseover="self.status='Host Gator - Best Web Host for WordPress';return true;" onmouseout="self.status=''">HostGator</a> charges like $50 / year for the service. But we ended up getting ours for $12.99 / year from <a href="http://www.wpbeginner.com/refer/godaddy" style="" target="_blank" rel="nofollow" onmouseover="self.status='Go Daddy Domain Registration';return true;" onmouseout="self.status=''">Godaddy</a> special <a href="http://www.wpbeginner.com/refer/godaddy-ssl" title="Godaddy SSL Special" target="_blank" rel="nofollow">Click Here to get it</a>.
<p>If you are on <a href="http://www.wpbeginner.com/refer/hostgator" style="" target="_blank" rel="nofollow" onmouseover="self.status='Host Gator - Best Web Host for WordPress';return true;" onmouseout="self.status=''">HostGator</a>&#8216;s Shared hosting plan, then KimWoodbridge has <a href="http://www.kimwoodbridge.com/how-to-set-up-free-shared-ssl-with-hostgator/" title="Setup Free Shared SSL on Hostgator" target="_blank">a tutorial</a> that shows you how to use their Shared SSL.
</li>
<li><a href="http://www.wpbeginner.com/refer/mailchimp" style="" target="_blank" rel="nofollow" >MailChimp</a> or <a href="http://www.wpbeginner.com/refer/aweber" style="" target="_blank" rel="nofollow" onmouseover="self.status='Aweber - Email Marketing Software';return true;" onmouseout="self.status=''">Aweber</a> Account. Basically you need a way to store the Name and Email, so you can later notify the winners. Facebook requires you to collect the data separately otherwise it is against their TOS. So no you cannot message the user on Facebook to let them know that they won.</li>
</ul>
<p>Aside from all the above, you need to have the following graphics ready:</p>
<ul>
<li>Non-Fan Page Graphics</li>
<li>Fan-Only Page Grahpics where you show details on how to Enter (with a click to share button)</li>
<li>Success Page with a Form where you can user can enter their data</li>
<li>Thumbnail for the Share Content</li>
</ul>
<p><strong>Total investment:</strong> </p>
<p>- $67 for <a href="http://www.wpbeginner.com/refer/wp4fb" target="_blank" rel="nofollow">WP4FB Pro</a><br />
- $12.99 for SSL via <a href="http://www.wpbeginner.com/refer/godaddy" style="" target="_blank" rel="nofollow" onmouseover="self.status='Go Daddy Domain Registration';return true;" onmouseout="self.status=''">Godaddy</a> (This is a special offer. Normally it costs $69. <a href="http://www.wpbeginner.com/refer/godaddy-ssl" title="Godaddy SSL Special" target="_blank" rel="nofollow">Click Here to get it</a>)<br />
- Free upto 2000 Emails: <a href="http://www.wpbeginner.com/refer/mailchimp" style="" target="_blank" rel="nofollow" >MailChimp</a> (Our plan is combined with WPBeginner so we are paying for it)<br />
- 25 x $25 Amazon Giftcards ($625) <- This will vary based on what you are giving away.</p>
<p>Before you move on to the next step, It is assumed that you have gotten all the things together. For SSL, if you got the certificate, it needs to be installed on your server. <a href="http://www.wpbeginner.com/refer/hostgator" style="" target="_blank" rel="nofollow" onmouseover="self.status='Host Gator - Best Web Host for WordPress';return true;" onmouseout="self.status=''">HostGator</a> installed it on our server for us. You just have to ask their support.</p>
<h4>Step 2: Installing WordPress HTTPs</h4>
<p>Simply install and activate the plugin <a href="http://wordpress.org/extend/plugins/wordpress-https/" title="WordPress HTTPs Plugin" target="_blank">WordPress HTTPs Plugin</a> from the WordPress repository. </p>
<p>Go to Settings &raquo; WordPress HTTPs and change the SSL Host to your domain.</p>
<p>Make sure the checkbox for Force SSL Exclusively is checked.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wphttps.gif" alt="WordPress HTTPs" title="WordPress HTTPs" width="520" height="279" class="alignnone size-full wp-image-4999" /></p>
<p>Click Save Settings.</p>
<h4>Step 3: Setting up WP4FB Pro</h4>
<p>Once you have purchased WP4FB Pro, install and activate it on your site. You will see that 3 additional menu options are added to your WordPress dashboard. The Main WP4FB one, and then two custom post types called WP4FB pages and WP4FB Slides. So lets get started with WP4FB Menu. Fill out all the general settings such as footer text, RSS url, Twitter etc.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbgeneral.gif" alt="WP4FB General" title="WP4FB General" width="520" height="300" class="alignnone size-full wp-image-4996" /></p>
<p>The next option is Facebook. If you go there, you will notice that it requires Facebook Application ID and Secret Key. So you need to go and get that. Register your own application in <a href="https://developers.facebook.com/apps" title="Facebook Developers" target="_blank" rel="nofollow">Facebook Developers area</a>. There are plenty of tutorials on the web of how to do it. When you buy WP4FB Pro, it comes with a series of video tutorials on how to do this. Therefore, I will not be covering how to register a facebook application in this article. (Use their video tutorial) or another tutorial on the web.</p>
<p>Once you have got your app ID and facebook secret key, insert it into WP4FB Facebook Settings.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbsettings.gif" alt="WP4FB Facebook Settings" title="WP4FB Facebook Settings" width="520" height="299" class="alignnone size-full wp-image-4997" /></p>
<p>You need to have the fan-gate checkbox checked. Then select the pre-like page. But because you just installed this page, you will not see any option there. So what you need to do is go to WP4FB Pages tab and click Add New.</p>
<p>Create a pre-like page. In our case for List25, we created a page called Giveaway. Did not add any content in the content box. We simply used a background image to get the style that we needed. But this was a shortcut way of doing things rather than spending time to create a custom template for WP4FB.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbprelikepage.gif" alt="WP4FB Pre Like Page" title="WP4FB Pre Like Page" width="520" height="524" class="alignnone size-full wp-image-4998" /></p>
<p>If you see, we have show navigation, and show page title set to NO. There is a defined header height because we are using our image as header background image. Our content is blank, so all the user really sees is the image.</p>
<p>Notice: That our image URL has https:// in it. The reason for that is so it works on Facebook.</p>
<p>You need to make sure that all Viral Features are turned OFF for the pre-like page. Once you have created the pre-like page publish it. Then go back to Facebook Menu under the main WP4FB settings and select this page.</p>
<p>Next you need to create a fan-only content page that has the details of how to enter the content. For this, we also used a background image to make things faster and easier for us. Except this time we used Content Background Image URL rather than Header Background Image URL. The reason for that was because we wanted to use HTML to initiate the Share Gate feature.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbfanonlypagesettings.gif" alt="WP4FB Fan Only Page Settings" title="WP4FB Fan Only Page Settings" width="520" height="514" class="alignnone size-full wp-image-5000" /></p>
<p>Again notice that the image url is HTTPS. You must do this.</p>
<p>As I explained that we used content image URL, so we can utilize HTML tags. Basically our image looked like this: </p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaigndetails.jpg" alt="List25 Amazon Giveaway Campaign Details" title="List25 Amazon Giveaway Campaign Details" width="520" height="620" class="alignnone size-full wp-image-4992" /></p>
<p>We needed to make the Click here to Share button clickable. So we added the following HTML tags in our content area using the HTML editor rather than the Visual Editor.</p>
<pre class="brush: php; title: ; notranslate">&lt;div style=&quot;min-height: 440px;&quot;&gt;
&lt;div style=&quot;width: 190px; margin: 308px 0 0 267px;&quot;&gt;&lt;a style=&quot;text-indent: -9999px; width: 190px; height: 28px; display: block;&quot; href=&quot;https://link to our third page/&quot;&gt;Click Here to Share&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<p>Your CSS will vary based on the background image that you use. But you get the general idea of what we are doing above right? Basically we want to make Click Here to Share button a link to our secret page where the user can access the form to enter the contest. </p>
<p>Lets go ahead and create our third and final page. We followed pretty much the same direction as the fan-only page above. We used the content background image URL, and used HTML in the content editor. The most important part about this page was that we enabled the Viral Feature Share Gate.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbentercontest.gif" alt="WP4FB Share Gate" title="WP4FB Share Gate" width="520" height="427" class="alignnone size-full wp-image-5001" /></p>
<p>Now notice that we filled out the Open Graph Settings as well. This is the information that will be shown to the user when they hit the share gate point.  See the image below:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbgiveawayshare.gif" alt="List25 Giveaway Share Popup" title="List25 Giveaway Share Popup" width="520" height="264" class="alignnone size-full wp-image-4993" /></p>
<p>So make sure that you put the right image, an accurate title and a compelling description.</p>
<p>The final page looked like this:</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbenterinfo.gif" alt="List25 Enter Giveaway" title="List25 Enter Giveaway" width="520" height="477" class="alignnone size-full wp-image-5002" /></p>
<p>So basically our background image had two empty fields. We went into MailChimp and grabbed a form code for a new <a href="http://www.wpbeginner.com/refer/aweber" style="" target="_blank" rel="nofollow" onmouseover="self.status='Aweber - Email Marketing Software';return true;" onmouseout="self.status=''">email list</a> that we created for List25. And added that into this last page&#8217;s content area with the styling.</p>
<p>Here is the code that we added (obviously your form code will be different, but this would be a good starting point):</p>
<pre class="brush: php; title: ; notranslate">&lt;div style=&quot;min-height: 440px;&quot;&gt;
&lt;div style=&quot;width: 190px; margin: 188px 0 0 280px;&quot;&gt;&lt;form id=&quot;mc-embedded-subscribe-form&quot; class=&quot;validate&quot; action=&quot;http://list25.us1.list-manage.com/subscribe/post?u=549b83cc29ff23c36e5796c38&amp;amp;id=184bf03dd3&quot; method=&quot;post&quot; name=&quot;mc-embedded-subscribe-form&quot; target=&quot;_blank&quot;&gt;
&lt;div style=&quot;margin: 0px 0 0;&quot;&gt;&lt;input id=&quot;mce-FNAME&quot; class=&quot;required&quot; style=&quot;background: transparent; border: 0px; box-shadow: none; width: 160px;&quot; onfocus=&quot;if (this.value == 'Name…') {this.value = '';}&quot; onblur=&quot;if (this.value == '') {this.value = 'Name…';}&quot; type=&quot;text&quot; name=&quot;FNAME&quot; value=&quot;Name…&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: -5px 0 0;&quot;&gt;&lt;input id=&quot;mce-EMAIL&quot; class=&quot;required&quot; style=&quot;background: transparent; border: 0px; box-shadow: none; width: 160px;&quot; onfocus=&quot;if (this.value == 'Enter your email…') {this.value = '';}&quot; onblur=&quot;if (this.value == '') {this.value = 'Enter your email…';}&quot; type=&quot;text&quot; name=&quot;EMAIL&quot; value=&quot;Enter your email…&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;clear&quot;&gt;&lt;input id=&quot;mc-embedded-subscribe&quot; class=&quot;button&quot; style=&quot;width: 185px; background: transparent; display: block; text-indent: -9999px; cursor: pointer; border: 0; margin: -8px 0 0 -10px; height: 25px;&quot; type=&quot;submit&quot; name=&quot;subscribe&quot; value=&quot;Enter the Giveaway&quot; /&gt;&lt;/div&gt;
&lt;/form&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<p>After you publish this page. Take the URL of this page and add it in the button of the fan-only page code that we shared above.</p>
<h4>Step 4: Promoting the Giveaway</h4>
<p>You can add the giveaway page, but no one will know about it. If you have an existing user base, then you can let them know about the giveaway. In our case, we did not have that. Following are the steps that we took:</p>
<p>- Added a sidebar banner on List25 and WPBeginner promoting the contest.<br />
- We are also running Facebook Ad Campaigns to promote the contest (additional money that we are spending but you don&#8217;t have to)<br />
- Shared it with our friends</p>
<p>The viral aspect of the giveaway carries on its own. Everybody wants free money.</p>
<h4>Results</h4>
<p>Need I say more that we have over 27,000 likes in one month. Ofcourse not all of them are from the contest because we are doing other campaigns as well. But it is fair to say that at least a third of these fans are from the giveaway.</p>
<p>How long did it take us to do this? I&#8217;d say roughly 4 &#8211; 5 hours. Was it worth it? Heck yes it was. </p>
<p>Will you be doing this on your site? Let us know your thoughts.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/">Boost Your Likes by Creating a Facebook Giveaway Using 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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/boost-your-likes-by-creating-a-facebook-giveaway-using-wordpress/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaign-150x150.jpg" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaign.jpg" medium="image">
			<media:title type="html">List25 Amazon Campaign</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaign-150x150.jpg" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaigndetails.jpg" medium="image">
			<media:title type="html">List25 Amazon Giveaway Campaign Details</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaigndetails-150x150.jpg" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbgiveawayshare.gif" medium="image">
			<media:title type="html">List25 Giveaway Share Popup</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbgiveawayshare-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wphttps.gif" medium="image">
			<media:title type="html">WordPress HTTPs</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wphttps-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbgeneral.gif" medium="image">
			<media:title type="html">WP4FB General</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbgeneral-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbsettings.gif" medium="image">
			<media:title type="html">WP4FB Facebook Settings</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbsettings-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbprelikepage.gif" medium="image">
			<media:title type="html">WP4FB Pre Like Page</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbprelikepage-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbfanonlypagesettings.gif" medium="image">
			<media:title type="html">WP4FB Fan Only Page Settings</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbfanonlypagesettings-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaigndetails.jpg" medium="image">
			<media:title type="html">List25 Amazon Giveaway Campaign Details</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/amazoncampaigndetails-150x150.jpg" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbentercontest.gif" medium="image">
			<media:title type="html">WP4FB Share Gate</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/wp4fbentercontest-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbgiveawayshare.gif" medium="image">
			<media:title type="html">List25 Giveaway Share Popup</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbgiveawayshare-150x150.gif" />
		</media:content>
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbenterinfo.gif" medium="image">
			<media:title type="html">List25 Enter Giveaway</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/12/list25fbenterinfo-150x150.gif" />
		</media:content>
	</item>
		<item>
		<title>How to Change the Howdy Text in WordPress 3.3 Admin Bar</title>
		<link>http://www.wpbeginner.com/wp-tutorials/how-to-change-the-howdy-text-in-wordpress-3-3-admin-bar/</link>
		<comments>http://www.wpbeginner.com/wp-tutorials/how-to-change-the-howdy-text-in-wordpress-3-3-admin-bar/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 15:38:06 +0000</pubDate>
		<dc:creator>Editorial Staff</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to change the howdy text in wordpress admin bar]]></category>
		<category><![CDATA[modifying wordpress admin bar]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=4903</guid>
		<description><![CDATA[<p>Have you ever worked with a client where you are trying to customize the WordPress back-end experience for them? Maybe you added a custom dashboard widget, removed menu items, or even created custom write panels. Well Greg Kerstin (@graphicagenda) was working on a project where he wanted to modify the howdy text in the WordPress admin bar. Normally it says Howdy, Username. He was kind enough to submit a snippet to us in which he shows how to change the...</p><p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-change-the-howdy-text-in-wordpress-3-3-admin-bar/">How to Change the Howdy Text in WordPress 3.3 Admin Bar</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>]]></description>
			<content:encoded><![CDATA[<p>Have you ever worked with a client where you are trying to customize the WordPress back-end experience for them? Maybe you added a <a href="http://www.wpbeginner.com/wp-themes/how-to-add-custom-dashboard-widgets-in-wordpress/" title="How to Add Custom Dashboard Widgets in WordPress">custom dashboard widget</a>, <a href="http://www.wpbeginner.com/wp-tutorials/how-to-remove-menu-item-in-wordpress-admin-panel/" title="How to Remove Menu Items in WordPress">removed menu items</a>, or even created <a href="http://www.wpbeginner.com/plugins/how-to-create-custom-write-panels-in-wordpress-with-more-fields-plugin/" title="Custom Write Panels in WordPress with More Fields">custom write panels</a>. Well Greg Kerstin (@graphicagenda) was working on a project where he wanted to modify the howdy text in the WordPress admin bar. Normally it says Howdy, Username.  He was kind enough to submit a snippet to us in which he shows how to change the howdy text and replace it with Welcome.</p>
<p><img src="http://cdn.wpbeginner.com/wp-content/uploads/2011/11/changehowdytowelcome.gif" alt="Change Howdy to Welcome" title="Change Howdy to Welcome" width="520" height="74" class="alignnone size-full wp-image-4904" /></p>
<p>All you have to do is paste the following code in your theme&#8217;s functions.php file, or create a site plugin.</p>
<pre class="brush: php; title: ; notranslate">
add_action( 'admin_bar_menu', 'wp_admin_bar_my_custom_account_menu', 11 );

function wp_admin_bar_my_custom_account_menu( $wp_admin_bar ) {
$user_id = get_current_user_id();
$current_user = wp_get_current_user();
$profile_url = get_edit_profile_url( $user_id );

if ( 0 != $user_id ) {
/* Add the &quot;My Account&quot; menu */
$avatar = get_avatar( $user_id, 28 );
$howdy = sprintf( __('Welcome, %1$s'), $current_user-&gt;display_name );
$class = empty( $avatar ) ? '' : 'with-avatar';

$wp_admin_bar-&gt;add_menu( array(
'id' =&gt; 'my-account',
'parent' =&gt; 'top-secondary',
'title' =&gt; $howdy . $avatar,
'href' =&gt; $profile_url,
'meta' =&gt; array(
'class' =&gt; $class,
),
) );

}
}
</pre>
<p>And you are done.</p>
<p><a href="http://www.wpbeginner.com/wp-tutorials/how-to-change-the-howdy-text-in-wordpress-3-3-admin-bar/">How to Change the Howdy Text in WordPress 3.3 Admin Bar</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>]]></content:encoded>
			<wfw:commentRss>http://www.wpbeginner.com/wp-tutorials/how-to-change-the-howdy-text-in-wordpress-3-3-admin-bar/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/11/changehowdytowelcome-150x74.gif" />
		<media:content url="http://cdn.wpbeginner.com/wp-content/uploads/2011/11/changehowdytowelcome.gif" medium="image">
			<media:title type="html">Change Howdy to Welcome</media:title>
			<media:thumbnail url="http://cdn.wpbeginner.com/wp-content/uploads/2011/11/changehowdytowelcome-150x74.gif" />
		</media:content>
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Content Delivery Network via cdn.wpbeginner.com

Served from: www.wpbeginner.com @ 2012-02-08 18:28:54 -->
