

<?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>Get into the culture! &#187; Tutorials</title>
	<atom:link href="http://wpvibe.com/wordpress-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpvibe.com</link>
	<description>Just another EMV Network Site site</description>
	<lastBuildDate>Sun, 26 Feb 2012 22:21:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Using FeedBurner with Your WordPress Feed</title>
		<link>http://wpvibe.com/feedburner-wordpress-feed-379/</link>
		<comments>http://wpvibe.com/feedburner-wordpress-feed-379/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 14:55:42 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=379</guid>
		<description><![CDATA[This tutorial will walk you through adding your WordPress feed to your FeedBurner account. First though, what is FeedBurner? FeedBurner is a feed analysis tool, which was acquired back in 2007 by Google. The way it works is by redirecting your existing /feed/ to their URL, which can analyze who is consuming your feed. Let&#8217;s ...]]></description>
			<content:encoded><![CDATA[<p>This tutorial will walk you through adding your WordPress feed to your FeedBurner account.</p>
<p>First though, what is FeedBurner?  FeedBurner is a feed analysis tool, which was acquired back in 2007 by Google.  The way it works is by redirecting your existing /feed/ to their URL, which can analyze who is consuming your feed.  Let&#8217;s dive into how to do it.</p>
<h3>Step 1 &#8211; Login to FeedBurner.com</h3>
<p>Login to <a href="http://www.feedburner.com">FeedBurner.com</a> (<strong>note</strong>: you will need a Google account to do this)</p>
<h3>Step 2 &#8211; Burn Your Feed</h3>
<p>Find the input box with the label &#8220;Burn your feed right this instant.&#8221;  Enter your domain and add /feed/ to the end of it.  For example, http://wpvibe.com/feed/ &#8212; this would be our URL.  Yours will be different.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/burn-that-feed.jpg" alt="" width="524" height="96" class="size-full wp-image-381" /></p>
<h3>Step 3 &#8211; Set Title and Address</h3>
<p>You need to set the title and address for your feed.  For ours, we used WordPress Vibe as the title, and WPVibe as the address.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/feedburner-title-settings.jpg" alt="" width="532" height="286" class="size-full wp-image-383" /></p>
<h3>Step 4 &#8211;  Other Settings</h3>
<p>I recommend selecting &#8220;Clickthroughs&#8221; and &#8220;I want more!&#8221; so you get full analysis of your feeds.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/feedburner-options.jpg" alt="" width="529" height="389" class="size-full wp-image-380" /></p>
<h3>Step 5 &#8211; Install the FeedBurner Plugin</h3>
<p>Let&#8217;s head back to your wp-admin dashboard now.  You need to go to Plugins &raquo; Add New.  Search for &#8220;<a href="http://wordpress.org/extend/plugins/feedburner-plugin/">FD Feedburner plugin</a>&#8221; and install it and activate, as such below.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/install-wordpress-feedburner-plugin.jpg" alt="" width="630" height="151" class="size-full wp-image-384" /></p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/install-feedburner-plugin.jpg" alt="" width="630" height="161" class="size-full wp-image-382" /></p>
<h3>Step 6 &#8211; WordPress Settings</h3>
<p>The last step is to input the correct settings for WordPress.  </p>
<p>Go to Plugins &raquo; Feedburner Configuration</p>
<p>You will need to enter your FeedBurner URL.  Ours looks like this: http://feeds.feedburner.com/wpvibe (<strong>note</strong>: you can go to feedburner.com, then select your feed, then go to &#8220;Edit Feed Details&#8221; to view the exact URL you need)</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/feedburner-wordpress-settings.jpg" alt="" width="482" height="340" class="size-full wp-image-385" /></p>
<h3>Step 7 &#8211; Sit back and relax <img src='http://wpvibe.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </h3>
<p>That&#8217;s it!  Your feed should now be redirecting and FeedBurner will analyze who&#8217;s consuming your feed.  You can go back and check another day to see how many subscribers you have and where they are consuming your feed from.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/feedburner-wordpress-feed-379/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Sample Data to Test WordPress Themes</title>
		<link>http://wpvibe.com/sample-data-test-wordpress-themes-359/</link>
		<comments>http://wpvibe.com/sample-data-test-wordpress-themes-359/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 19:02:43 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=359</guid>
		<description><![CDATA[So you want to install sample data into your WordPress installation? There&#8217;s an XML file that helps you do that. http://svn.automattic.com/wpcom-themes/demo/test-data.2011-01-17.xml What does this data do for me? This data will provide you all the un-ordered lists, the blockquotes, the ordered lists, the small fonts, the bigger fonts, your h1, h2, h3, h4, images, and ...]]></description>
			<content:encoded><![CDATA[<p>So you want to install sample data into your WordPress installation?</p>
<p>There&#8217;s an XML file that helps you do that.</p>
<p><a href="http://svn.automattic.com/wpcom-themes/demo/test-data.2011-01-17.xml">http://svn.automattic.com/wpcom-themes/demo/test-data.2011-01-17.xml</a></p>
<h2>What does this data do for me?</h2>
<p>This data will provide you all the un-ordered lists, the blockquotes, the ordered lists, the small fonts, the bigger fonts, your h1, h2, h3, h4, images, and everything in between that.</p>
<p>It will help you thoroughly test out your theme so it&#8217;s ready and compatible for production, or to be distributed if you&#8217;re planning on selling it or giving it away for free.</p>
<h2>How do I use this data?</h2>
<p>First, go to Tools &raquo; Import, then WordPress.  You will likely have to install the plugin to import content, so do that.</p>
<p>Next, go back to Tools &raquo; Import, then WordPress, then you will be able to select a file.  Find where you saved that file to, and select it.</p>
<p>You will now have a WordPress installation with dummy data which you can easily test against.  This will save you a lot of time instead of trying to create all the data yourself.</p>
<h2>Other Resources</h2>
<ul>
<li>WordPress Codex, Theme Unit Test &#8211; <a href="http://codex.wordpress.org/Theme_Unit_Test">http://codex.wordpress.org/Theme_Unit_Test</a></li>
<li>WordPress Automated Testing &#8211; <a href="http://unit-tests.trac.wordpress.org/browser">http://unit-tests.trac.wordpress.org/browser</a></li>
<li>WordPress Tests &#8211; <a href="http://svn.automattic.com/wordpress-tests">http://svn.automattic.com/wordpress-tests/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/sample-data-test-wordpress-themes-359/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to Use the WP.me URL Shortener</title>
		<link>http://wpvibe.com/shortlinks-with-wpme-356/</link>
		<comments>http://wpvibe.com/shortlinks-with-wpme-356/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 15:52:01 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=356</guid>
		<description><![CDATA[Do you want to use the WP.me URL shortener, provided by WordPress.com? Easy to do. Install the WordPress.com Stats plugin, and the rest is magic. You&#8217;ll instantly be given the option to insert the wp.me shortlink into your posts. You will also be be able to use the &#8220;get shortlink&#8221; button on the post screen, ...]]></description>
			<content:encoded><![CDATA[<p>Do you want to use the WP.me URL shortener, provided by WordPress.com?</p>
<p>Easy to do.</p>
<p><a href="http://wpvibe.com/add-wordpress-stats-353/">Install the WordPress.com Stats plugin</a>, and the rest is magic.</p>
<p>You&#8217;ll instantly be given the option to insert the wp.me shortlink into your posts.  You will also be be able to use the &#8220;get shortlink&#8221; button on the post screen, so it&#8217;s easy to access.</p>
<p>You should note though, that if you have any other URL shortening services plugins enabled, they may conflict with each other.</p>
<p>We use the &#8220;Twitter Friendly Links&#8221; plugin here on WPVibe, so you should be careful about what you have enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/shortlinks-with-wpme-356/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to Add WordPress.com Stats to your Site</title>
		<link>http://wpvibe.com/add-wordpress-stats-353/</link>
		<comments>http://wpvibe.com/add-wordpress-stats-353/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 18:53:56 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=353</guid>
		<description><![CDATA[Want to add simple stats to your blog? Automattic, the company behind WordPress.com, has a plugin called WordPress Stats. This plugin is simple and lets your track your visitors. It&#8217;s simple to install, does the job, and doesn&#8217;t add too much overhead when loading the page. Let&#8217;s dive in. First, go to Add New under ...]]></description>
			<content:encoded><![CDATA[<p>Want to add simple stats to your blog?</p>
<p>Automattic, the company behind WordPress.com, has a plugin called WordPress Stats.  This plugin is simple and lets your track your visitors.</p>
<p>It&#8217;s simple to install, does the job, and doesn&#8217;t add too much overhead when loading the page.</p>
<p>Let&#8217;s dive in.</p>
<p><strong>First</strong>, go to Add New under Plugins, and search for &#8220;stats&#8221; (no quotes).  The first result you should see is WordPress.com Stats.  This is the plugin you want.</p>
<p><strong>Install</strong> it and <strong>activate</strong> it.</p>
<p><strong>Next</strong>, you will need to input your <a href="http://wpvibe.com/get-your-personal-akismet-api-key-207/">WordPress.com API Key</a>.  This is the same as your <a href="http://wpvibe.com/get-your-personal-akismet-api-key-207/">Akismet API Key</a>.</p>
<p>You will then be prompted with some options.  Since you already have a WordPress.com account, you should <strong>link it to your account</strong> so stats can be tracked.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/wordpress-stats.png" alt="" width="630" height="265" class="aligncenter size-full wp-image-354" /></p>
<p><strong>Done</strong>!</p>
<p>This will also offer you the ability to shorten your post URLs using the wp.me shortening service, provided by WordPress.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/add-wordpress-stats-353/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Remove the Admin Bar in WordPress</title>
		<link>http://wpvibe.com/remove-admin-bar-in-wordpress-339/</link>
		<comments>http://wpvibe.com/remove-admin-bar-in-wordpress-339/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 14:36:27 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Code Hacks]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=339</guid>
		<description><![CDATA[So what do you think of the new &#8220;admin bar&#8221; in the upcoming release of WordPress 3.1? Haven&#8217;t had a chance to play with it yet? You will soon. If you do like it, then go ahead and keep it. But for those that don&#8217;t want to keep it, we can thank Joost for posting ...]]></description>
			<content:encoded><![CDATA[<p>So what do you think of the new &#8220;admin bar&#8221; in the upcoming release of WordPress 3.1?  Haven&#8217;t had a chance to play with it yet?  You will soon.  If you do like it, then go ahead and keep it.  But for those that don&#8217;t want to keep it, we can thank <a href="http://yoast.com/disable-wp-admin-bar/">Joost</a> for posting this code snippet to remove the admin bar.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/wordpress-admin-bar.png" alt="" width="630" height="24" class="aligncenter size-full wp-image-340" /></p>
<p>Add this code to your functions.php file is you want to remove the admin bar from WordPress:</p>
<p>[sourcecode]/* Disable the Admin Bar. */<br />
add_filter( &#8216;show_admin_bar&#8217;, &#8216;__return_false&#8217; );</p>
<p>/* Remove the Admin Bar preference in user profile */<br />
remove_action( &#8216;personal_options&#8217;, &#8216;_admin_bar_preferences&#8217; );[/sourcecode]</p>
<p>Want to disable it for specific requests?  Done.  Use this code:</p>
<p>[sourcecode]if ( isset($_GET['bar']) &amp;&amp; &#8216;no&#8217; == $_GET['bar'] )<br />
   add_filter( &#8216;show_admin_bar&#8217;, &#8216;__return_false&#8217; );[/sourcecode]</p>
<p>I&#8217;m not a fan of it yet, but it might grow on me once we upgrade to WordPress 3.1.  I&#8217;m still just using WordPress 3.0 on all my sites and 3.1 only on my development sites.</p>
<p>Keep it or leave it?  What do you think?</p>
<p><strong>Update</strong>: With the release of WordPress 3.1 yesterday, there is also a way to remove it for just you.  Go to Users &gt; Profile and then uncheck these two check boxes, as shown below.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/no-admin-bar-profile.jpg" alt="" width="600" height="326" class="aligncenter size-full wp-image-422" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/remove-admin-bar-in-wordpress-339/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change the WordPress Logo on the Login Screen</title>
		<link>http://wpvibe.com/change-wordpress-logo-login-screen-342/</link>
		<comments>http://wpvibe.com/change-wordpress-logo-login-screen-342/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 19:08:28 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Code Hacks]]></category>
		<category><![CDATA[Login]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=342</guid>
		<description><![CDATA[Here&#8217;s an easy tutorial on really making WordPress your own. It&#8217;s a simple quick and dirty function to update the WordPress logo/image on the wp-login.php page, to your own. [sourcecode]function wpvibe_login_logo() { echo &#8216;&#60;style&#62;.login { background-image: url(/your_top_header_background_gradient_here.png); background-repeat:repeat-x; } #login h1 a { background: url(/your_custom_logo_goes_here.png) top no-repeat; width:500px; margin-left:-90px; margin-top:-73px; }&#60;/style&#62;&#8217;; } add_action(&#8216;login_head&#8217;,'wpvibe_login_logo&#8217;);[/sourcecode] The above ...]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an easy tutorial on really making WordPress your own.</p>
<p>It&#8217;s a simple quick and dirty function to update the WordPress logo/image on the wp-login.php page, to your own.</p>
<p>[sourcecode]function wpvibe_login_logo() {<br />
echo &#8216;&lt;style&gt;.login {<br />
	background-image: url(/your_top_header_background_gradient_here.png);<br />
	background-repeat:repeat-x;  }<br />
#login h1 a {<br />
	background: url(/your_custom_logo_goes_here.png) top no-repeat;<br />
	width:500px;<br />
	margin-left:-90px;<br />
	margin-top:-73px;<br />
}&lt;/style&gt;&#8217;;<br />
}<br />
add_action(&#8216;login_head&#8217;,'wpvibe_login_logo&#8217;);[/sourcecode]</p>
<p>The above is just an example of what you could use if you say, wanted to make it wider than it already was, or wanted to move the logo up and to the left.  You can customize this to your exact needs, this is just to get you the idea.</p>
<p>There are plenty of IDs and classes available you can hook into, to design your own custom login screen &#8212; and you don&#8217;t need a plugin for it either.</p>
<p>You can create some really cool login pages, here are some examples.</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/wordpress-custom-login-screen_1.jpg" alt="" class="aligncenter size-full" /></p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/wordpress-custom-login-screen_2.jpg" alt="" class="aligncenter size-full" /></p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/wordpress-custom-login-screen_3.jpg" alt="" class="aligncenter size-full" /></p>
<p><img src="http://wpvibe.com/wp-content/uploads/2011/01/wordpress-custom-login-screen_4.jpg" alt="" class="aligncenter size-full" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/change-wordpress-logo-login-screen-342/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to Exclude Categories from your RSS Feed</title>
		<link>http://wpvibe.com/how-to-exclude-categories-from-your-rss-feed-338/</link>
		<comments>http://wpvibe.com/how-to-exclude-categories-from-your-rss-feed-338/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 14:53:39 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Code Hacks]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=338</guid>
		<description><![CDATA[There&#8217;s often a case where you want to exclude a specific category or multiple categories from your RSS feed. This way you can publish posts and if you don&#8217;t want them to go to your RSS subscribers, they won&#8217;t. First, here&#8217;s how you exclude a category from your RSS feed. [sourcecode]add_action(&#8216;pre_get_posts&#8217;,'wpv_remove_cat&#8217;); function wpv_remove_cat() { if ...]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s often a case where you want to exclude a specific category or multiple categories from your RSS feed.  This way you can publish posts and if you don&#8217;t want them to go to your RSS subscribers, they won&#8217;t.</p>
<p>First, here&#8217;s how you exclude a category from your RSS feed.</p>
<p>[sourcecode]add_action(&#8216;pre_get_posts&#8217;,'wpv_remove_cat&#8217;);<br />
function wpv_remove_cat() {<br />
if ( $query-&gt;is_feed ) // if you&#8217;re accessing the RSS feed<br />
$query-&gt;set(&#8216;cat&#8217;,'-5&#8242;); // the ID should be whatever category you want to exclude<br />
}[/sourcecode]</p>
<p>Here&#8217;s a slight variation if you want to exclude a category based on the category name, rather than just the ID.</p>
<p>[sourcecode]add_action(&#8216;pre_get_posts&#8217;,'wpv_remove_cat&#8217;);<br />
function wpv_remove_cat() {<br />
$wpvMyCat = get_term_by(&#8216;name&#8217;, &#8216;My Vibe Category&#8217;, &#8216;category&#8217;)-&gt;term_id;<br />
if ( $query-&gt;is_feed ) // if you&#8217;re accessing the RSS feed<br />
$query-&gt;set(&#8216;cat&#8217;,'-&#8217;.$wpvMyCat); // the ID should the category you want to exclude<br />
}[/sourcecode]</p>
<p>If you have an environment where the category IDs may differ or for whatever reason they&#8217;re changing often, this is a great way to be consistent across the platforms.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/how-to-exclude-categories-from-your-rss-feed-338/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Remove the Uppercase P in WordPress</title>
		<link>http://wpvibe.com/remove-uppercase-p-wordpress-333/</link>
		<comments>http://wpvibe.com/remove-uppercase-p-wordpress-333/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 18:27:11 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=333</guid>
		<description><![CDATA[In the last major release of WordPress, WordPress 3.0, a new function was slipped into the core. capital_p_dangit(). Most people don&#8217;t even think about how to spell WordPress, at least most of my non-techie friends don&#8217;t even think about it. They&#8217;ll spell it Word&#112;ress or wordpress usually, but in fact, it&#8217;s actually WordPress. This small ...]]></description>
			<content:encoded><![CDATA[<p>In the last major release of WordPress, WordPress 3.0, a new function was <a href="http://core.trac.wordpress.org/ticket/14043">slipped</a> into the core.  capital_p_dangit().</p>
<p>Most people don&#8217;t even think about how to spell WordPress, at least most of my non-techie friends don&#8217;t even think about it.  They&#8217;ll spell it Word&#112;ress or wordpress usually, but in fact, it&#8217;s actually WordPress.</p>
<p>This small function will actually change how you spell WordPress so it uses a capital P in Press.</p>
<p>I&#8217;m not a huge fan of people telling me what to do when I&#8217;m writing, so for WordPress to automatically change how I spell WordPress isn&#8217;t always a great thought &#8211; despite knowing that I always spell it like WordPress anyway.</p>
<p>Is it a branding overkill?</p>
<p>[tweeted]http://twitter.com/pingdom/statuses/23404539314966528[/tweeted]</p>
<p>That&#8217;s up to you to decide.</p>
<p>Do you want to stop WordPress from capitalizing your P&#8217;s for you?  Here&#8217;s how.  Add this code to your functions.php file:</p>
<p>[sourcecode]remove_filter( &#8216;the_content&#8217;, &#8216;capital_P_dangit&#8217; );<br />
remove_filter( &#8216;the_title&#8217;, &#8216;capital_P_dangit&#8217; );<br />
remove_filter( &#8216;comment_text&#8217;, &#8216;capital_P_dangit&#8217; );<br />
[/sourcecode] </p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/remove-uppercase-p-wordpress-333/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using Facebook&#8217;s &#8220;Like&#8221; Plugin with WordPress</title>
		<link>http://wpvibe.com/facebook-like-plugin-wordpress-269/</link>
		<comments>http://wpvibe.com/facebook-like-plugin-wordpress-269/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 18:22:26 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=269</guid>
		<description><![CDATA[Facebook just announced that they are launching the &#8220;like&#8221; plugin for any page around the web. There&#8217;s an easy solution to utilize this on your site: Generate your own code here, which will look something like this: &#060;iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevelopers.facebook.com%2F&#38;layout=standard&#38;show-faces=true&#38;width=450&#38;action=recommend&#38;font=verdana&#38;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"&#062;&#060;/iframe&#062; The portion where it has href= and then shows ...]]></description>
			<content:encoded><![CDATA[<p>Facebook just announced that they are launching the &#8220;like&#8221; plugin for any page around the web.<span id="more-269"></span></p>
<p>There&#8217;s an easy solution to utilize this on your site:</p>
<p><a href="http://developers.facebook.com/docs/reference/plugins/like">Generate your own code here</a>, which will look something like this:</p>
<pre>&#060;iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevelopers.facebook.com%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=recommend&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"&#062;&#060;/iframe&#062;</pre>
<p>The portion where it has href= and then shows the URL, that part is where you need to edit particular to WordPress.</p>
<p>To achieve this for WordPress, do this for the href=:</p>
<pre>&#060;?php echo urlencode(get_permalink()); ?&#062;</pre>
<p>So it will look something like this&#8230;</p>
<pre>.../like.php?href=&#060;?php echo urlencode(get_permalink()); ?&#062;&amp;amp...</pre>
<p>This will ensure that your link is URL encoded properly and you can share that page with your visitors.</p>
<p>Any questions, please leave them in the comments.</p>
<p>Enjoy!</p>
<p>&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=recommend&amp;font=verdana&amp;colorscheme=light&#8221; scrolling=&#8221;no&#8221; frameborder=&#8221;0&#8243; allowTransparency=&#8221;true&#8221; style=&#8221;border:none; overflow:hidden; width:450px; height:25px&#8221;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/facebook-like-plugin-wordpress-269/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>HOWTO: Thumbnails for Categories</title>
		<link>http://wpvibe.com/thumbnails-for-categories-180/</link>
		<comments>http://wpvibe.com/thumbnails-for-categories-180/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 22:49:51 +0000</pubDate>
		<dc:creator>Jonathan Dingman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://wpvibe.com/?p=180</guid>
		<description><![CDATA[Customizing a post with a fresh and unique thumbnail is a nice touch as it adds just a bit more personality to the post, rather than having the same ole&#8217; images or not having images at all. Here on WordPress Vibe, we have thumbnails for each post, which both Dre and I really like (and ...]]></description>
			<content:encoded><![CDATA[<p>Customizing a post with a fresh and unique thumbnail is a nice touch as it adds just a bit more personality to the post, rather than having the same ole&#8217; images or not having images at all.  Here on WordPress Vibe, we have thumbnails for each post, which both Dre and I really like (and we hope you like them too <img src='http://wpvibe.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  Here&#8217;s a short tutorial on how to achieve similar results.</p>
<p>First, you need to decide what resolution you want your thumbnails to be.  For this tutorial, we will be using what we use here on WP Vibe, which is 150px by 150px.</p>
<h3>Step 1:  Create Your Custom Thumbnail Image</h3>
<p>What we do here is we build a separate image that is 150&#215;150 and upload to the specific post.  Then we grab the link URL of the thumbnail image you just uploaded and copy it.</p>
<p>Then close out of that box and head back to the post.  We have a custom field called &#8220;thumb&#8221; which we use, but you can use whatever value you want.</p>
<p>Paste that link into the custom field as the value, such as below:</p>
<p><img src="http://wpvibe.com/wp-content/uploads/2009/12/wordpress-custom-field.jpg" alt="" width="630" height="64" class="aligncenter size-full wp-image-181" /></p>
<p>Next, the actual code to make the magic work.</p>
<h3>Step 2: Integrate the Code</h3>
<p>First, we check to see if the user has input anything into the &#8220;thumb&#8221; custom field for the post, which would be pointing to the thumbnail image.</p>
<p>[sourcecode lang="php"]&lt;?php<br />
$thumb = get_post_meta($post-&gt;ID, &quot;thumb&quot;, true);<br />
if ($thumb != &quot;&quot;) { ?&gt;<br />
	&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot; rel=&quot;nofollow&quot;&gt;<br />
	&lt;img src=&quot;&lt;?php $values = get_post_custom_values(&quot;thumb&quot;); echo $values[0]; ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; class=&quot;alignleft&quot; /&gt;&lt;/a&gt;<br />
&lt;?php<br />
the_excerpt();<br />
?&gt;[/sourcecode]</p>
<p>Second, if the &#8220;thumb&#8221; field is empty, we run a loop to go through a specified folder of images for our categories.</p>
<p>[sourcecode lang="php"]&lt;?php<br />
$newthumb = &quot;news.png&quot;;<br />
$category = get_the_category();<br />
$catid = $category[0]-&gt;category_nicename;<br />
$okCats = array( &#8216;news&#8217;, &#8216;interviews&#8217;, &#8216;resources&#8217;, &#8216;reviews&#8217; ); //Maybe even filter this so it can be extended<br />
if ( in_array($catid, $okCats) ) {<br />
	$newthumb = strtolower($catid) . &#8216;.png&#8217;;<br />
}<br />
?&gt;[/sourcecode]</p>
<p>The first bit of code, $newthumb = &#8220;news.png&#8221;; is to set a default thumbnail, in case you have a category that doesn&#8217;t have a specific thumbnail.  Next, we grab the current category for the post.  Next, we naturalize the name so it&#8217;s all lowercase and easy for the server to process.</p>
<p>Next, we build the array of categories that we have.  For us, we have &#8220;news&#8221;, &#8220;interviews&#8221;, &#8220;resources&#8221;, etc etc.</p>
<p>We have images made for each category so that it knows what to display for that category.</p>
<p>If an image doesn&#8217;t exist for one of the categories, it will go bac and use the default news.png which we previously specified.  Now, to actually use the thumbnail link which was just built.</p>
<h3>Step 3: Building the Thumbnail Link</h3>
<p>Here is the PHP code which actually displays the image now for each category.</p>
<p>[sourcecode lang="php"]	&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot; rel=&quot;nofollow&quot;&gt;<br />
	&lt;img src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/images/thumbs/&lt;?php echo $newthumb; ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; class=&quot;alignleft&quot; /&gt;&lt;/a&gt;[/sourcecode]</p>
<p>All the Code Together<br />
Here is what everything looks like together.</p>
<p>[sourcecode lang="php"]&lt;?php<br />
$thumb = get_post_meta($post-&gt;ID, &quot;thumb&quot;, true);</p>
<p>if ($thumb != &quot;&quot;) { ?&gt;</p>
<p>	&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot; rel=&quot;nofollow&quot;&gt;<br />
	&lt;img src=&quot;&lt;?php $values = get_post_custom_values(&quot;thumb&quot;); echo $values[0]; ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; class=&quot;alignleft&quot; /&gt;&lt;/a&gt;<br />
&lt;?php<br />
the_excerpt();<br />
} else {<br />
$newthumb = &quot;news.png&quot;;<br />
$category = get_the_category();<br />
$catid = $category[0]-&gt;category_nicename;<br />
$okCats = array( &#8216;news&#8217;, &#8216;interviews&#8217;, &#8216;resources&#8217;, &#8216;reviews&#8217; ); //Maybe even filter this so it can be extended<br />
if ( in_array($catid, $okCats) ) {<br />
	$newthumb = strtolower($catid) . &#8216;.png&#8217;;<br />
}</p>
<p>?&gt;<br />
	&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot; rel=&quot;nofollow&quot;&gt;<br />
	&lt;img src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/images/thumbs/&lt;?php echo $newthumb; ?&gt;&quot; alt=&quot;&lt;?php the_title(); ?&gt;&quot; class=&quot;alignleft&quot; /&gt;&lt;/a&gt;<br />
&lt;?php the_excerpt(); } ?&gt;[/sourcecode]<br />
<strong><br />
In the end, you have a way of ensuring you always have a thumbnail appropriate to the post category, and the option to customize per post</strong></p>
<p>Any comments or suggestions, please feel free to leave them in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpvibe.com/thumbnails-for-categories-180/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

