<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress Hacks &#187; WordPress Thumbnails</title>
	<atom:link href="http://wphacks.com/tag/wordpress-thumbnails/feed/" rel="self" type="application/rss+xml" />
	<link>http://wphacks.com</link>
	<description>WordPress Themes, Plugins, Hacks, Tutorials, and more!</description>
	<lastBuildDate>Thu, 02 Feb 2012 15:20:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to: Using Thumbnails in your Sidebar &#8220;Recent Post&#8221; Listing</title>
		<link>http://wphacks.com/how-to-using-thumbnails-in-your-sidebar-recent-post-listing/</link>
		<comments>http://wphacks.com/how-to-using-thumbnails-in-your-sidebar-recent-post-listing/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 08:00:07 +0000</pubDate>
		<dc:creator>Jean-Baptiste Jung</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[WordPress How-To]]></category>
		<category><![CDATA[WordPress Recent Posts]]></category>
		<category><![CDATA[WordPress Thumbnails]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://wphacks.com/?p=1450</guid>
		<description><![CDATA[On the WP Recipes forum, a guy just asked me how I managed to insert thumbnails on the recent post widget located on the sidebar of my blog Cats Who Code. That&#8217;s a lot simpler than it seems. If you&#8217;d like to see a live demo of this tutorial, just click here. 1) &#8211; Make [...]]]></description>
			<content:encoded><![CDATA[<p>On the <a href="http://www.wprecipes.com">WP Recipes</a> forum, a guy just asked me how I managed to insert thumbnails on the recent post widget located on the sidebar of my blog <a href="http://www.catswhocode.com">Cats Who Code</a>. That&#8217;s a lot simpler than it seems.</p>
<p>If you&#8217;d like to see a live demo of this tutorial, just <a href="http://www.catswhocode.com">click here</a>.</p>
<p><strong>1) &#8211; Make sure you&#8217;re using a custom field in your posts, with the thumbnail url. </strong></p>
<p>There&#8217;s a lot of tutorials available online to add a custom field to your pots. <a href="http://wordpressgarage.com/tips/giving-each-wordpress-post-a-thumbnail-and-display-the-thumbnail-on-the-home-page/">This one</a> is good in my opinion, so you should read it if you don&#8217;t know how to define a custom field.</p>
<p><strong>2) &#8211; Download the required plugins</strong></p>
<p>In order to customize your recent posts widget, you have to download the <a href="http://rmarsh.com/plugins/recent-posts/">Recent Posts plugin</a> by Sebastian Schmieg.</p>
<p>You&#8217;ll also need to download and install the <a href="http://downloads.wordpress.org/plugin/post-plugin-library.zip">Post-Plugin Library</a>, which contains all the php functions needed by the Recent Posts plugin.</p>
<p><strong>3) &#8211; Upload and activate the plugins</strong></p>
<p>Once you downloaded the plugin and the library, unzip the files and upload it to your wp-content/plugins directory. Then, login to your WordPress dashboard, Go to &#8220;Plugins&#8221; and activate both the library and the Recent Posts plugin.</p>
<p><strong>4) &#8211; Configure the plugin</strong></p>
<p>After having the plugin and the library uploaded and activated, you have to configure the options so you&#8217;ll be able to display the post thumbnail on your sidebar.</p>
<p>To do so, login to your WordPress dashboard and navigate to &#8220;Settings&#8221;, &#8220;Recent Posts&#8221;.<br />
On &#8220;General&#8221;, you can tell the plugin how many posts to be displayed, if it should display posts and pages or only posts, and a lot more.</p>
<p>Once you configured the &#8220;General&#8221; options to fits your needs, go to the &#8220;Output&#8221; options. In order to display your custom field thumbnail on your sidebar, you have to enter a bit of html as well as the special parameter to embed the custom field.</p>
<p>Here&#8217;s the code that I entered:</p>
<pre>&lt;li&gt;&lt;img src="{custom:Image}" width="48" height="48" alt="" /&gt;{link}
&lt;div class="clear"&gt;&lt;/div&gt;
&lt;/li&gt;</pre>
<p>The special parameter <em>{custom:Image}</em> tells the plugin to embed the <em>Image</em> custom field. Don&#8217;t forget to replace <em>Image</em> with the name of your custom field!</p>
<p><strong>5) &#8211; Add the widget to your sidebar</strong></p>
<p>Simply go to &#8220;Design&#8221;, &#8220;Widgets&#8221; and add the Recent Posts + widget to your sidebar. Visit your blog, your thumbs are showing in the sidebar along with your recent posts!</p>
<img src="http://wphacks.com/?ak_action=api_record_view&id=1450&type=feed" alt="" /><p>You are reading <a href="http://wphacks.com/how-to-using-thumbnails-in-your-sidebar-recent-post-listing/">How to: Using Thumbnails in your Sidebar &#8220;Recent Post&#8221; Listing</a>  © 2008 | <a href="http://wphacks.com">WordPress Hacks</a> | <a href="http://wpnexus.com">WordPress Directory</a> | <a href="http://wpforums.com/">WordPress Forums</a> | <a href="http://wpebook.com/">WordPress eBook</a></p>

<p><small>Enjoy writing about WordPress?  Get your blog more exposure by joining the <a href="http://wphacks.com/write/">WordPress Hacks writing team</a>!</small></p>]]></content:encoded>
			<wfw:commentRss>http://wphacks.com/how-to-using-thumbnails-in-your-sidebar-recent-post-listing/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

