<?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://jaredatchison.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaredatchison.com</link>
	<description>web design, development, wordpress, and lulz</description>
	<lastBuildDate>Wed, 07 Apr 2010 01:26:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>WordPress 3.0 beta 1</title>
		<link>http://jaredatchison.com/2010/04/wordpress-3-0-beta-1/</link>
		<comments>http://jaredatchison.com/2010/04/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://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://jaredatchison.com/2010/04/wordpress-3-0-beta-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Busy times</title>
		<link>http://jaredatchison.com/2010/04/busy-times/</link>
		<comments>http://jaredatchison.com/2010/04/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[programming]]></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://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>- <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" title="Disney" src="http://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" title="ColoradoMountain" src="http://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" title="codeigniter" src="http://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" title="studiopress-Genesis-Theme-Framework" src="http://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" title="4-hour-work_week" src="http://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://jaredatchison.com/2010/04/busy-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>13 Useful WordPress SQL Queries</title>
		<link>http://jaredatchison.com/2010/02/13-useful-wordpress-sql-queries/</link>
		<comments>http://jaredatchison.com/2010/02/13-useful-wordpress-sql-queries/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 18:10:26 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredatchison.com/?p=146</guid>
		<description><![CDATA[Good useful stuff. For example, if you needed to change some information across the board in WordPress, going through each record is very time consuming and prone to human error. By simply executing a SQL query against your WordPress database, you can make the necessary changes quickly and efficiently. 13 Useful WordPress SQL Queries You [...]]]></description>
			<content:encoded><![CDATA[<p>Good useful stuff.</p>
<blockquote><p>For example, if you needed to change some information across the board in WordPress, going through each record is very time consuming and prone to human error. By simply executing a SQL query against your WordPress database, you can make the necessary changes quickly and efficiently.</p></blockquote>
<p><a title="Permanent Link to 13 Useful WordPress SQL Queries You Wish You Knew Earlier" rel="bookmark" href="http://www.onextrapixel.com/2010/01/30/13-useful-wordpress-sql-queries-you-wish-you-knew-earlier/">13 Useful WordPress SQL Queries You Wish You Knew Earlier</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredatchison.com/2010/02/13-useful-wordpress-sql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress admin cracking script shows importance of security</title>
		<link>http://jaredatchison.com/2009/11/wordpress-admin-cracking-script/</link>
		<comments>http://jaredatchison.com/2009/11/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://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://jaredatchison.com/wp-content/uploads/2009/11/wp-bruteforce2.png"><img class="alignright size-full wp-image-123" title="wp-bruteforce2" src="http://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://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://jaredatchison.com/2009/11/wordpress-admin-cracking-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Security Tips</title>
		<link>http://jaredatchison.com/2009/11/wordpress-security-tips/</link>
		<comments>http://jaredatchison.com/2009/11/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://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 id="__ss_2500475" style="width: 425px; text-align: left;"><a style="font: 14px Helvetica,Arial,Sans-serif; display: block; margin: 12px 0 3px 0; text-decoration: underline;" title="WordPress Security - WordCamp NYC 2009" href="http://www.slideshare.net/williamsba/wordpress-security-updated">WordPress Security &#8211; WordCamp NYC 2009</a><object style="margin: 0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wordpress-security-updated-091114122947-phpapp02&amp;rel=0&amp;stripped_title=wordpress-security-updated" /><param name="allowfullscreen" value="true" /><embed style="margin: 0px;" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wordpress-security-updated-091114122947-phpapp02&amp;rel=0&amp;stripped_title=wordpress-security-updated" allowscriptaccess="always" allowfullscreen="true"></embed></object>
<p>&nbsp;</p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration: underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration: underline;" href="http://www.slideshare.net/williamsba">Brad Williams</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jaredatchison.com/2009/11/wordpress-security-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.9 beta 1 and WordPress MU 2.8.6</title>
		<link>http://jaredatchison.com/2009/11/wordpress-2-9-beta-1-and-wordpress-mu-2-8-6/</link>
		<comments>http://jaredatchison.com/2009/11/wordpress-2-9-beta-1-and-wordpress-mu-2-8-6/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 16:39:39 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Release]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU]]></category>

		<guid isPermaLink="false">http://jaredatchison.com/?p=118</guid>
		<description><![CDATA[Hot off the trails from last week&#8217;s Wordcamp NYC, the official 2.9 Beta 1 release is now available for download. From Mark via the wp-hackers mailing list: Big features to test: Basic image editing (rotate, flip, resize, crop) Post/Page image thumbnails. Enable the admin UI by declaring support in your theme: add_theme_support(&#8216;post-thumbnails&#8217;); Trash, with undo [...]]]></description>
			<content:encoded><![CDATA[<p>Hot off the trails from last week&#8217;s <a href="http://2009.newyork.wordcamp.org/">Wordcamp NYC</a>, the official 2.9 Beta 1 release is now <a href="http://wordpress.org/wordpress-2.9-beta-1.zip">available for download</a>.</p>
<p>From Mark via the wp-hackers mailing list:</p>
<blockquote><p>Big features to test:</p>
<ul>
<li>Basic image editing (rotate, flip, resize, crop)</li>
<li>Post/Page image thumbnails. Enable the admin UI by declaring support<br />
in your theme: add_theme_support(&#8216;post-thumbnails&#8217;);</li>
<li>Trash, with undo functionality, for posts, pages, comments</li>
<li>Comment Meta table and functions — like Custom Fields/postmeta but<br />
for comments</li>
<li>Easy media embeds, oEmbed — paste a URL on its own item and have it<br />
turn into embed code</li>
<li>register_theme_directory() which enables plugins to bundle their own<br />
themes, without copying (BuddyPress, primary example)</li>
<li>Combo upgrader — get notified of plugin updates in the WP core<br />
upgrader, as well as being informed of crowd-sourced compatibility<br />
information for the plugins.</li>
</ul>
<p>It&#8217;s bug-fixing and polishing time! Our priorities should be, in this order:</p>
<p>1. Fixing regressions in old features/behaviors<br />
2. Squashing bugs in the new features<br />
3. Polish</p></blockquote>
<p>Additionally, today WPMU has caught up and released 2.8.6. From the website:</p>
<blockquote><p>This is a security release with the same <a href="http://wordpress.org/development/2009/11/wordpress-2-8-6-security-release/">fixes as WordPress 2.8.6</a> plus quite a few MU specific <a href="http://trac.mu.wordpress.org/timeline">bug fixes</a> too.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jaredatchison.com/2009/11/wordpress-2-9-beta-1-and-wordpress-mu-2-8-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8.6 released</title>
		<link>http://jaredatchison.com/2009/11/wordpress-2-8-6-released/</link>
		<comments>http://jaredatchison.com/2009/11/wordpress-2-8-6-released/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 19:54:35 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Release]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress MU]]></category>
		<category><![CDATA[wordpress 2.8.6]]></category>

		<guid isPermaLink="false">http://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://jaredatchison.com/2009/11/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://jaredatchison.com/2009/11/rotating-banners-in-wordpress-with-jquery/</link>
		<comments>http://jaredatchison.com/2009/11/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[Wordpress]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Banners]]></category>
		<category><![CDATA[jcarousel]]></category>

		<guid isPermaLink="false">http://jaredatchison.com/?p=104</guid>
		<description><![CDATA[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. WooThemes and some of Matt Brett&#8217;s projects often use this method. This wasn&#8217;t going to cut it for me. I needed to have rotating banners that were [...]]]></description>
			<content:encoded><![CDATA[<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://jaredatchison.com/wp-content/uploads/2009/11/add_link_cat.png"><img class="size-large wp-image-105" title="add_link_cat" src="http://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://jaredatchison.com/wp-content/uploads/2009/11/find_cat.jpg"><img class="aligncenter size-large wp-image-106" title="find_cat" src="http://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://jaredatchison.com/wp-content/uploads/2009/11/add_link.jpg"><img class="aligncenter size-large wp-image-107" title="add_link" src="http://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  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;">
/* @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;ul&gt; list (inside the &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;">
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  <strong>index.php</strong> or <strong>home.php</strong> (the location you want to place your banners)  in your theme directory and use this snippet:</p>
<pre class="brush: php;">
&lt;div id=&quot;banners&quot;&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;/li&gt;&amp;show_images=1&amp;show_description=0' ); ?&gt;
&lt;/ul&gt;
 &lt;/div&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;">
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://jaredatchison.com/2009/11/rotating-banners-in-wordpress-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordCamp NYC 2009</title>
		<link>http://jaredatchison.com/2009/10/wordcamp-nyc-2009/</link>
		<comments>http://jaredatchison.com/2009/10/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 new york city]]></category>
		<category><![CDATA[wordcamp nyc]]></category>

		<guid isPermaLink="false">http://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://jaredatchison.com/wp-content/uploads/2009/10/Picture-1.png"><img class="alignright size-full wp-image-94" title="Picture 1" src="http://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://jaredatchison.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jaredatchison.com/2009/10/wordcamp-nyc-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress parent and sub category IDs</title>
		<link>http://jaredatchison.com/2009/10/wordpress-parent-and-sub-category-ids/</link>
		<comments>http://jaredatchison.com/2009/10/wordpress-parent-and-sub-category-ids/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 22:40:46 +0000</pubDate>
		<dc:creator>Jared</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress categories]]></category>
		<category><![CDATA[wordpress sub categories]]></category>

		<guid isPermaLink="false">http://jaredatchison.com/?p=89</guid>
		<description><![CDATA[The current project I am working left me needing to access the category ID (parent) and sub category ID for the sidebar.php I have several sections in the sidebar for posts using is_single() that get the most popular posts, recent posts, etc. The problem using the code below &#8211; which works if you don&#8217;t deal [...]]]></description>
			<content:encoded><![CDATA[<p>The current project I am working left me needing to access the category ID (parent) and sub category ID for the sidebar.php</p>
<p>I have several sections in the sidebar for posts using is_single() that get the most popular posts, recent posts, etc. The problem using the code below &#8211; which works if you don&#8217;t deal with sub categories &#8211; is it only gets the parent category ID.</p>
<pre class="brush: php;">
 $categories = get_the_category();
 $this_cat_ID = $categories[0]-&gt;cat_ID;
 $this_cat_name = $categories[0]-&gt;cat_name;
 $this_cat_url = get_category_link($this_cat_ID);
</pre>
<p>For example:<br />
I have <em>News</em> category that has an ID of 6, a <em>Press Release</em> sub category with the ID of 7, and a <em>TV Coverage </em>sub category with the ID of 8.<br />
The sidebar.php contains a block that displays the most recent posts.<br />
If I am viewing a press release post (single.php) I want to see the the <strong>only</strong> latest Press Release posts. Using $this_cat_ID, which is the parent category ID, it is going to show all the posts in the <em>News</em> including not only <em>Press Release </em>but also <em>TV Coverage</em>.</p>
<p>It&#8217;s easy to get the parent category id as I showed above, and while it isn&#8217;t difficult to get the sub category ID (or IDs if you have more than one), most examples I found on the WP.org forums didn&#8217;t do what I needed. You need to add a few lines to get the sub cat.</p>
<pre class="brush: php;">
$categories = get_the_category();
 $this_cat_ID = $categories[0]-&gt;cat_ID;
 $this_cat_name = $categories[0]-&gt;cat_name;
 $this_cat_url = get_category_link($this_cat_ID);
 // get the sub category if we have them
 foreach ($categories as $cat) {
    $parent = $cat-&gt;category_parent;
    if ($parent != 0 ){
       $sub_cat_ID = $cat-&gt;cat_ID;
       $sub_cat_name = $cat-&gt;cat_name;
       $sub_cat_url = get_category_link($sub_cat_ID);
    }
 }
</pre>
<p>With this code you still have access to the parent category ID but also gain the sub category ID.</p>
<p>All that is left is to just write a quick function that checks to see if there is a sub category, something that contains:</p>
<pre class="brush: php;">
if (!$sub_cat_ID) {
   echo $this_cat_ID;
} else {
   echo $sub_cat_ID;
}
</pre>
<p>Problem solved! Now viewing a post filed under <em>News</em> will show the most recent News posts, a post filed under <em>Press Coverage</em> will show the most recent Press Coverage posts, and so on.</p>
<p>FYI &#8211; this method only works if you are going to have a post in one sub category at a time, otherwise you will have to modify things so the sub category info gets stuck in an array.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaredatchison.com/2009/10/wordpress-parent-and-sub-category-ids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
