<?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>Richmond Hill Ga Website Design Web Design &#187; Wordpress</title>
	<atom:link href="http://richmondhillwebdesign.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://richmondhillwebdesign.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 11 Jun 2010 18:29:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Integrating Nivo Slider into WordPress</title>
		<link>http://richmondhillwebdesign.com/2010/06/integrating-nivo-slider-into-wordpress/</link>
		<comments>http://richmondhillwebdesign.com/2010/06/integrating-nivo-slider-into-wordpress/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 18:25:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Slideshow]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://richmondhillwebdesign.com/?p=88</guid>
		<description><![CDATA[I&#8217;m fairly new to the jquery-powered slideshow, but have found several easy-to-use slideshow plugins that have really been fun to use. I&#8217;ve used the plugin on a client&#8217;s static site, but wanted to figure out a way to have a jquery plugin, specifically Nivo Slider (because I really like it), integrate with WordPress in a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m fairly new to the <a href="http://jquery.com/">jquery</a>-powered slideshow, but have found several easy-to-use slideshow plugins that have really been fun to use.</p>
<p>I&#8217;ve used the plugin on a client&#8217;s static site, but wanted to figure out a way to have a jquery plugin, specifically <a href="http://nivo.dev7studios.com/">Nivo Slider</a> (because I really like it), integrate with WordPress in a non-obtrusive way.</p>
<p>That said, there is already a <a href="http://wordpress.org/extend/plugins/wp-nivo-slider/">WordPress plugin for Nivo Slider</a>, but you have to use a photo uploader on the sidebar, and I&#8217;m really particular about NOT confusing my clients, some of whom are scared to death of computers and the web <img src='http://richmondhillwebdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I really just wanted a way for a client to be able to add a new post, upload a photo from the standard photo uploader, select a category, and have their photo added to the slideshow. No muss, no fuss&#8230;and no extra instructions.</p>
<p>As I was thinking about how to get a post photo to show up automatically, I thought about a plugin for WordPress that I already use quite frequently, <a href="http://wordpress.org/extend/plugins/the-attached-image/">The Attached Image.</a> This great little plugin allows you to pull the first photo from your content and do a variety of things with it in your theme templates. I love it especially for adding thumbnails to article lists and the like, but I thought it might serve my purpose here as well.</p>
<p>You can see the working version <a href="http://nivo.dev7studios.com/">at Waltrich.com</a>, a great client who sells lawn chair webbing as well as old school aluminum webbed lawn chairs.</p>
<p>First, I created a slideshow category under Posts &gt; Categories, so that a user could assign this category to the post.</p>
<p>Next, I double checked the category ID for use in my template ( Category ID 3 in this case), and added the following code.</p>
<blockquote class="code"><p><code></p>
<div id="_mcePaste">&lt;div id="slider"&gt;</div>
<div id="_mcePaste">&lt;?php $recent = new WP_Query("cat=3&amp;showposts=100"); while($recent-&gt;have_posts()) : $recent-&gt;the_post();?&gt;</div>
<div id="_mcePaste">&lt;?php the_attached_image('img_size=full', $recent); ?&gt;</div>
<div id="_mcePaste">&lt;?php endwhile; ?&gt;</div>
<div id="_mcePaste">&lt;/div&gt;&lt;!--/slider--&gt;</div>
<p></code></p></blockquote>
<p>The slider id is called in the javascript and the WordPress query, &#8220;recent&#8221; is asking for the latest 100 (add your own number here) posts in the slideshow category.</p>
<p>The attached image code asked for the full sized image in the post, and displays each one from the loop.</p>
<p>After you&#8217;ve gotten this code installed, make sure you follow the usage instructions found on <a href="http://nivo.dev7studios.com/">Nivo Slider&#8217;s website.</a> You can use the following code in your header (inside the head tag) if you like. It&#8217;s a pretty basic install really.</p>
<blockquote class="code"><p><code>&lt;link rel="stylesheet" href="yourdomain.com/nivo-slider.css" type="text/css" media="screen" /&gt;</code></p>
<p><code>&lt;script src="yourdomain.com/jquery-1.4.2.min.js" type="text/javascript"&gt;&lt;/script&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;script src="yourdomain.com/jquery.nivo.slider.pack.js" type="text/javascript"&gt;&lt;/script&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;script type="text/javascript"&gt;</p>
<p><span style="white-space: pre;"> </span>$(window).load(function() {</p>
<p><span style="white-space: pre;"> </span>$('#slider').nivoSlider({</p>
<p><span style="white-space: pre;"> </span>effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'</p>
<p><span style="white-space: pre;"> </span>slices:15,</p>
<p><span style="white-space: pre;"> </span>animSpeed:500,</p>
<p><span style="white-space: pre;"> </span>pauseTime:5000,</p>
<p><span style="white-space: pre;"> </span>startSlide:0, //Set starting Slide (0 index)</p>
<p><span style="white-space: pre;"> </span>directionNav:false, //Next &amp; Prev</p>
<p><span style="white-space: pre;"> </span>directionNavHide:false, //Only show on hover</p>
<p><span style="white-space: pre;"> </span>controlNav:false, //1,2,3...</p>
<p><span style="white-space: pre;"> </span>controlNavThumbs:false, //Use thumbnails for Control Nav</p>
<p><span style="white-space: pre;"> </span> controlNavThumbsFromRel:false, //Use image rel for thumbs</p>
<p><span style="white-space: pre;"> </span>controlNavThumbsSearch: '.jpg', //Replace this with...</p>
<p><span style="white-space: pre;"> </span>controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src</p>
<p><span style="white-space: pre;"> </span>keyboardNav:true, //Use left &amp; right arrows</p>
<p><span style="white-space: pre;"> </span>pauseOnHover:false, //Stop animation while hovering</p>
<p><span style="white-space: pre;"> </span>manualAdvance:false, //Force manual transitions</p>
<p><span style="white-space: pre;"> </span>captionOpacity:0.8, //Universal caption opacity</p>
<p><span style="white-space: pre;"> </span>beforeChange: function(){},</p>
<p><span style="white-space: pre;"> </span>afterChange: function(){},</p>
<p><span style="white-space: pre;"> </span>slideshowEnd: function(){} //Triggers after all slides have been shown</p>
<p><span style="white-space: pre;"> </span>});</p>
<p><span style="white-space: pre;"> </span>});</p>
<p><span style="white-space: pre;"> </span>&lt;/script&gt;</p>
<p></code></p></blockquote>
<p>Style to taste, and VOILA! If you have any issues with either The Attached Image or Nivo Slider, they have extensive documentation and help for you. I&#8217;m not a guru for either, so forgive me if my help is slow in coming or ill-informed.</p>
]]></content:encoded>
			<wfw:commentRss>http://richmondhillwebdesign.com/2010/06/integrating-nivo-slider-into-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

