<?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>Jared Atchison&#187; WordPress</title>
	<atom:link href="http://www.jaredatchison.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaredatchison.com</link>
	<description>WordPress Consultant and Genesis Developer</description>
	<lastBuildDate>Fri, 27 Jan 2012 05:34:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Custom Metaboxes and Fields 0.9 released</title>
		<link>http://www.jaredatchison.com/2012/01/20/custom-metaboxes-and-fields-0-9-released/</link>
		<comments>http://www.jaredatchison.com/2012/01/20/custom-metaboxes-and-fields-0-9-released/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 20:29:01 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Custom Metaboxes and Fields]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=882</guid>
		<description><![CDATA['m happy to announce Custom Metaboxes and Fields for WordPress version 0.9 is out and ready for consumption. This is probably one of the large updates we have put out as it contains a lot of fixes, tweaks, and even a few nice additions.]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-898" title="Custom metaboxes and fields for WordPress" src="http://www.jaredatchison.com/wp-content/uploads/2012/01/cmb.jpg" alt="Custom metaboxes and fields for WordPress" width="620" height="300" /></p>
<p>After a few months in the works I&#8217;m happy to announce <a href="https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress">Custom Metaboxes and Fields for WordPress</a> version 0.9 is out and ready for consumption.<span id="more-882"></span></p>
<p>This is probably one of the large updates we have put out as it contains a <em>lot</em> of fixes, tweaks, and even a few nice additions. Taken straight from the readme, here&#8217;s a list of what new with 0.9!</p>
<ul>
<li>Cleaned up scripts being queued</li>
<li>Cleaned up and reorganized jQuery</li>
<li>Use $pagenow instead of custom $current_page</li>
<li>Fixed CSS, removed inline styles, now all in style.css</li>
<li>Fixed multicheck issues (issue #48)</li>
<li>Fixed jQuery UI datepicker CSS conflicting with WordPress UI elements</li>
<li>Fixed zeros not saving in fields</li>
<li>Fixed improper labels on radio and multicheck fields</li>
<li>Fixed fields not rendering properly when in sidebar</li>
<li>Fixed bug where datepicker triggers extra space after footer in Firefox</li>
<li>Added jQuery UI datepicker packaged with 3.3 core</li>
<li>Added date time combo picker</li>
<li>Added color picker</li>
<li>Added readme.md markdown file</li>
</ul>
<p><a href="http://www.billerickson.net">Bill</a> and <a href="http://andrewnorcross.com/">Norcross</a> have put in a lot of time for past releases, so in this release I tried to pick up the slack as I hadn&#8217;t been as active.</p>
<p>If you are using 0.8 you should be able to upgrade without any issues. However it&#8217;s worth noting <strong>this release is for WordPress 3.3+</strong> &#8211; if you have not upgraded to 3.3 do not use 0.9.</p>
<h6>What&#8217;s next</h6>
<p>The next version is going to be a good one, so definitely keep an eye out. You can take a peak at the To-do in the <a href="https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress/blob/master/readme.md">readme</a> to get an idea of what&#8217;s on our radar. Specifically here&#8217;s a few things that are a priority in 1.0:</p>
<ul>
<li>Code cleanup. Since CMB has a rather large user base now, I figure we owe it to them to tidy up the code. This is going to be the #1 goal (but not the only) for 1.0.</li>
<li>Improve inline documentation. This goes hand-in-hand with the first point.</li>
<li>Move the jQuery datepicker and timepicker code inline and make each instance configurable with options passed through the array. This will allow multiple timepickers with different ranges, etc.</li>
<li>Add array option for placeholder value. Now that most modern browsers support this (html5) it should be a no-brainer.</li>
<li>Add array option for required elements. Like the previous point, this should be easy thanks to HTML5.</li>
</ul>
<div>There are a few other features, if time permits, we are going to try to squeeze in as well &#8211; but the ones above will be the focus.</div>
<h6>Props!</h6>
<p>Special thanks to <a href="http://garyjones.co.uk/">Gary Jones</a> for some great feedback as well as tweaks, <a href="http://www.billerickson.net">Bill</a> for squashing a few bugs, and everyone who has been reporting bugs on GitHub.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2012/01/20/custom-metaboxes-and-fields-0-9-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fetch total custom post type count</title>
		<link>http://www.jaredatchison.com/2011/08/08/fetch-total-custom-post-type-count/</link>
		<comments>http://www.jaredatchison.com/2011/08/08/fetch-total-custom-post-type-count/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 21:28:29 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[custom post types]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=750</guid>
		<description><![CDATA[I recently was working on my own Genesis CRM (similar&#160;to what Bill Erickson has released). Unlike the other CRMs out there I decided to create a custom post type for my contacts instead of doing a bunch of magic to use posts. In a few places throughout the app I needed to pull the total [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was working on my own Genesis CRM (similar&nbsp;to what Bill Erickson <a href="http://www.billerickson.net/wordpress-genesis-crm/">has released</a>).</p>
<p>Unlike the other CRMs out there I decided to create a custom post type for my contacts instead of doing a bunch of magic to use posts. In a few places throughout the app I needed to pull the total number of contact entries in the database.</p>
<p>Turns out, it is <strong>very</strong> easy to do! Just a few lines of code, which you can see below. Make sure and change <em>contact</em> to the name of your post type.</p>
<pre class="brush: php; title: ; notranslate">
function ja_total_post_count() {
	global $wpdb;
	$numposts = $wpdb-&gt;get_var(&quot;SELECT COUNT(*) FROM $wpdb-&gt;posts WHERE post_type = 'contact'&quot;);
	if (0 &lt; $numposts) $numposts = number_format($numposts);
	return $numposts;
}
// To use...
echo 'Number of total contacts: ' . ja_total_post_count();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2011/08/08/fetch-total-custom-post-type-count/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Speaking at WordCamp Austin</title>
		<link>http://www.jaredatchison.com/2010/10/19/speaking-at-wordcamp-austin/</link>
		<comments>http://www.jaredatchison.com/2010/10/19/speaking-at-wordcamp-austin/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 02:42:56 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordcamp austin]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=362</guid>
		<description><![CDATA[I&#8217;m going to be speaking at WordCamp Austin on Saturday, December 4th, 2010. The presentation I will be giving is titled Oops! Common WordPress mistakes (and more). Let’s face it, much of our learning is done by trial and error. Wouldn’t it be awesome if someone would just tell us the errors and save us [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to be speaking at <a href="http://austinwordcamp.org/">WordCamp Austin</a> on Saturday, December 4th, 2010.</p>
<p><a href="http://austinwordcamp.org/2010/jared-atchison/"><img class="aligncenter size-full wp-image-363" title="wcatx" src="http://www.jaredatchison.com/wp-content/uploads/2010/10/wcatx.jpg" alt="WordCamp Austin Speaker" width="487" height="226" /></a></p>
<p>The presentation I will be giving is titled <em><strong>Oops! Common WordPress mistakes (and more)</strong></em>.</p>
<blockquote><p>Let’s face it, much of our learning is done by trial and error. Wouldn’t  it be awesome if someone would just tell us the errors and save us the  time? We’ll take a look at common mistake by WordPress beginners and  intermediates alike – and the correct solutions. Additionally we will  also throw in some helpful tips and Q&amp;A.</p></blockquote>
<p>I think it&#8217;s going to be a great WordCamp. If you are going to be attending let me know, we&#8217;ll meet up and grab some drinks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2010/10/19/speaking-at-wordcamp-austin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 beta 1</title>
		<link>http://www.jaredatchison.com/2010/04/06/wordpress-3-0-beta-1/</link>
		<comments>http://www.jaredatchison.com/2010/04/06/wordpress-3-0-beta-1/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 01:26:13 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress 3]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=167</guid>
		<description><![CDATA[WordPress 3 beta 1 released this past weekend, so go ahead and try it out. Installed it today on this blog and so far it has been smooth sailing. There are tons of new features in WordPress 3, if you want to read up on things this is the most comprehensive overview I have seen  [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 3 beta 1 released this past weekend, so go ahead and try it out. Installed it today on this blog and so far it has been smooth sailing.</p>
<p>There are tons of new features in WordPress 3, if you want to read up on things<a href="http://dougal.gunters.org/blog/2010/04/02/running-on-wordpress-3-0-alpha?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss"> this is the most comprehensive overview</a> I have seen  on WP 3.</p>
<p>Expect a final release in the next 30-60 days!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2010/04/06/wordpress-3-0-beta-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Busy times</title>
		<link>http://www.jaredatchison.com/2010/04/01/busy-times/</link>
		<comments>http://www.jaredatchison.com/2010/04/01/busy-times/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 01:08:54 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[Genesis framework]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[vacation]]></category>
		<category><![CDATA[wordpress 3]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=157</guid>
		<description><![CDATA[I&#8217;ve been busy lately, but I&#8217;m still around &#8211; despite my lack of posting. I&#8217;ll try to get back on track, I promise. So what exactly have I been up to? - Planned a week long vacation to Disney World in May with my girlfriend. - Scheduled a week long  4-wheeling trip in the Colorado [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been busy lately, but I&#8217;m still around &#8211; despite my lack of posting. I&#8217;ll try to get back on track, I promise.</p>
<p>So what exactly have I been up to?</p>
<p><span id="more-157"></span>- <strong>Planned a week long vacation to Disney World</strong> in May with my girlfriend.</p>
<p style="text-align: center"><img class="size-medium wp-image-160 aligncenter" src="http://www.jaredatchison.com/wp-content/uploads/2010/04/Disney-300x199.jpg" alt="" width="300" height="199" /></p>
<p>- <strong>Scheduled a week long  4-wheeling trip</strong> in the Colorado Mountains this July.</p>
<p><img class="aligncenter size-medium wp-image-161" src="http://www.jaredatchison.com/wp-content/uploads/2010/04/ColoradoMountain-300x199.jpg" alt="" width="300" height="199" /></p>
<p>- <strong>Started learning CodeIgniter </strong>and am 2/3 the way through writing my first fairly detailed web app. For the record, CodeIgniter is fantastic. If you need more than a basic website, and WordPress does&#8217;t fit the mold, I highly recommend looking into CodeIgniter.</p>
<p><img class="aligncenter size-full wp-image-162" src="http://www.jaredatchison.com/wp-content/uploads/2010/04/codeigniter.png" alt="" width="137" height="189" /></p>
<p>- <strong>Began to play with the Genesis WordPress framework</strong>. I love to buy themes just to look under the hood and learn from the authors. I have purchased Thesis, Genesis, a variety of WooThemes themes,  and a few of Matt Brett&#8217;s themes. They each have their unique aspect to offer. Genesis is no different. The documentation is still in development right now, but it has very good potential. Definitely worth looking into.</p>
<p><img class="aligncenter size-thumbnail wp-image-163" src="http://www.jaredatchison.com/wp-content/uploads/2010/04/studiopress-Genesis-Theme-Framework-100x100.jpg" alt="" width="100" height="100" /></p>
<p>-<strong> Built and developed a directory based website on the Genesis framework</strong>. The side is about 85% complete and it has been great and educational project. I&#8217;ll have a more detailed write up once the site officially launches.</p>
<p>- <strong>Read the <em>4 Hour Work Week</em> by Tim Farris.</strong> As someone who was previously big into the affiliate marketing scene, this book is great. I learned a lot of things from it and it is also quite motivational. I don&#8217;t think everyone will because to relate to it, but I cetainly did. I look forward to re-reading it in the coming months. I&#8217;ll try to post a more detailed review soon. I also started Reading <em>Crush It</em> and <em>Rework</em>.</p>
<p><img class="aligncenter size-medium wp-image-164" src="http://www.jaredatchison.com/wp-content/uploads/2010/04/4-hour-work_week-197x300.jpg" alt="" width="197" height="300" /></p>
<p>- <strong>Following the development of WordPress 3.0</strong>. This is going to be &#8211; hands down &#8211; the best release to date. WP 3.0 beta 1 will be released this weekend with the goal of a final release in the next 30-60 days. Custom post types, custom taxonomies, WPMU merger, and a new default theme (twentyten) are just a few of the awesome features WordPress 3.0 will bring to the table. I recommend you check out beta 1 when it comes out this weekend.</p>
<p>To say I been keeping busy is an understatement, but I can&#8217;t complain. I&#8217;ll have some more ideas for posts in the can, so there should be fresh content going up soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2010/04/01/busy-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress admin cracking script shows importance of security</title>
		<link>http://www.jaredatchison.com/2009/11/30/wordpress-admin-cracking-script/</link>
		<comments>http://www.jaredatchison.com/2009/11/30/wordpress-admin-cracking-script/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 20:44:41 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress security]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=122</guid>
		<description><![CDATA[I stumbled on a very interesting article floating around Twitter this morning, one worth pointing out I believe. The short write up, titled Distributed WordPress admin account cracking, exposes a malicious script which was written specifically to crack WordPress admin passwords. The acquired script is written in PHP and performs brute force cracking attempts to [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled on a very interesting article floating around Twitter this morning, one worth pointing out I believe.</p>
<p>The short write up, titled <em><a href="http://isc.sans.org/diary.html?storyid=7663">Distributed WordPress admin account cracking</a></em>, exposes a malicious script which was written specifically to crack WordPress admin passwords.</p>
<blockquote><p>The acquired script is written in PHP and performs brute force cracking attempts to WordPress admin accounts</p>
<p>[...]</p>
<p>Now, the interesting thing about the script is that it allows distributed cracking. Information is saved in a MySQL database and the script actually connects directly to the main database. This allows the attacker to run many simultaneous scripts – each of them will take 200 new URLs and mark them with the brute forcer&#8217;s ID ($colo).</p></blockquote>
<p>There is nothing new or revolutionary about this script. If you have a beefy password and are up-to-date (2.8.6 as of today!) there&#8217;s no reason to worry. But I believe this illustrates the importance of doing everything possible to secure your website.</p>
<p><a href="http://www.jaredatchison.com/wp-content/uploads/2009/11/wp-bruteforce2.png" rel="shadowbox[sbpost-122];player=img;"><img class="alignright size-full wp-image-123" src="http://www.jaredatchison.com/wp-content/uploads/2009/11/wp-bruteforce2-e1259613820287.png" alt="" width="354" height="289" /></a>In my last post, I embedded <a href="http://www.jaredatchison.com/2009/11/wordpress-security-tips/">Brad&#8217;s WordPress security presentation</a> he gave at WordCamp NYC. It contains simple yet effective ways to secure your WordPress installations &#8211; definitely worth a quick look.</p>
<p>I&#8217;ve had a few people ask me what are the quickest/easiest ways to get started securing their WP site. Almost every single thing in Brad&#8217;s presentation is important, but in my mind 2 things are the most important and can be executed in a matter of minutes.</p>
<p><strong>Delete your &#8216;admin&#8217; account</strong>. Yes, that&#8217;s right. Nuke it. Scripts such as the one mentioned above try to gain access to your website by logging into the admin account &#8211; the account with the user name <em>&#8216;admin</em>&#8216;. Create a new account, something like RobSmith (or anything other than admin!), give it admin privileges, and then delete the default admin user. You will thank me later.</p>
<p><strong>Don&#8217;t use wp_ as your default prefix</strong>. You probably don&#8217;t remember, but when you were flying through WordPress&#8217;s famous 5 click install one of the options it asked you for was the default WordPress prefix to use with the database. That&#8217;s right, I figured you didn&#8217;t remember. By default it&#8217;s set to <em>wp_</em> &#8211; this should be changed. If you have already setup your blog, you can change it using some phpmyadmin trickery, but make sure you know what you are doing first.</p>
<p>As WordPress becomes even more mainstream (gasp!) it will continue to be attacked by script kiddies and other nefarious characters. However by staying up to date and taking the appropriate steps to secure your site, you really don&#8217;t have anything to worry about.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2009/11/30/wordpress-admin-cracking-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Security Tips</title>
		<link>http://www.jaredatchison.com/2009/11/19/wordpress-security-tips/</link>
		<comments>http://www.jaredatchison.com/2009/11/19/wordpress-security-tips/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 23:21:44 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress security]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=120</guid>
		<description><![CDATA[WDS-Brad from WebDevStudios had a good presentation on WordPress Security at Wordcamp NYC. Here&#8217;s the slideshow: WordPress Security &#8211; WordCamp NYC 2009 &#160; View more presentations from Brad Williams.]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/williamsba">WDS-Brad</a> from <a href="http://webdevstudios.com/">WebDevStudios</a> had a good presentation on WordPress Security at Wordcamp NYC. Here&#8217;s the slideshow:</p>
<div style="width: 425px;text-align: left"><a title="WordPress Security - WordCamp NYC 2009" href="http://www.slideshare.net/williamsba/wordpress-security-updated">WordPress Security &#8211; WordCamp NYC 2009</a>
<p>&nbsp;</p>
<div style="font-size: 11px;font-family: tahoma,arial;height: 26px;padding-top: 2px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/williamsba">Brad Williams</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2009/11/19/wordpress-security-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8.6 released</title>
		<link>http://www.jaredatchison.com/2009/11/12/wordpress-2-8-6-released/</link>
		<comments>http://www.jaredatchison.com/2009/11/12/wordpress-2-8-6-released/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 19:54:35 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[MultiSite]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress 2.8.6]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=114</guid>
		<description><![CDATA[Just about an hour ago WordPress 2.8.6 was finalized and released. Nothing exciting with this release &#8211; just a few security fixes. From the WordPress.org blog: 2.8.6 fixes two security problems that can be exploited by registered, logged in users who have posting privileges.  If you have untrusted authors on your blog, upgrading to 2.8.6 [...]]]></description>
			<content:encoded><![CDATA[<p>Just about an hour ago WordPress 2.8.6 was finalized and released. Nothing exciting with this release &#8211; just a few security fixes.</p>
<p>From the <a href="http://wordpress.org/development/2009/11/wordpress-2-8-6-security-release/">WordPress.org blog</a>:</p>
<blockquote><p>2.8.6 fixes two security problems that can be exploited by registered, logged in users who have posting privileges.  If you have untrusted authors on your blog, upgrading to 2.8.6 is recommended.</p></blockquote>
<p>On another note, WordPress 2.9 is still scheduled for a final release at the end of November/early December. You can still download and test the latest <a href="http://wordpress.org/nightly-builds/wordpress-latest.zip">WP 2.9 nightly build here</a>.</p>
<p>Finally, <a href="http://mu.wordpress.org">WordPress MU</a> received a few updates last week and is now up to 2.8.5.2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2009/11/12/wordpress-2-8-6-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rotating banners in WordPress with jQuery</title>
		<link>http://www.jaredatchison.com/2009/11/12/rotating-banners-in-wordpress-with-jquery/</link>
		<comments>http://www.jaredatchison.com/2009/11/12/rotating-banners-in-wordpress-with-jquery/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 18:39:44 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Banners]]></category>
		<category><![CDATA[jcarousel]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=104</guid>
		<description><![CDATA[Important Note: This post is quite dated as it is from 2009. Everything mentioned below will still work, however, since this post was written there have been several plugins released that are worth considering first. Make sure and check out the list below! WP-Cycle Genesis Slider (requires the Genesis Framework) jQuery Slider These are the [...]]]></description>
			<content:encoded><![CDATA[<div class="infoboxblue">
<h4>Important Note:</h4>
<p>This post is quite dated as it is from 2009. Everything mentioned below will still work, <em>however</em>, since this post was written there have been several plugins released that are worth considering first. Make sure and check out the list below!</h4>
<ul>
<li><a href="http://wordpress.org/extend/plugins/wp-cycle/">WP-Cycle</a></li>
<li><a href="http://wordpress.org/extend/plugins/genesis-slider/">Genesis Slider</a> (requires the <a href="/go/genesis/">Genesis Framework</a>)</li>
<li><a href="http://wordpress.org/extend/plugins/jquery-slider/">jQuery Slider</a></li>
</ul>
<p>These are the ones I recommend. If these do not fit the bill there are <a href="http://wordpress.org/extend/plugins/search.php/page/1?q=jquery+slider">tons to choose</a> from on WordPress.org
</div>
<p>Recently I had a project that needed to have a rotating banner on the main page. Most rotating banners out there are connected to feature posts or articles. <a href="http://woothemes.com">WooThemes</a> and some of <a href="http://mattbrett.com">Matt Brett&#8217;s</a> projects often use this method.</p>
<p>This wasn&#8217;t going to cut it for me. I needed to have rotating banners that were not associated to any posts, could link off site, be updated/maintained by the client, and preferably <em>not use any custom field voodoo</em>. The last thing I wanted to do was use a post category since it would be major over kill.</p>
<p>So I came up with a solution that fit all my requirements above and works great. Figured I would share what I did in case anyone else needs a similar solution.</p>
<p>The rotating banners were accomplished using:</p>
<ul>
<li>jQuery</li>
<li><a href="http://sorgalla.com/jcarousel/">jQuery Carousel plugin</a></li>
<li>WordPress Link Manger</li>
</ul>
<p>Let&#8217;s get started here.</p>
<h4>Step 1: setup a link category</h4>
<p>When you&#8217;re logged into the WP admin panel, click on <em>Links</em> on the left (under <em>Media</em>, above <em>Pages</em>). The <em>Links</em> section will expand and now we need to create a Link Category.</p>
<div id="attachment_105" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.jaredatchison.com/wp-content/uploads/2009/11/add_link_cat.png" rel="shadowbox[sbpost-104];player=img;"><img class="size-large wp-image-105" src="http://www.jaredatchison.com/wp-content/uploads/2009/11/add_link_cat-600x409.png" alt="add_link_cat" width="600" height="409" /></a><p class="wp-caption-text">Add your Banner category</p></div>
<p>After you have added your Banner category (or whatever you decide to name it) you want to find the ID for that category. There are 2 ways you can do this. First, place you cursor over the category and look in browser status bar.</p>
<p><a href="http://www.jaredatchison.com/wp-content/uploads/2009/11/find_cat.jpg" rel="shadowbox[sbpost-104];player=img;"><img class="aligncenter size-large wp-image-106" src="http://www.jaredatchison.com/wp-content/uploads/2009/11/find_cat-600x418.jpg" alt="find_cat" width="600" height="418" /></a></p>
<p>The second option is to use Sivel&#8217;s <a href="http://wordpress.org/extend/plugins/simply-show-ids/">Simply Show IDs plugin </a>which will tell you the ID. Either way, just make sure you note what the ID is for your category since we will need it later.</p>
<h4>Step 2: add some banners</h4>
<p>Now we will add some links to the category. Click Add New under Links.</p>
<p><a href="http://www.jaredatchison.com/wp-content/uploads/2009/11/add_link.jpg" rel="shadowbox[sbpost-104];player=img;"><img class="aligncenter size-large wp-image-107" src="http://www.jaredatchison.com/wp-content/uploads/2009/11/add_link-528x600.jpg" alt="add_link" width="528" height="600" /></a></p>
<p>The name and description is for your reference and will not be shown or used. Make sure you place the link in the category you created. Lastly you will need to put the location of the image in the<em> Image Address</em> field. The easiest way is to upload your banners using the WordPress Media manager. If you go that route your image location will be something similar to http://yoursite.com/wp-contents/uploads/11/09/banner.jpg.</p>
<h4>Step 4: downloading&nbsp; and moving jQuery Carousel</h4>
<p>Now that we have the banner category created and some links/images in the category we need to get things setup behind the scenes.</p>
<p>First, download <a href="http://sorgalla.com/jcarousel/">jQuery Carousel</a>.</p>
<p>Secondly, unzip the files. You will see a bunch of files, most of which we won&#8217;t need.</p>
<p>Open up your theme folder (/wp-contents/themes/yourtheme/) and create a folder inside called <strong>js</strong>.</p>
<p>Now we need to move <strong>jquery.jcarousel.pack.js</strong> <em>or</em> jquery.jcarousel.js (look in the /libs/) to this folder. The path should be similar to <strong>/wp-contents/themes/yourtheme/js/jquery.jcarousel.pack.js</strong></p>
<p>Note: It is up to you which version of jCarousel you use. I prefer the packed version since it is smaller and we will not need to do any editing.</p>
<p>After the jCarousel javascript file has been moved we need to move over the CSS. Open jquery.jcarousel.css, copy the contents, and paste it into your theme&#8217;s style.css.</p>
<p>So to recap, you should have:<br />
/wp-contents/themes/yourtheme/js/jquery.jcarousel.pack.js<br />
/wp-contents/themes/yourtheme/style.css (should contain the CSS from jquery.jcarousel.css)</p>
<h4>Step 5: setting up jCarousel and jQuery</h4>
<p>Once you have added the necessary jCarousel CSS to your theme&#8217;s style.css you will need to edit it to meet the dimensions of your banner.</p>
<pre class="brush: css; title: ; notranslate">
/* @group jcarousel */

.jcarousel-banners {
 border: 1px solid #cfcfcf;
 margin:0 0 30px 0;
}

.jcarousel-container {
 position: relative;
}

.jcarousel-clip {
 z-index: 2;
 padding: 0;
 margin: 0;
 overflow: hidden;
 position: relative;
}

.jcarousel-list {
 z-index: 1;
 overflow: hidden;
 position: relative;
 top: 0;
 left: 0;
 margin: 0;
 padding: 0;
}

.jcarousel-list li,
.jcarousel-item {
 float: left;
 list-style: none;
 /* We set the width/height explicitly. No width/height causes infinite loops. */
 width: 578px;
 height: 130px;
}

/**
 * The buttons are added dynamically by jCarousel before
* the&lt;/pre&gt;
&lt;ul&gt;
&lt;ul&gt;list (inside the&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;described above) and
 * have the classnames &quot;jcarousel-next&quot; and &quot;jcarousel-prev&quot;.
 */
.jcarousel-next {
 display: none;
}
.jcarousel-prev {
 display: none;
}

.jcarousel-banners .jcarousel-list li,
.jcarousel-banners .jcarousel-item {
 position: relative;
 float: left;
 list-style: none;
 width: 578px;
 height: 130px;
}

.jcarousel-banners .jcarousel-container-horizontal {
 width: 578px;
}

.jcarousel-banners .jcarousel-clip-horizontal {
 width: 578px;
 height: 130px;
}

.jcarousel-banners .jcarousel-item {
 width: 578px;
 height: 130px;
}
</pre>
<p>Above is what the CSS looks like for my website. The size of the banners is 578x130px. Change this to the size of your banners. You might need to do some further tweaking later.</p>
<p>Now the CSS is done and jCarousel is in place we need to tell WordPress to use jQuery and jCarousel when it loads a page.</p>
<p>Open up <strong>functions.php</strong> inside your theme directory. You may have to create it if your theme does not have one. Now add this:</p>
<pre class="brush: php; title: ; notranslate">
if (!is_admin()) {
wp_enqueue_script('jquery');
wp_enqueue_script('jcarousel','/wp-content/themes/yourtheme/js/jquery.jcarousel.js',false,false);
}
</pre>
<p>WordPress includes many scripts out of the box, one of them being jQuery, so there is no need for us to download it. The code snippet tells WordPress &#8211; as long as we are not in the admin panel &#8211; to load jQuery and the jCarousel script.</p>
<h4>Step 6: finishing things up on the front end</h4>
<p>Your banners have been created, the files have been moved, and WordPress now knows to use jQuery and jCarousel when a page loads &#8211; almost done!</p>
<p>The last thing we need to do is add the code to grab the banners and make them work.</p>
<p>Open up&nbsp; <strong>index.php</strong> or <strong>home.php</strong> (the location you want to place your banners)&nbsp; in your theme directory and use this snippet:</p>
<pre class="brush: php; title: ; notranslate">&lt;/pre&gt;
&lt;div id=&quot;banners&quot;&gt;
&lt;ul&gt;
&lt;ul&gt;&lt;!--?php wp_list_bookmarks( 'categorize=0&amp;category=49&lt;&amp;title_li=&amp;before=
	&lt;li--&gt;&amp;after=&lt;/ul&gt;
&lt;/ul&gt;
&lt;ul&gt;&amp;show_images=1&amp;show_description=0' ); ?&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;pre&gt;
</pre>
<p>This snippet will grab links you created earlier and only show the images. Make sure you change category=49 to your category ID.</p>
<p>Lastly, open <strong>header.php</strong> in your theme directory. Place the code snippet below in between the &lt;head&gt; &lt;/head&gt; tags &#8211; usually right after you see wp_head();</p>
<pre class="brush: jscript; title: ; notranslate">
jQuery(document).ready(function($) {
$('#banners').jcarousel({
scroll: 1,
auto: 4,
wrap: 'last',
animation: 'slow',
buttonNextHTML: null,
buttonPrevHTML: null
});
});
</pre>
<p>The jQuery that comes with WordPress runs in non conflict mode, which is why do not use the typical document ready call. jCarousel is very configurable, so I suggest you check out all the <a href="http://sorgalla.com/projects/jcarousel/#Configuration">different options</a> and make sure your settings are set for the functionality you desire.</p>
<h3>Step 7: Profit.</h3>
<p><strong><em>That&#8217;s it!</em></strong> If you followed all the steps right you should have a rotating banner on your site.</p>
<p>I found this to be a better solution that any of the plugins I found. We didn&#8217;t have to do anything crazy, use posts, or write any plugins. Normally I would provide a demo of this in action but I have a feeling the client I did this for would rather not be mentioned.</p>
<p>If you have an questions or problems, feel free to leave a comment.</p>
<p>If you do expereince problems, a few things to double check/tweak:</p>
<ul>
<li>view your source to make sure WP is calling jQuery and jCarousel</li>
<li>check to make sure you have the correct category ID</li>
<li>modify the CSS if things don&#8217;t render correctly</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2009/11/12/rotating-banners-in-wordpress-with-jquery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordCamp NYC 2009</title>
		<link>http://www.jaredatchison.com/2009/10/29/wordcamp-nyc-2009/</link>
		<comments>http://www.jaredatchison.com/2009/10/29/wordcamp-nyc-2009/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 20:37:43 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[new york city]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordcamp nyc]]></category>

		<guid isPermaLink="false">http://www.jaredatchison.com/?p=93</guid>
		<description><![CDATA[I&#8217;m throwing around the idea of possibly making a trip up to NYC for WordCamp in a few weeks. The sessions are are lined up, there are a ton of great speakers, and many of the characters from #wordpress will be in attendance (*cough* sivel, ansi, jdingman, etc). Not worried about airfare (Go Southwest! ha) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jaredatchison.com/wp-content/uploads/2009/10/Picture-1.png" rel="shadowbox[sbpost-93];player=img;"><img class="alignright size-full wp-image-94" src="http://www.jaredatchison.com/wp-content/uploads/2009/10/Picture-1.png" alt="Picture 1" width="225" height="105" /></a>I&#8217;m throwing around the idea of possibly making a trip up to NYC for WordCamp in a few weeks.</p>
<p>The sessions are are lined up, there are a ton of great speakers, and many of the characters from <a href="irc://irc.freenode.net/wordpress">#wordpress</a> will be in attendance (*cough* sivel, ansi, jdingman, etc).</p>
<p>Not worried about airfare (Go Southwest! ha) or registration, however I am looking for help on lodging.</p>
<p>There is a <a href="http://2009.newyork.wordcamp.org/2009/10/21/hotel-discounts/">hotel within walking distance that has a 15% discount</a>, bringing it down to ~ $210/night. I wanted to see if anyone who was thinking about attending would want to maybe slplit a room.</p>
<p>Alternately, anyone have any other recommendations for places to stay? I&#8217;d prefer to not shell out $210 a night by myself unless I must. After all in Texas $210 a night would damn near get you a suite! Stupid inflation. <img src='http://www.jaredatchison.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredatchison.com/2009/10/29/wordcamp-nyc-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced

Served from: www.jaredatchison.com @ 2012-02-05 03:16:38 -->
