<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: help creatiing an easily managable slideshow</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 03:06:20 +0000</pubDate>

<item>
<title>Devin on "help creatiing an easily managable slideshow"</title>
<link>http://themeshaper.com/forums/topic/help-creatiing-an-easily-managable-slideshow#post-16680</link>
<pubDate>Mon, 01 Nov 2010 19:45:10 +0000</pubDate>
<dc:creator>Devin</dc:creator>
<guid isPermaLink="false">16680@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'd look at how Woo Themes does it with their sliders (they use loopedslider) with custom post types.
&#60;/p&#62;</description>
</item>
<item>
<title>Jamie Mitchell on "help creatiing an easily managable slideshow"</title>
<link>http://themeshaper.com/forums/topic/help-creatiing-an-easily-managable-slideshow#post-16623</link>
<pubDate>Thu, 28 Oct 2010 00:56:17 +0000</pubDate>
<dc:creator>Jamie Mitchell</dc:creator>
<guid isPermaLink="false">16623@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Howdy all...:)&#60;/p&#62;
&#60;p&#62;ok, now adding a jquery slideshow to a thematic child theme is nothing new, i like that nivo slider, it's great.&#60;/p&#62;
&#60;p&#62;but i got to thinking that if somebody else was to maintain a site with a home page slideshow, and they don't know coding, how would they upload there images, crop them and sort them for the slideshow.&#60;/p&#62;
&#60;p&#62;i did some reading over at &#60;a href=&#34;http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress&#34;&#62;Justin Tadlock regarding custom post types&#60;/a&#62;, and worked that in with the new featured image function in wp3.0&#60;/p&#62;
&#60;p&#62;the results works pretty good so far, i am able to upload any large image and it scales it to the size of the slider, with the title being used as a caption.&#60;/p&#62;
&#60;p&#62;i have pasted my experimental code below from my functions.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//JQuery
function re_init_jQuery() {
	if (!is_admin()) {
		wp_deregister_script(&#38;#39;jquery&#38;#39;);
		wp_register_script(&#38;#39;jquery&#38;#39;, &#38;#39;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#38;#39;);
		wp_enqueue_script(&#38;#39;jquery&#38;#39;);
	}
}
add_action(&#38;#39;init&#38;#39;, &#38;#39;re_init_jQuery&#38;#39;);

//nivo script
function nivo_script() {?&#38;gt;
	&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo(&#38;#39;stylesheet_directory&#38;#39;); ?&#38;gt;/nivo/nivo-slider.css&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;screen&#38;quot; /&#38;gt;
 &#38;lt;script src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#38;quot; type=&#38;quot;text/javascript&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
 &#38;lt;script src=&#38;quot;&#38;lt;?php bloginfo(&#38;#39;stylesheet_directory&#38;#39;); ?&#38;gt;/nivo/jquery.nivo.slider.pack.js&#38;quot; type=&#38;quot;text/javascript&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;

&#38;lt;?php
}
add_action(&#38;#39;wp_head&#38;#39;, &#38;#39;nivo_script&#38;#39;);?&#38;gt;

&#38;lt;?php function filter_jquery() { ?&#38;gt;

    &#38;lt;?php wp_enqueue_script(&#38;quot;jquery&#38;quot;); ?&#38;gt;

&#38;lt;?php
}
add_action(&#38;#39;wp_head&#38;#39;,&#38;#39;filter_jquery&#38;#39;);

add_action( &#38;#39;init&#38;#39;, &#38;#39;create_my_post_types&#38;#39; );

function create_my_post_types() {
	register_post_type( &#38;#39;super_duper&#38;#39;,
		array(
			&#38;#39;labels&#38;#39; =&#38;gt; array(
				&#38;#39;name&#38;#39; =&#38;gt; __( &#38;#39;Super Dupers&#38;#39; ),
				&#38;#39;singular_name&#38;#39; =&#38;gt; __( &#38;#39;Super Duper&#38;#39; )
			),
			&#38;#39;public&#38;#39; =&#38;gt; true,
			&#38;#39;supports&#38;#39; =&#38;gt; array( &#38;#39;title&#38;#39;, &#38;#39;thumbnail&#38;#39; ),
		)
	);
}

if (function_exists(&#38;#39;add_theme_support&#38;#39;)) {
	add_theme_support(&#38;#39;post-thumbnails&#38;#39;);
	set_post_thumbnail_size(960, 300, true);
}

function childtheme_banner() { ?&#38;gt;

&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
   var J$ = jQuery.noConflict();

     J$(window).load(function() {
	     J$(&#38;#39;#slider&#38;#39;).nivoSlider();
});
&#38;lt;/script&#38;gt;

    &#38;lt;div id=&#38;quot;banner&#38;quot;&#38;gt;
		  &#38;lt;div id=&#38;quot;banner-container&#38;quot;&#38;gt;
			 &#38;lt;div id=&#38;quot;slider&#38;quot;&#38;gt;

        &#38;lt;?php $my_query = new WP_Query( array( &#38;#39;post_type&#38;#39; =&#38;gt; &#38;#39;super_duper&#38;#39;, &#38;#39;posts_per_page&#38;#39; =&#38;gt; 10 ) ); ?&#38;gt;

&#38;lt;?php while ( $my_query-&#38;gt;have_posts() ) : $my_query-&#38;gt;the_post(); ?&#38;gt;

  &#38;lt;?php the_post_thumbnail(array( 960,300 ),array( &#38;#39;class&#38;#39; =&#38;gt; &#38;#39;&#38;#39; )); ?&#38;gt;

&#38;lt;?php endwhile; ?&#38;gt;

			 &#38;lt;/div&#38;gt;
			&#38;lt;/div&#38;gt;
    &#38;lt;/div&#38;gt;

&#38;lt;?php
}
add_action(&#38;#39;thematic_belowheader&#38;#39;,&#38;#39;childtheme_banner&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;so what i'm asking here is...is this a good idea? or should i be doing it another way, does anyone else know of a better solution or a way to improve what i have done so far, remember it is all about the user, i want to make it a painless as possible for a user to update the slideshow...&#60;/p&#62;
&#60;p&#62;could really use a little help here&#60;/p&#62;
&#60;p&#62;thanks in advance...J
&#60;/p&#62;</description>
</item>

</channel>
</rss>
