<?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>WordPress &#8250; Support Topic: [Plugin: d13slideshow] parent category for post selection</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: [Plugin: d13slideshow] parent category for post selection</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 20:08:51 +0000</pubDate>

<item>
<title>jaysonbrown on "[Plugin: d13slideshow] parent category for post selection"</title>
<link>http://wordpress.org/support/topic/276438#post-1289811</link>
<pubDate>Sun, 22 Nov 2009 07:16:41 +0000</pubDate>
<dc:creator>jaysonbrown</dc:creator>
<guid isPermaLink="false">1289811@http://wordpress.org/support/</guid>
<description>&#60;p&#62;FYI, you can use masterbassie code in category.php, and have a slider preview dynamically for every category!&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
function getCurrentCategoryId()
{
	if (is_category()) {
		global $wp_query;
		$cat_obj = $wp_query-&#38;gt;get_queried_object();
		return $cat_obj-&#38;gt;term_id;
	}
	return -1;
}

$args = array(

&#38;#39;numberposts&#38;#39; =&#38;gt; 3,

&#38;#39;category&#38;#39; =&#38;gt; getCurrentCategoryId(),

&#38;#39;orderby&#38;#39; =&#38;gt; rand

);

$lastposts = get_posts($args);

foreach($lastposts as $post) :

setup_postdata($post);

?&#38;gt;

&#38;lt;?php

$ID_Array[]=$post-&#38;gt;ID;

?&#38;gt;

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

&#38;lt;?php d13slideshow(array($ID_Array[0], $ID_Array[1], $ID_Array[2], $ID_Array[3], $ID_Array[4], $ID_Array[5], $ID_Array[6], $ID_Array[7], $ID_Array[8], $ID_Array[9])); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>masterbassie on "[Plugin: d13slideshow] parent category for post selection"</title>
<link>http://wordpress.org/support/topic/276438#post-1095511</link>
<pubDate>Mon, 08 Jun 2009 19:36:40 +0000</pubDate>
<dc:creator>masterbassie</dc:creator>
<guid isPermaLink="false">1095511@http://wordpress.org/support/</guid>
<description>&#60;p&#62;In my own impatience i devised a remedy (sort of). Only problem is I couldn't figure out how to print out all the array values parsed by a comma into the d13 php call. So i kinda improvised. Its a very down and dirty 'fix' for anyone who needs it. &#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$args = array(&#60;br /&#62;
	'numberposts' =&#38;gt; 10,&#60;br /&#62;
        'category' =&#38;gt; 8,&#60;br /&#62;
        'orderby' =&#38;gt; rand&#60;br /&#62;
	); &#60;/p&#62;
&#60;p&#62; $lastposts = get_posts($args);&#60;br /&#62;
 foreach($lastposts as $post) :&#60;br /&#62;
    setup_postdata($post);&#60;br /&#62;
 ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$ID_Array[]=$post-&#38;gt;ID;&#60;br /&#62;
 ?&#38;gt;&#60;br /&#62;
&#38;lt;?php endforeach; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php d13slideshow(array($ID_Array[0], $ID_Array[1], $ID_Array[2], $ID_Array[3], $ID_Array[4], $ID_Array[5], $ID_Array[6], $ID_Array[7], $ID_Array[8], $ID_Array[9])); ?&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>d13design on "[Plugin: d13slideshow] parent category for post selection"</title>
<link>http://wordpress.org/support/topic/276438#post-1092735</link>
<pubDate>Fri, 05 Jun 2009 14:29:10 +0000</pubDate>
<dc:creator>d13design</dc:creator>
<guid isPermaLink="false">1092735@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi masterbassie,&#60;/p&#62;
&#60;p&#62;I'll look into both of these things for you.&#60;/p&#62;
&#60;p&#62;I'm using some pre-defined WP commands for the category dropdown so will need to read up on what's possible with this. I'll also looking at a &#34;random&#34; selection option and an extension to the 5 / 10 post limit.&#60;/p&#62;
&#60;p&#62;You can keep up to date on the plugin and updates at &#60;a href=&#34;http://www.d13design.co.uk/wordpress/d13slideshow.&#34; rel=&#34;nofollow&#34;&#62;http://www.d13design.co.uk/wordpress/d13slideshow.&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Dave.
&#60;/p&#62;</description>
</item>
<item>
<title>masterbassie on "[Plugin: d13slideshow] parent category for post selection"</title>
<link>http://wordpress.org/support/topic/276438#post-1091667</link>
<pubDate>Thu, 04 Jun 2009 13:19:22 +0000</pubDate>
<dc:creator>masterbassie</dc:creator>
<guid isPermaLink="false">1091667@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I have a parent category entitled &#34;Lessons&#34; then under that i have sub categories. It doesn't seem to allow selection of the parent as &#34;category to feature&#34;. Is this feasible?&#60;/p&#62;
&#60;p&#62;Also wondering if there is a way to increase the limit on shown pictures and a way to randomly select images. Such that when someone visits the page it randomly selects the pictures instead of being most recent.&#60;/p&#62;
&#60;p&#62;thanks for your help in advance.&#60;/p&#62;
&#60;p&#62;ian
&#60;/p&#62;</description>
</item>

</channel>
</rss>
