<?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>Blog Smarter &#187; plugins</title>
	<atom:link href="http://mattdunlap.org/tag/plugins/feed" rel="self" type="application/rss+xml" />
	<link>http://mattdunlap.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:32:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Anythingslider Update &#8211; How to display pages instead of posts</title>
		<link>http://mattdunlap.org/website-development/wordpress/anythingslider-update-how-to-display-pages-instead-of-posts.html</link>
		<comments>http://mattdunlap.org/website-development/wordpress/anythingslider-update-how-to-display-pages-instead-of-posts.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:43:38 +0000</pubDate>
		<dc:creator>Matt Dunlap</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[anythingslider]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://mattdunlap.org/?p=1645</guid>
		<description><![CDATA[The Anythingslider WordPress plugin displays the most recent posts by default, but what if you want to display pages instead?]]></description>
			<content:encoded><![CDATA[<p>The Anythingslider WordPress plugin displays the most recent posts by default, but what if you want to display pages instead?</p>
<p>I&#8217;m not going to release another plugin with additional display settings because, I&#8217;m too busy&#8230; But if anyone else wants to jump on the project, I&#8217;m more then happy to add you as a contributor.</p>
<p>If you are unfamiliar with the plugin, you can <a href="http://mattdunlap.org/website-development/wordpress/jquery-anything-slider-plugin-for-wordpress-magazine-themes.html">read about here</a>, and I&#8217;ve already answered one question about how to display <a href="http://mattdunlap.org/website-development/wordpress/how-to-display-images-only-in-the-wordpress-anythingslider.html">images only in the anythingslider</a></p>
<p><strong>I think there are 3 possible ways to do this effectively.</strong></p>
<ol>
<li>use the WordPress function <a href="http://codex.wordpress.org/Function_Reference/get_pages">get_pages</a>();<br />
This is probably all you need. It&#8217;s just like <a href="http://codex.wordpress.org/Template_Tags/get_posts">get_posts</a>, but if I&#8217;m not mistaken it grabs pages instead of posts. I would recommend using this function if you are making a lot of pages that change constantly.<strong>This should do the trick. Just change get_posts to get_pages on line 155 in content-slider.php</strong></p>
<pre class="brush: plain;">
$posts = get_pages('numberposts='.$number_of_posts);
    foreach($posts as $post)
    {
    	anything_get_li($post);
    }
</pre>
</li>
<li>Since the plugin already uses get_posts you can make very minor changes to the arguments passed to the plugin. Currently I only pass the number of posts to return. Get_posts can also take a post_type argument, or include argument. Of course the default post_type is post, but it can be post, page, or attachment&#8230; I think with WP 3.0 you can even make you own types, but I haven&#8217;t work with any custom types yet.If you use include, you just pass all the page ids. Include will override all other arguments. Since pages shouldn&#8217;t change often, this might be a good solution for you<strong>Make changes to the arguments as follows</strong>
<pre class="brush: plain;">
$posts = get_posts('post_type=page&amp;numberposts='.$number_of_posts);
//or
$posts = get_posts('include=2,5,67,45');
//this will only add 4 pages with the specified IDs
</pre>
</li>
<li>Lastly, you can try to use <a href="http://codex.wordpress.org/Function_Reference/WP_Query#Interacting_with_WP_Query">wp_query</a>&#8230; But IMO is overkill for this.</li>
</ol>
<p>The anythingslider, is simply a list (li) with the content of each post as a list item. You can also go in an create custom, hardcoded list items.</p>
<img src="http://mattdunlap.org/?ak_action=api_record_view&id=1645&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://mattdunlap.org/website-development/wordpress/anythingslider-update-how-to-display-pages-instead-of-posts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Anything Slider Plugin for WordPress Magazine Themes</title>
		<link>http://mattdunlap.org/website-development/wordpress/jquery-anything-slider-plugin-for-wordpress-magazine-themes.html</link>
		<comments>http://mattdunlap.org/website-development/wordpress/jquery-anything-slider-plugin-for-wordpress-magazine-themes.html#comments</comments>
		<pubDate>Sun, 13 Jun 2010 05:44:16 +0000</pubDate>
		<dc:creator>Matt Dunlap</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[magazine themes]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://mattdunlap.org/?p=1208</guid>
		<description><![CDATA[There are a lot of content sliders floating around. I recently made this one for my personal website. It's based on the Anything slider Jquery plugin. I have made available two plugins for the content slider. The slider Jquery code is the same, but the CSS style is different.]]></description>
			<content:encoded><![CDATA[<p>There are a lot of content sliders floating around. I recently made this one for my personal website. It&#8217;s based on the <a href="http://css-tricks.com/anythingslider-jquery-plugin/">Anything slider Jquery plugin</a>. I have made available two plugins for the content slider. The slider Jquery code is the same, but the CSS style is different.</p>
<p>The slider will work on all WordPress websites, but the there is no way to make sure the slider looks good in all websites. This is due to the different widths and heights of websites. Therefore, I&#8217;ll try to outline the easiest way to get the content slider and the images in the slider to look their best.</p>
<p>After you activate the content slider plugin, first thing you will need to do it adjust the width to fit into your content sections.</p>
<ul>
<li>The stylesheet for the content slider is located in a folder called css in the plugin folder.</li>
<li>I have added &#8220;border:0px solid #cc0000&#8243; so you can set that to 1 to show a border around the elements if you just can&#8217;t seem to get it to look right. When everything looks correct. You should set the border to 0.</li>
<li>The content slider will display in a div with a class called <strong>.anythingslider. </strong>I think you can set this to 100%, but if that doesn&#8217;t work, set it to the fixed full width of the area in pixels.</li>
<li>the slides are in a class called <strong>.wrapper. </strong> This cannot be a percent, it has to be a fixed width.</li>
<li><strong>.anythingslider ul li</strong> has to be the same width as the <strong>.wrapper</strong> class.</li>
<li><strong>#thumbnav</strong> and <strong>#start-stop</strong> need the &#8220;top&#8221; attribute equal the <strong>.wrappe</strong>r height.</li>
</ul>
<p>That&#8217;s about it for CSS style. but you also need to make sure that your images are big enough to fit in the image section. I use two div&#8217;s in each slider. The left div shows an image from the post and the right div shoes the post title and excerpt. You can add images to the slider without having to add them to the post. I use the fullsize image, centered in the left div. You can use the built in wordpress image editor (2.9+) to make sure the image fits properly.</p>
<p>to display the content slider, you need to call this</p>
<pre name='code' class="php">&lt;?
$number_of_posts = 10 //optional, default is 5
anything_content_slider($number_of_posts);
?&gt;</pre>
<p>I&#8217;m assuming that you are using a magazine style theme with this plugin. You can also download my theme be subscribing to my newsletter. It has the Anything Slider plugin included.</p>
<p><strong>Confused, watch this video to see how to add images to the content slider from a post.</strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" 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://www.youtube.com/v/IN5ySaQcfrE&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/IN5ySaQcfrE&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The first plugin uses most of the original styling from the anythingslider.</p>
<p><a href="http://mattdunlap.org/download/anythingslider_wordpress.zip">Download the plugin here</a></p>
<p><img class="aligncenter size-full wp-image-1212" title="Jquery Anythingslider for wordpress" src="http://mattdunlap.org/wp-content/uploads/2010/06/anythingslider.jpg" alt="" width="640" height="304" /></p>
<p>The second plugin is the one I used on my websites. The Javascript  is the same but I have a different style. This one also uses CSS3 custom fonts which might not work in all browsers&#8230; Actually I know it doesn&#8217;t work in IE.</p>
<p><a href="http://mattdunlap.org/download/md-content-slider.zip">Download the plugin here</a></p>
<p><img class="aligncenter size-full wp-image-1231" title="anything slider with style jquery" src="http://mattdunlap.org/wp-content/uploads/2010/06/as_md.jpg" alt="" width="640" height="325" /></p>
<p>You cannot active both plugins at the same time. They will create conflicting errors. You can add them both to your plugin directory, but only one can be activated at a time.</p>
<img src="http://mattdunlap.org/?ak_action=api_record_view&id=1208&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://mattdunlap.org/website-development/wordpress/jquery-anything-slider-plugin-for-wordpress-magazine-themes.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
