<?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>Digital Raindrops &#187; 2.9</title>
	<atom:link href="http://digitalraindrops.net/demo/wordpress/cms-lite/tag/2-9/feed/" rel="self" type="application/rss+xml" />
	<link>http://digitalraindrops.net/demo/wordpress/cms-lite</link>
	<description>quality free wordpress themes and tutorials for your blog, themes download, wordpress templates, download wordpress theme, wordpress template</description>
	<lastBuildDate>Sat, 01 May 2010 20:56:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Adding Post Images</title>
		<link>http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/</link>
		<comments>http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 14:17:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Latest]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[2.9]]></category>
		<category><![CDATA[Artisteer]]></category>
		<category><![CDATA[post images]]></category>
		<category><![CDATA[post thumbnails]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[the loop]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/</guid>
		<description><![CDATA[WordPress 2.9+ has support for post and page images, looking at the latest release from Artisteer 2.4 there still is no option to have post images, but it is not such a big problem, let us walk you through it and in less than 30 minutes you will have a post with a nice picture. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.9+ has support for post and page images, looking at the latest release from Artisteer 2.4 there still is no option to have post images, but it is not such a big problem, let us walk you through it and in less than 30 minutes you will have a post with a nice picture.</p>
<p><span id="more-385"></span></p>
<p>Our latest theme is the <a href="http://www.digitalraindrops.net/demo/wordpress/portfolio/" target="_blank">Portfolio Theme</a>, we have used Artisteer 2.4, cu3er slideshow and have created a function to add a number of categories, posts and tags when the theme is first loaded, check back early February for linking, columns and mouseover fading.</p>
<p>Visit <a href="http://digitalraindrops.net/demo/wordpress/wedding-theme/">The Wedding Theme</a> to see how the post images look, while you are there sign the guestbook, we would say view our photos but if we have not emailed you the password you will not be able to.</p>
<p>This post has been created based on a post by <a href="http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/" target="_blank">Mark Jaquith here</a> and we would like to thank mark for making the code easy to follow.</p>
<p>But in this short tutorial we are only looking at the Post Images, support for post images is now a part of WordPress and is easy to implement so lets get started, if you have been following our tutorials then you will already have these lines in the demo-functions.php file, if not you can add them to the Artisteer functions.php file.</p>
<p>The width (200)  and height (133)  dimensions we used here in line three are for a standard landscape image, you may want to change the dimensions to a square or portrait based on the type of posts you will be making.</p>
<p>Add to either your <strong>demo-functions.php</strong> or the Artisteer theme <strong>functions.php</strong></p>
<pre class="brush: php; title: ;">
/* Start WordPress Thumbnail Support Code */
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 200, 133, true); // Normal post thumbnails
add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
/* End WordPress Thumbnail Support Code */
</pre>
<p>Now we need to add a style to the stylesheet for our image, you may want to pad the image or add additional margins to suit your theme, Artisteer adds a margin around the img tag, in our theme it was 7px so we added that to the image width, 200 to 214px, and a right margin just to push the text more to the right.</p>
<p>Add to either your <strong>demo-custom.css</strong> or the Artisteer theme <strong>style.css</strong></p>
<pre class="brush: css; title: ;">
/* Add a div to the post list for our thumbnail images */
#demo-image
{
 margin-right: 7px;
 float: left;
 overflow: hidden;
 width: 214px;
 height: 100%px;
}
</pre>
<p>Last step is to add our image into two Artisteer files, index.php and archive.php, as you scroll down you will see this line.</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;</p>
<p>Below that is another line that look like this, paste the code lines after this lines</p>
<p>&lt;!&#8211; article-content &#8211;&gt;</p>
<p>Add this code to the<strong> index.php</strong> and <strong>archive.php</strong></p>
<pre class="brush: xml; title: ;">
&lt;!-- Start demo code Add our post image to the post list --&gt;
 &lt;div id=&quot;demo-image&quot;&gt;
 &lt;?php the_post_thumbnail(); ?&gt;
 &lt;/div&gt;
 &lt;!-- End demo code Add our post image to the post list --&gt;
</pre>
<p>So your code block <strong>should</strong> look like this:</p>
<pre class="brush: xml; title: ;">
&lt;div class=&quot;art-postcontent&quot;&gt;
 &lt;!-- article-content --&gt;

 &lt;!-- Start demo code Add our post image to the post list --&gt;
 &lt;div id=&quot;demo-image&quot;&gt;
 &lt;?php the_post_thumbnail(); ?&gt;
 &lt;/div&gt;
 &lt;!-- End demo code Add our post image to the post list --&gt;

 &lt;?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &amp;raquo;', 'kubrick')); ?&gt;
 &lt;?php if (is_page() or is_single()) wp_link_pages(array('before' =&gt; '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt; '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;

 &lt;!-- /article-content --&gt;
&lt;/div&gt;
</pre>
<p>Now that is it with the code how easy was that, just edit a post and in the right column you will see an option for the Post Thumbnail, select an image from the post media and you will see an option to make thumbnail, save the post and view your website.</p>
<p><a href="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/Settings51.jpg"><img style="border: 0px" title="Settings-5" src="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/Settings5_thumb1.jpg" border="0" alt="Settings-5" width="642" height="246" /></a></p>
<p><a href="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/screenshot.jpg"><img style="border: 0px" title="screenshot" src="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/screenshot_thumb.jpg" border="0" alt="screenshot" width="687" height="435" /></a></p>
<p>The last and most important thing is to let others know if this helped you, just add your comment to this post for anyone else reading it.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-mail">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-google">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-designmoo">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-ning">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-pingfm">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-bebo">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Post+Images&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/&amp;notes=WordPress%202.9%2B%20has%20support%20for%20post%20and%20page%20images%2C%20looking%20at%20the%20latest%20release%20from%20Artisteer%202.4%20there%20still%20is%20no%20option%20to%20have%20post%20images%2C%20but%20it%20is%20not%20such%20a%20big%20problem%2C%20let%20us%20walk%20you%20through%20it%20and%20in%20less%20than%2030%20minutes%20you%20will%20have%20a%20post%20with%20a%20nice%20picture.%0D%0A%0D%0A%0D%0A%0D%0AOur%20latest%20the&amp;short_link=http://b2l.me/hjmqm&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/13/adding-post-images/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Best Practices</title>
		<link>http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/</link>
		<comments>http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 15:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Latest]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[2.9]]></category>
		<category><![CDATA[Artisteer]]></category>
		<category><![CDATA[feature gallery]]></category>
		<category><![CDATA[post images]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://digitalraindrops.net/demo/wordpress/cms-lite/?p=303</guid>
		<description><![CDATA[One thing we have noticed while looking at other tutorials is that authors often suggest making a lot of changes to the core theme files, which is not a practice we would ever follow as themes may be upgraded or changed and you often have trouble locating and moving the code between themes, use a [...]]]></description>
			<content:encoded><![CDATA[<p>One thing we have noticed while looking at other tutorials is that authors often suggest making a lot of changes to the core theme files, which is not a practice we would ever follow as themes may be upgraded or changed and you often have trouble locating and moving the code between themes, use a module approach saves time in adding the same functions to many themes, and time saved is money saved.</p>
<p><span id="more-303"></span>The only time you should change core theme files is if it is the only way to change something, have you ever changed a value in a style and forgotten what the original value was when you wanted to roll back the change, or added code in the functions.php and forgotten what you added, all out tutorials going forward are going to use two new files and one line of code in the core functions.php file to load them, you could as a rule add these to your themes as a best practice.</p>
<p>The first file is a css file with the naming convention of your initials plus custom.css so mine is &#8216;dsc-custom.css&#8217;, so when in the tutorial it say open your css file, you will know to open this one.</p>
<p>Open your text editor and add a few comment lines between /* here */ to say what the file is for and save it as described above into your theme folder, it does not matter that there is no code changes in the file.</p>
<h2>Stylesheet</h2>
<pre class="brush: css; title: ;">
/* This file is part of the Digital Raindrops CMS-Tutorial for WordPress and Artisteer
Copyright 2010  David Cox  (email : david.cox@digitalraindrops.net)
Plugin Support: http://www.digitalraindrops.net/Boards/
This CSS file will be loaded last, make any changes to your styles only in this file
*/
</pre>
<h2>Functions</h2>
<p>this file you will save the same as above with a name of your initials plus functions.php, so mine is dsc-functions.php</p>
<pre class="brush: php; title: ;">
&lt;?php
/* This file is part of the Digital Raindrops CMS-Tutorial for WordPress and Artisteer
Copyright 2010  David Cox  (email : david.cox@digitalraindrops.net)
Plugin Support: http://www.digitalraindrops.net/Boards/
This php file will be called from the main functions.php, make any new functions in this file
*/
?&gt;</pre>
<p>Not impressed, so lets put this into practice, in your own ???-functions.php file we will add some code to load our custom stylesheet and if you are using 2.9 we will add code to give page and post thumbnail support, so lists can show the thumbnails if the plug supports it, the next tutorials will be using the thumbnail functions.</p>
<p>First if you are using 2.9 adding support for the thumbnails only requires three lines of code, here you should set the default thumbnail size.</p>
<pre class="brush: php; title: ;">
&lt;?php
/*This file is part of the Digital Raindrops CMS-Tutorial for WordPress and Artisteer
Copyright 2010  David Cox  (email : david.cox@digitalraindrops.net)
Plugin Support: http://www.digitalraindrops.net/Boards/
This php file will be called from the main functions.php, make any new functions in this file
*/

/* Start WordPress Thumbnail Support Code */
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 200, 200, true); // Normal post thumbnails
add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
/* End WordPress Thumbnail Support Code */
?&gt;
</pre>
<p>Next we will create a function to load our stylesheet when the theme loads, the clever part with this is the WordPress hook wp_print_styles, which calls a standard function and loads the stylesheet, notice we have added the &#8216;if&#8217; condition this will stop any fatal errors if a function is withdrawn, or you upload to an earlier version of WordPress.</p>
<pre class="brush: php; title: ;">
&lt;?php
/* This file is part of the Digital Raindrops CMS-Tutrorial for WordPress and Artisteer
Copyright 2010  David Cox  (email : david.cox@digitalraindrops.net)
Plugin Support: http://www.digitalraindrops.net/Boards/
This php file will be called from the main functions.php, make any new functions in this file
*/

/* Start WordPress Thumbnail Support Code */
add_theme_support( 'post-thumbnails');
set_post_thumbnail_size( 200, 200, true); // Normal post thumbnails
add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
/* End WordPress Thumbnail Support Code */

/* Start code to load custom stylesheet name the function with your initials */
function dsc_stylesheet() {
if (file_exists(TEMPLATEPATH.'/dsc-custom.css')) ?&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php bloginfo('template_url'); ?&gt;/dsc-custom.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
&lt;?php }
add_action('wp_print_styles', 'dsc_stylesheet');
/* End code to load custom stylesheet name the function with your initials */
?&gt;
</pre>
<p>Our last line of code goes into the themes functions.php file, open the file and after the &lt;?php line add the call to your functions file.</p>
<pre class="brush: php; title: ;">
/* Start code to load custom functions file */
if (file_exists(TEMPLATEPATH. '/dsc-functions.php')){
include_once (TEMPLATEPATH. '/dsc-functions.php');
}
/* End code to load custom functions file */
</pre>
<h2>Conclusion</h2>
<p>You now have a tidy system to add styles and functions to your themes without changing the core code to often, and code that is portable between themes, but what was all that thumbnail stuff about?</p>
<p>On your Pages and posts you will now have a new form where you can select a thumbnail for your post or page, WordPress will crunch it to size for you as well.</p>
<p><a href="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/thumbnail.jpg"><img class="alignnone size-full wp-image-312" title="thumbnail" src="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/thumbnail.jpg" alt="" width="296" height="358" /></a></p>
<p>How can you use this thumbnail, some plugin already support this, on the home page we are using  category posts plugin.</p>
<p><a href="http://wordpress.org/extend/plugins/category-posts/" target="_blank">http://wordpress.org/extend/plugins/category-posts/</a></p>
<p><a href="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/category-posts.jpg"><img class="alignnone size-full wp-image-313" title="category-posts" src="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/category-posts.jpg" alt="" width="334" height="527" /></a></p>
<p>In the next tutorials we will be using this and the Dynamic content gallery on a theme, trying to get from this theme I created following a post on the Artisteer forum.</p>
<p><a href="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/screenshot1.png"><img class="alignnone size-full wp-image-314" title="screenshot" src="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/screenshot1.png" alt="" width="300" height="225" /></a></p>
<p>Finishing with gallery and three columns of categories as a tutorial not for production use.</p>
<p><a href="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/target.jpg"><img class="alignnone size-full wp-image-315" title="target" src="http://digitalraindrops.net/demo/wordpress/cms-lite/files/2010/02/target.jpg" alt="" width="320" height="240" /></a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-mail">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-google">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-designmoo">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-ning">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-pingfm">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-bebo">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.shareaholic.com/api/share/?title=Best+Practices&amp;link=http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/&amp;notes=One%20thing%20we%20have%20noticed%20while%20looking%20at%20other%20tutorials%20is%20that%20authors%20often%20suggest%20making%20a%20lot%20of%20changes%20to%20the%20core%20theme%20files%2C%20which%20is%20not%20a%20practice%20we%20would%20ever%20follow%20as%20themes%20may%20be%20upgraded%20or%20changed%20and%20you%20often%20have%20trouble%20locating%20and%20moving%20the%20code%20between%20themes%2C%20use%20a%20mo&amp;short_link=http://b2l.me/hjmqp&amp;v=1&amp;apitype=1&amp;apikey=&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://digitalraindrops.net/demo/wordpress/cms-lite/2010/02/10/best-practices/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

