<?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>Jarod Taylor Web Designer &#38; Developer</title>
	<atom:link href="http://jarodtaylor.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://jarodtaylor.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 17 Jul 2009 22:32:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>My First jQuery Plugin (Meerkat) Released!</title>
		<link>http://jarodtaylor.com/blog/my-first-jquery-plugin-released/</link>
		<comments>http://jarodtaylor.com/blog/my-first-jquery-plugin-released/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 21:57:37 +0000</pubDate>
		<dc:creator>Jarod Taylor</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Resources]]></category>

		<guid isPermaLink="false">http://jarodtaylor.com/blog/?p=277</guid>
		<description><![CDATA[Tis true, I have finished my first jQuery plugin, and <a href="http://www.jarodtaylor.com/meerkat">released it in the wild</a>. This is good news; not only for the people planning to use it, but for those of you interested in learning jQuery. Why? You may ask. Well, I'm going to be creating a tutorial on my site <a href="http://www.noobcube.com">Noobcube</a> that will cover the creation process, from beginning to end, of my new jQuery plugin, <a href="http://www.jarodtaylor.com/meerkat">Meerkat</a>. I will walk you through the entire process of creating it! If you've been following my tutorials on Noobcube.com, you know I don't leave out the details!]]></description>
			<content:encoded><![CDATA[<p>Tis true, I have finished my first jQuery plugin, and <a href="http://www.jarodtaylor.com/meerkat">released it in the wild</a>. This is good news, not only for the people planning to use it, but, for those of you interested in learning jQuery. Why? You may ask. Well, I'm going to be creating a tutorial on my site <a href="http://www.noobcube.com">Noobcube</a> that will cover the creation process, from beginning to end, of my new jQuery plugin, <a href="http://www.jarodtaylor.com/meerkat">Meerkat</a>. I will walk you through the entire process of creating it! If you've been following my tutorials on Noobcube.com, you know I don't leave out the details!</p>
<p>That's right, I'm not only releasing my new plugin to the wild, but I'm also going to teach you exactly HOW I CREATED IT. Be sure to check it out on <a href="http://www.noobcube.com">Noobcube</a>. I will begin writing the tutorial this week so keep an eye out!</p>
]]></content:encoded>
			<wfw:commentRss>http://jarodtaylor.com/blog/my-first-jquery-plugin-released/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Launched: Noobcube.com</title>
		<link>http://jarodtaylor.com/blog/launched-noobcubecom-web-design-and-development-tutorials-resources-and-freebies/</link>
		<comments>http://jarodtaylor.com/blog/launched-noobcubecom-web-design-and-development-tutorials-resources-and-freebies/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 20:47:03 +0000</pubDate>
		<dc:creator>Jarod Taylor</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://jarodtaylor.com/blog/?p=261</guid>
		<description><![CDATA[My new project <a href="http://www.noobcube.com">Noobcube.com</a> has officially launched! Noobcube will be a site dedicated to Web Design and Web Development tutorials, tips, resources, and freebies. I've already posted 2 tutorial articles covering some CSS techniques. We will be providing quality articles on a weekly basis. In addition to our in depth tutorials, we'll also be providing useful resources, tips, and freebies on a regular basis.]]></description>
			<content:encoded><![CDATA[<p>My new project <a href="http://www.noobcube.com">Noobcube.com</a> has officially launched! Noobcube will be a site dedicated to Web Design and Web Development tutorials, tips, resources, and freebies. I've already posted 2 tutorial articles covering some CSS techniques. We will be providing quality articles on a weekly basis. In addition to our in depth tutorials, we'll also be providing useful resources, tips, and freebies on a regular basis.</p>
<p>Please take a minute to <a href="http://www.noobcube.com">check it out</a> and don't forget to <a href="http://feeds2.feedburner.com/Noobcube">SUBSCRIBE</a> to our feed so you never miss out on our articles!</p>
<p>Our first two tutorials cover some CSS techniques which are described below. Hope to see you on Noobcube soon!</p>
<h2>1. CSS Background Image Sprites: A Beginner’s Guide</h2>
<p><img src="http://www.noobcube.com/wp-content/uploads/demos/060209-icons-sprite/images/tut03-icons.png" alt="Noobcube Post Image" /></p>
<p>Without regurgitating too much history behind image sprites and how and why we should use them, we’re going to create something practical that you can implement into your projects immediately. There are several resources and tutorials already covering what image sprites are and even how we should use them. Just google “CSS Image Sprites” and you’ll return more than 2000 results. We’re going to skip the history lesson and get you started using CSS image sprites today.</p>
<p><a href="http://www.noobcube.com/tutorials/html-css/css-background-image-sprites-a-beginners-guide-/" style="font-weight: strong;">VISIT THIS TUTORIAL</a></p>
<h2>2. Create an Advanced CSS Menu Using the Hover and Position Properties</h2>
<p><img src="http://www.noobcube.com/wp-content/uploads/demos/052809-advanced-css-menu/images/menu-layout01.jpg" alt="Noobcube Post Image" /></p>
<p>Starting with a photoshop file and finishing with semantic HTML and CSS, we’ll be creating an advanced CSS navigation menu using its :hover and position properties. </p>
<p><a href="http://www.noobcube.com/tutorials/html-css/create-an-advanced-css-menu-using-the-hover-and-position-properties-/" style="font-weight: strong;">VISIT THIS TUTORIAL</a></p>
<h2>2. Create an Advanced CSS Menu Using the Hover and Position Properties</h2>
<p><img src="http://www.noobcube.com/wp-content/uploads/freebies/061909-seamless-grunge-stripes/sgs-06.jpg" alt="Noobcube Post Image" /></p>
<p>I’ve created 10 seamless stripes for you to go tiling crazy with. All the patterns are semi-transparent with different grunge textures. You can easily modify the colors and feel to fit your needs by opening the PSDs that are included.</p>
<p><a href="http://www.noobcube.com/freebies/textures-patterns/10-seamless-grunge-textured-stripe-patterns-/" style="font-weight: strong;">VISIT THIS FREEBIE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jarodtaylor.com/blog/launched-noobcubecom-web-design-and-development-tutorials-resources-and-freebies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress: Ultimate Archive Index With Pagination</title>
		<link>http://jarodtaylor.com/blog/wordpress-ultimate-archive-index-with-pagination/</link>
		<comments>http://jarodtaylor.com/blog/wordpress-ultimate-archive-index-with-pagination/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 23:00:00 +0000</pubDate>
		<dc:creator>Jarod Taylor</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://jarodtaylor.com/blog/?p=161</guid>
		<description><![CDATA[Inspired by Chris Coyier's archive at <a href="http://www.css-tricks.com">CSS-Tricks</a>, I've decided to create the <em>Ultimate Archive Index With Pagination</em>. By Ultimate, I mean, functions well and looks good! I'll be the first to say, I'm a beginner when it comes to PHP or hacking Wordpress. I knew what I wanted it to do, and how I wanted it to look. All I had to do was find out <em>how</em> I was going to accomplish it. After many hours of trial and error, I've achieved what I wanted to achieve, and I'm going to share it with you.]]></description>
			<content:encoded><![CDATA[<p>Inspired by Chris Coyier's archive at <a href="http://www.css-tricks.com">CSS-Tricks</a>, I've decided to create the <em>Ultimate Archive Index With Pagination</em>. By Ultimate, I mean, functions well and looks good! I'll be the first to say, I'm a beginner when it comes to PHP or hacking Wordpress. I knew what I wanted it to do, and how I wanted it to look. All I had to do was find out <em>how</em> I was going to accomplish it. After many hours of trial and error, I've achieved what I wanted to achieve, and I'm going to share it with you.</p>
<p>When I was trying to figure out what and how I was going to accomplish this, I asked several questions:</p>
<ol class="list">
<li>How can I create an archive index of all my posts?</li>
<li>How can I add a drop down list of archive dates?</li>
<li>How can I add a drop down list of categories?</li>
<li>How can I add pagination to the archives?</li>
</ol>
<p>After several hours of google, Wordpress forums, and trial and error I was able to hack this all together. I've tested this in Firefox, IE7, IE6, Safari, and Opera and it works fine in all of them. As I implied, I hacked this code together, so I'm sure there is a cleaner way to do it. Unfortunately, I'm not fluent enough in PHP to create it, however, if anyone finds a more efficient, cleaner, or better way to accomplish this - please let me know, and I'll give credit where credit's due. Alright, Let's get started!</p>
<div class="demo-links"><a href="http://jarodtaylor.com/blog/wp-content/uploads/posts/ultimatearchive/ultimate-archive.rar" class="download-source">Source Code</a><a href="http://jarodtaylor.com/demos/index/" class="view-demo">View Demo</a></div>
<p>In order for you to achieve the same exact results as mine, in addition to my source code, you'll need the following Wordpress plugins:</p>
<ol class="list">
<li><a href="http://wordpress.org/extend/plugins/wp-page-numbers/">WP Page Numbers</a></li>
<li><a href="http://wordpress.org/extend/plugins/different-posts-per-page/">Different Posts Per Page</a></li>
</ol>
<p>The first plugin is an alternative to <a href="http://wordpress.org/extend/plugins/wp-pagenavi/">WP-PageNavi</a>, which allows for pagination of the archives. Otherwise you can just utilize the Wordpress default <code>posts_nav_link();</code>. The second plugin will allow you to modify the number of posts shown on the home, category, archive or search pages.</p>
<p>Once you get the plugins installed, we'll start with the <code>archive.php</code> file.</p>
<h2>Create archive.php File</h2>
<p>First thing we're going to do is create our <code>archive.php</code> file. This is the file Wordpress accesses when a user clicks on a Category or a Date in the archive list (assuming you have it on your sidebar). We want our <code>archive.php</code> and <code>archives.php</code> template to be identical so let's use the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;?php get_header(); ?&gt;
&nbsp;
&lt;h3&gt;Archives:&lt;/h3&gt;
&lt;h1&gt;&lt;?php wp_title('',true,'right'); ?&gt;&lt;/h1&gt;
&nbsp;
&lt;!-- Put Archive Dates in a Drop Down --&gt;
&lt;select name=&quot;archive-dropdown&quot; onchange='document.location.href=this.options[this.selectedIndex].value;'&gt;
&lt;option value=&quot;&quot;&gt;&lt;?php echo attribute_escape(__('Select Month')); ?&gt;&lt;/option&gt; 
&lt;?php wp_get_archives('type=monthly&amp;format=option&amp;show_post_count=1'); ?&gt; &lt;/select&gt;
&nbsp;
&lt;!-- Put Categories in a Drop Down --&gt;
&lt;?php wp_dropdown_categories('orderby=name&amp;show_count=1&amp;show_option_none=Select Category'); ?&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  var dropdown = document.getElementById(&quot;cat&quot;);
  function onCatChange() {
	if ( dropdown.options[dropdown.selectedIndex].value &gt; 0 ) {
		location.href = 
		&quot;&lt;?php echo get_option('home');?&gt;/?cat=&quot;+dropdown.options[dropdown.selectedIndex].value;
	}
    }
    dropdown.onchange = onCatChange;
&lt;/script&gt;
&nbsp;
&lt;!-- Put A Link To Archive Index Page --&gt;
&lt;a class=&quot;browse-all&quot; href=&quot;&lt;?php $_SERVER['DOCUMENT_ROOT']?&gt;/demos/index&quot;&gt;Browse All&lt;/a&gt;
&nbsp;
&lt;!-- The Loop --&gt;
&lt;?php if (have_posts()) : ?&gt;
	&lt;ul id=&quot;archive-list&quot;&gt;		
	&lt;?php while (have_posts()) : the_post(); ?&gt;				
		&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt; &lt;span&gt;&lt;?php the_time(' F j, Y') ?&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;?php endwhile; ?&gt;
	&lt;/ul&gt;	
&lt;?php endif; ?&gt;		
&nbsp;
&lt;!-- Call For wp_page_numbers Plugin --&gt;
&lt;?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?&gt;
&nbsp;
&lt;?php get_footer(); ?&gt;</pre></div></div>

<div class="note">
<h3>ATTENTION: </h3>
<p>If you are using Dreamweaver CS3, you may encounter a known bug which crashes Dreamweaver when putting PHP or ASP code into a form Select field. You can read more about fixing it <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402776">here</a>.</p>
</div>
<p>First thing we did, of course, is included your theme's header with the Wordpress function <code>get_header(); </code>. We also  used the Wordpress function <code>wp_title();</code> to apply the title of the archive being viewed to each page.</p>
<p>We put our archive dates in a drop down by using code provided by the <a href="http://codex.wordpress.org/Template_Tags/wp_get_archives">Wordpress Codex</a>. We also put our categories in a drop down using the Wordpress function <code>wp_dropdown_categories();</code>, you can read more about this <a href="http://codex.wordpress.org/Template_Tags/wp_dropdown_categories">here</a>.</p>
<p>We also included a link back to the Archive Index page, which we'll be creating next. Be sure to change the URL to work for you.</p>
<p>We finish off with the standard Wordpress Loop, the call for the WP Page Numbers plugin, and the Wordpress function <code>get_footer();</code>.</p>
<p>Now that we have our <code>archive.php</code> finished, we need to upload it to our root and create the index page!</p>
<h2>Create the Archive Index Template</h2>
<p>What we're going to be doing is creating a blank <em>page</em> on our blog and applying the template we're about to create to it. So for our example, we'll be able to access your Archive Index with <em>http://pathtoyourblog/index</em> assuming you title your page <em>Index</em>. </p>
<p>Let's start by creating the template now. If you still have your <code>archive.php</code> file open, go ahead and Save As <code>archives.php</code>. Now you should have 2 files - <code>archive.php</code> and <code>archives.php</code> with the same code on them both. We're going to add a couple changes to the <code>archives.php</code> next.</p>
<p>As I said earlier, we want our <code>archive.php</code> and <code>archives.php</code> pages to look the same so there are only a couple differences in the code. First thing we need to do is define <code>archives.php</code> as a template so it will be recognized as one by Wordpress. So paste the following code at the very top of the file.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;?php
/*
Template Name: Archive Index
*/
?&gt;</pre></div></div>

<p>Much like our style sheet in our theme, this is required in order for for our file to be recognized as a template. Also, you won't need the link to the Archive Index, so remove:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!-- Put A Link To Archive Index Page --&gt;
&lt;a class=&quot;browse-all&quot; href=&quot;&lt;?php $_SERVER['DOCUMENT_ROOT']?&gt;/demos/index&quot;&gt;Browse All&lt;/a&gt;</pre></div></div>

<p>Because this is going to be an archive <em>index</em> we want to be able to choose how many results to display on each page of the index. In your Wordpress admin you can choose how many posts you'd like to appear on your page, however without a plugin, you're stuck with that number on all your pages. So, if you wanted your blog's homepage to show your last 5 posts, you'd be stuck with your Archives page only showing 5 posts as well. What kind of archive index would that be? </p>
<p>Good news is, the Different Posts Per Page plugin allows for you to set the number of posts per page seperately on your home, category, archive and search pages. So you can have your homepage show the 5 most recent blog posts, while your category page and archives show 20 posts per page. Unfortunately, on our index page we'll need to implement it manually on our <code>archives.php</code> template. Paste the following code right before <em>the loop</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!--Change The Amount of Results You Wish To Display Per Page--&gt;
&lt;?php 
$offset = &quot;0&quot;;
$no_of_posts = &quot;15&quot;; //Number of posts to display on each page
if (preg_match('/page/', $_SERVER['REQUEST_URI'])) {
	$uri = explode('/', $_SERVER['REQUEST_URI']);
	foreach ($uri as $key=&gt;$value) {
		if ($value == &quot;&quot;) {
		unset($uri[$key]);
		}
	}
	$offset = (array_pop($uri) * 15) - 15; //Both These Numbers Should Match the $no_of_posts 
}
query_posts('posts_per_page=' . $no_of_posts . '&amp;offset=' . $offset); ?&gt;</pre></div></div>

<p>For this demo, I set the number of posts per page to 15. In the admin of my blog, I also set the Category and Archive number to 15. In order for you to be able to do that, you'll need to download, install, and activate the <a href="http://wordpress.org/extend/plugins/different-posts-per-page/">Different Posts Per Page</a> plugin.</p>
<p>Save and upload <code>archives.php</code> to the root of your theme.</p>
<p>Log into your Wordpress dashboard, and create a new page (not post), and title it (I titled it <em>Index</em>). On the right side of the sidebar you should see an option to apply your template to the page. Choose <em>Archive Index</em> and click <em>Publish</em>.</p>
<div class="note">
<h3>Reminder: </h3>
<p>If you titled your page anything other than <em>Index</em> you'll need to change your "Browse All" link in your <code>archive.php</code> file.</p>
</div>
<p>If you view your archives right now, it <em>will</em> be functioning, but it won't be pretty. You can style this to your liking but I'll provide you with my styles from the demo to start you off.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&nbsp;
h1 {
	font: 3.0em Georgia, &quot;Times New Roman&quot;, Times, serif;
	color: #FFF;
}
&nbsp;
h3 {
	font: bold 1.0em Arial, Helvetica, sans-serif;
	color: #727271;
	text-transform: uppercase;
}
&nbsp;
select {
	margin: 10px 10px 5px 0;
}
&nbsp;
a.browse-all {
	color: #FFF;
}
&nbsp;
ul#archive-list {
	list-style: none;
	width: 600px;
	margin: 5px 0;
}
&nbsp;
ul#archive-list li{
	position: relative;
}
&nbsp;
* html ul#archive-list li{  /*We All Love IE6*/
	height: 0px;
	margin-top: -2px;
}
&nbsp;
ul#archive-list li a{
	text-decoration: none;
	display: block;
	width: 100%;
	border-bottom: 1px solid #2b2b2b;
	color: #727271;
	padding: 5px 0;
	font-size: 1.0em;	
}
&nbsp;
ul#archive-list li a:hover{
	background-color: #282425;
	color: #FFF;
}
&nbsp;
ul#archive-list li span{
	position: absolute;
	width: auto;
	right: 0px;
	top: 5px;
	text-align: right;
	color: #a82918;
}</pre></div></div>

<p>There you have it, my <em>Ultimate Archive Index With Pagination</em>! Like I said, there may be a more efficient way to do this, but I've yet to find it. If you have a better way of achieving the same results, please share.</p>
<p>I'll be sure to update this as I find newer and cooler options to add to it. I hope you enjoy it! Thanks again for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://jarodtaylor.com/blog/wordpress-ultimate-archive-index-with-pagination/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Free Hi-Res Concrete Textures</title>
		<link>http://jarodtaylor.com/blog/free-hi-res-concrete-textures/</link>
		<comments>http://jarodtaylor.com/blog/free-hi-res-concrete-textures/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 22:15:06 +0000</pubDate>
		<dc:creator>Jarod Taylor</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Textures]]></category>
		<category><![CDATA[Hi-Res]]></category>

		<guid isPermaLink="false">http://jarodtaylor.com/blog/?p=114</guid>
		<description><![CDATA[If you're anything like me, you can never have too many textures, brushes, vectors, or color swatches. I have folders upon folders of textures on my laptop. All of them were taken using a Nikon D80. As I go through them and find ones that are worth sharing, I'll share them with all of you! Today, I'm sharing 5 Hi-Resolution concrete textures. All of them have a 'grungy' feel to them. I've yet to use them but I totally dig these, and hope to soon. Download them, use them, and let me know if you did! I'd love to see.]]></description>
			<content:encoded><![CDATA[<p>If you're anything like me, you can never have too many textures, brushes, vectors, or color swatches. I have folders upon folders of textures on my laptop. All of them were taken using a Nikon D80. As I go through them and find ones that are worth sharing, I'll share them with all of you! Today, I'm sharing 5 Hi-Resolution concrete textures. All of them have a 'grungy' feel to them. I've yet to use them but I totally dig these, and hope to soon. Download them, use them, and let me know if you did! I'd love to see.</p>
<h2>Preview</h2>
<p><img src="http://jarodtaylor.com/blog/wp-content/uploads/posts/textures-concrete/concrete.jpg" alt="Hi-Res Concrete Texture"/><br />
<img src="http://jarodtaylor.com/blog/wp-content/uploads/posts/textures-concrete/peeling-paint.jpg" alt="Hi-Res Peeling Paint Texture"/><br />
<img src="http://jarodtaylor.com/blog/wp-content/uploads/posts/textures-concrete/parkinglot-splat.jpg" alt="Hi-Res Parking Lot Splatter Texture"/><br />
<img src="http://jarodtaylor.com/blog/wp-content/uploads/posts/textures-concrete/stucco.jpg" alt="Hi-Res Stucco Texture"/><br />
<img src="http://jarodtaylor.com/blog/wp-content/uploads/posts/textures-concrete/sidewalk.jpg" alt="Hi-Res Grunge Sidewalk Texture"/></p>
]]></content:encoded>
			<wfw:commentRss>http://jarodtaylor.com/blog/free-hi-res-concrete-textures/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress: Using A Post Image Effectively</title>
		<link>http://jarodtaylor.com/blog/wordpress-using-a-post-image-effectively/</link>
		<comments>http://jarodtaylor.com/blog/wordpress-using-a-post-image-effectively/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 22:42:27 +0000</pubDate>
		<dc:creator>Jarod Taylor</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://jarodtaylor.com/blog/?p=26</guid>
		<description><![CDATA[This is one of those things you see done on a lot of blogs, but just can't seem to find a simple answer on how they did it. What we're going to do is create a page that lists our post excerpts which will contain a title, date, category, comment count, and of course the content. Simple right? Chances are we've all done this already. I mean, it's pretty much a standard wordpress blog setup. What we're going to do differently is take the post image out of the <code>the_excerpt();</code> completely and create a custom field instead.]]></description>
			<content:encoded><![CDATA[<p>This is one of those things you see done on a lot of blogs, but just can't seem to find a simple answer on how they did it. What we're going to do is create a page that lists our post excerpts which will contain a title, date, category, comment count, and of course the content. Simple right? Chances are we've all done this already. I mean, it's pretty much a standard wordpress blog setup. What we're going to do differently is take the post image out of the <code>the_excerpt();</code> completely and create a custom field instead.</p>
<p>In my attempts to figure out how wordpress bloggers were linking their post image directly to the post, and not to the image itself, I googled this simple question:</p>
<ol class="list">
<li>How can I link my Wordpress post image to the permalink of the post?</li>
</ol>
<p>When I finally figured out what the custom fields were used for, it was an "Ah Hah!" moment. I can use a custom field for my post image! Doing this will not only allow me to link the post image to the full article but it will also give me full control over the image placement. </p>
<div class="demo-links"><a href="http://jarodtaylor.com/blog/wp-content/uploads/posts/wpimageeffective/wpimageeffective.rar" class="download-source">Source Code</a><a href="http://jarodtaylor.com/blog/wp-content/uploads/posts/wpimageeffective/wpimagecontrol.html" class="view-demo">View Demo</a></div>
<p>HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;container&quot;&gt;
	&lt;h1&gt;Recent Articles&lt;/h1&gt;
	&lt;div class=&quot;post-wrapper&quot;&gt;
		&lt;a href=&quot;#&quot; rel=&quot;bookmark&quot; title=&quot;Blog Post&quot;&gt;&lt;img class=&quot;post-image&quot; src=&quot;http://www.jarodtaylor.com/blog/wp-content/uploads/posts/images/psresources.jpg&quot; alt=&quot;Photoshop Resources&quot; /&gt;&lt;/a&gt;
		&lt;div class=&quot;post&quot;&gt;
			&lt;h2&gt;&lt;a href=&quot;#&quot; title=&quot;Blog Post&quot;&gt;10 Grunge Brushes For Photoshop&lt;/a&gt;&lt;/h2&gt;
			&lt;div class=&quot;post-meta&quot;&gt;
				January 6th, 2009&amp;nbsp;|&amp;nbsp;
				Photoshop, Resources
				&amp;nbsp;|&amp;nbsp; 12 Comments
			&lt;/div&gt;
&nbsp;
			&lt;div class=&quot;post-content&quot;&gt;
				&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas posuere. Sed tellus mi, imperdiet ac, molestie vel, gravida quis, mauris. Praesent consequat enim ac nisi. Sed non libero sit amet orci tincidunt tempus. Mauris bibendum, felis non tristique egestas, elit dui ultrices mi, sed facilisis libero pede vitae risus. Sed nec dui. Fusce mollis. Nunc id libero. Mauris massa. Duis vitae lorem. Nulla elementum tellus ac ipsum. &lt;/p&gt;
			&lt;/div&gt;								
		&lt;/div&gt;		
	&lt;/div&gt;	
&lt;/div&gt;</pre></div></div>

<p>I created a container for aesthetic reasons, you may or may not include it. The important markup here is the html between the <code>post-wrapper</code> div.</p>
<p>We gave our image a class of <code>post-image</code> so we can float it to the left. We also wrapped the rest of the post content in a class of <code>post</code>, and added classes accordingly to the post meta and post content. Now that we have the divs and classes in place, let's add some CSS.</p>
<p>CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">* {
margin: 0;
padding: 0;
}
&nbsp;
body {
background-color: #cae0dd;
font: 62.5% Georgia, &quot;Times New Roman&quot;, Times, serif;
}
&nbsp;
.clear {
clear: both;
}
&nbsp;
p {
line-height: 1.4em;
}
&nbsp;
h1 {
font: bold 3.5em Georgia, &quot;Times New Roman&quot;, Times, serif;
color: #879896;
margin-bottom: 10px; 
}
&nbsp;
h2 {
font: bold 2em Arial, Helvetica, sans-serif;
}
&nbsp;
h2 a {
color: #524537;
text-decoration: none;
}
&nbsp;
#container {
width: 800px;
margin: 2% auto;
}
&nbsp;
.post-wrapper {
width: 600px;
font-size: 1.2em;
border-bottom: 1px dotted #75b6bb;
padding-bottom: 20px;
margin: 15px 0 7px;
}
&nbsp;
a .post-image {
float: left;
margin-right: 7px;
border: 3px solid #75b6bb;
}
&nbsp;
.post-meta {
color: #8f7962;
margin: 2px 0;
}</pre></div></div>

<p>First thing we are doing is adding some generic styles for margins, fonts, etc. to help make the example look prettier. Then we added some styles to the <code>post-wrapper</code> to give it a width, a border, some padding and margins, and a starting font size.  We then added a border to the <code>post-image</code>, gave it a right margin to give it some breathing room, and floated it left. Finally we added some style to the post meta just to add a little more color.</p>
<p>Now you should have something that looks similar to <a href="http://jarodtaylor.com/blog/wp-content/uploads/posts/wpimageeffective/wpimagecontrol.html">this</a>. I duplicated our <code>post-wrapper</code> and its content a few times to give us an idea what it would look like with multiple posts.</p>
<h2>Adding The PHP &amp; Wordpress Functions</h2>
<p>I'm sure a lot of you are sitting there right now thinking, "Seriously, Jarod get on with it. I don't care about how to style a post!" and I'm sorry, we're getting to it now! Let's get this ready for some dynamic content.</p>
<p>What we have to do now is replace some html with the wordpress functions calling for your post content. Again, chances are, you've already done this.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;container&quot;&gt;
	&lt;h1&gt;Recent Articles&lt;/h1&gt;
	&lt;div class=&quot;post-wrapper&quot;&gt;
		&lt;a href=&quot;#&quot; rel=&quot;bookmark&quot; title=&quot;Blog Post&quot;&gt;&lt;img class=&quot;post-image&quot; src=&quot;http://www.jarodtaylor.com/blog/wp-content/uploads/posts/images/psresources.jpg&quot; alt=&quot;Photoshop Resources&quot; /&gt;&lt;/a&gt;
		&lt;div class=&quot;post&quot;&gt;
			&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
			&lt;div class=&quot;post-meta&quot;&gt;
				&lt;?php the_time(' F j, Y') ?&gt;&amp;nbsp;|&amp;nbsp;
				&lt;?php _e(''); ?&gt; &lt;?php the_category(', ') ?&gt;
				&amp;nbsp;|&amp;nbsp; &lt;?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?&gt;
			&lt;/div&gt;
&nbsp;
			&lt;div class=&quot;post-content&quot;&gt;
				&lt;?php the_excerpt(); ?&gt;
			&lt;/div&gt;								
		&lt;/div&gt;		
	&lt;/div&gt;		
&lt;/div&gt;</pre></div></div>

<p>If you are having trouble understanding anything we just did, I recommend visiting <a href="http://www.themelab.com/2008/04/04/the-ultimate-guide-to-the-wordpress-loop/">this tutorial</a> for a better understanding of the "loop".</p>
<p>For those of you who understand exactly what we just did, you'll be wondering, "What the heck do we do with the image, though?".</p>
<h2>Adding A Post Image To The Loop</h2>
<p>The way we have our <code>post-image</code> currently set up certainly wouldn't work. We'd end up having the same image on every article we posted. Now, normally we could just add the image directly to our post, which would put our <code>post-image</code> after the post's title and <code>post-meta</code>, and somewhere, most likely, before the post content. This works perfectly fine in most cases, but in our case, we're floating our image to the left of all our content including the post's title and <code>post-meta</code>. We could achieve this with CSS, but it would most likely be fragile with some browsers. Instead we're going to create a custom field in our wordpress.</p>
<p>When you're logged in to your wordpress and writing your post, you'll notice an option towards the bottom that says <em>Custom Fields</em>.</p>
<p><img src="http://jarodtaylor.com/blog/wp-content/uploads/posts/wpimageeffective/customfields.gif" alt="Wordpress Custom Fields"/></p>
<p>This is where we'll be adding our <code>post-image</code>'s URL and Alt attribute. In the <em>Name</em> field we need to enter the custom field's name. I'm using <strong>image-url</strong>. In the <em>Value</em> field we'll put the URL of the image we're using as our post image. In this case I'm using <strong>http://www.jarodtaylor.com/blog/wp-content/uploads/posts/images/psresources.jpg</strong>.</p>
<p>Now we have our Name(key) and Value of our custom field. What we need to do now is replace some html in our <code>post-image</code> with some wordpress functions, and our new key value pair.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Replace:
&lt;a href=&quot;#&quot; rel=&quot;bookmark&quot; title=&quot;Blog Post&quot;&gt;&lt;img class=&quot;post-image&quot; src=&quot;http://www.jarodtaylor.com/blog/wp-content/uploads/images/psresources.jpg&quot; alt=&quot;Photoshop Resources&quot; /&gt;&lt;/a&gt;
&nbsp;
With:
&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;img class=&quot;post-image&quot; src=&quot;&lt;?php $key=&quot;image-url&quot;; echo get_post_meta($post-&gt;ID, $key, true); ?&gt;&quot; /&gt;&lt;/a&gt;</pre></div></div>

<p>First of all, what we did is take our post image out of our post content by creating a custom field, which allowed for us to not only position it where we wanted it, but also gave us an opportunity to add wordpress's <code>the_permalink()</code> function to the anchor of our image. Secondly, we added our custom field to our image <code>src=""</code> by calling for the <code>get_post_meta()</code> function which held our custom field's key value pair. </p>
<p>The only thing our image is missing is our <code>alt=""</code> attribute. As we all know, without this we'll fail W3C Validation. We can't have that! So we're going to add another custom field for our alt attribute. You can obviously use whatever you'd like, but I used <strong>image-alt</strong> in the <em>Name</em> field and <strong>Photoshop Resources</strong> in the <em>Value</em> field. </p>
<p>Now we just need to add our new custom field to our <code>post-image</code>. </p>
<p>Our final code should look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;container&quot;&gt;
	&lt;h1&gt;Recent Articles&lt;/h1&gt;
	&lt;div class=&quot;post-wrapper&quot;&gt;
		&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;img class=&quot;post-image&quot; src=&quot;&lt;?php $key=&quot;image-url&quot;; echo get_post_meta($post-&gt;ID, $key, true); ?&gt;&quot; alt=&quot;&lt;?php $key=&quot;image-alt&quot;; echo get_post_meta($post-&gt;ID, $key, true); ?&gt;&quot; /&gt;&lt;/a&gt;
		&lt;div class=&quot;post&quot;&gt;
			&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
			&lt;div class=&quot;post-meta&quot;&gt;
				&lt;?php the_time(' F j, Y') ?&gt;&amp;nbsp;|&amp;nbsp;
				&lt;?php _e(''); ?&gt; &lt;?php the_category(', ') ?&gt;
				&amp;nbsp;|&amp;nbsp; &lt;?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?&gt;
			&lt;/div&gt;
&nbsp;
			&lt;div class=&quot;post-content&quot;&gt;
				&lt;?php the_excerpt(); ?&gt;
			&lt;/div&gt;								
		&lt;/div&gt;		
	&lt;/div&gt;		
&lt;/div&gt;</pre></div></div>

<p>That's it! So simple, yet so useful. If you really want to maximize usage of Wordpress, custom fields are something to consider. If you'd like to read up more on Custom Fields and the <code>get_post_meta($post_id, $key, $single)</code> function, you can do so <a href="http://codex.wordpress.org/Using_Custom_Fields">here</a>. Please let me know if you have any problems. Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://jarodtaylor.com/blog/wordpress-using-a-post-image-effectively/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Oh Man, Not Another Web Designer Blog!</title>
		<link>http://jarodtaylor.com/blog/introduction/</link>
		<comments>http://jarodtaylor.com/blog/introduction/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 06:03:29 +0000</pubDate>
		<dc:creator>Jarod Taylor</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://jarodtaylor.com/blog/?p=1</guid>
		<description><![CDATA[Yes, it's true, another blog created and ran by a web designer. I know what you're thinking, "WHAT can this guy possibly write articles about that isn't saturating the inter web already?". Simple truth is; I'm not going to be attempting to 're-invent the wheel' or even promise articles of pure innovation. What my readers should expect from my blog are honest articles covering techniques, tricks, trends, and resources I have picked up, or <em>will</em> pick up, on my journey to web super stardom.]]></description>
			<content:encoded><![CDATA[<p>Yes, it's true, another blog created and ran by a web designer. I know what you're thinking, "WHAT can this guy possibly write articles about that isn't saturating the inter web already?". Simple truth is; I'm not going to be attempting to 're-invent the wheel' or even promise articles of pure innovation. What my readers should expect from my blog are honest articles covering techniques, tricks, trends, and resources I have picked up, or <em>will</em> pick up, on my journey to web super stardom. </p>
<p>Since I began designing for the web, back in 'nam, and by "nam" I mean 2004, whether learning by trial and error, or through my instructors, I have found that there are always more ways than one to accomplish a task. You'll find numerous tutorials online covering the same idea or concept, and it's not always a question of which way is correct, or which technique is better. It's always a matter of preference and what works for you. I'll simply be sharing my own experiences, hoping to save you some time, and maybe even providing you with some helpful tips.</p>
<p>Some of my posts may make you say, "yeah, I knew that, duh!", while others may make you say, "hey, I never thought of that!".  As I said, I'm not doing anything new, just doing it my way and sharing my experience with you. If you find an error in my post, or maybe have a more efficient way of achieving the same result, please let me know. I will give credit where credit is due. </p>
<p>I'm excited to begin my journey as a blogger, and I hope to help some of you along the way. Thanks for reading and feel free to subscribe to my <a href="http://feeds.feedburner.com/jarodtaylor">RSS Feed</a> or get <a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=2753368&#038;loc=en_US">Email Updates</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jarodtaylor.com/blog/introduction/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
