<?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: wp_dropdown_{categories&#124;pages} in Thematic</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 19:55:20 +0000</pubDate>

<item>
<title>MarSOnEarth on "wp_dropdown_{categories&#124;pages} in Thematic"</title>
<link>http://themeshaper.com/forums/topic/wp_dropdown_categoriespages-in-thematic#post-10461</link>
<pubDate>Thu, 04 Mar 2010 23:49:43 +0000</pubDate>
<dc:creator>MarSOnEarth</dc:creator>
<guid isPermaLink="false">10461@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hopefully soon.  Most of the &#34;mechanisms&#34; of the site are already in place.  I still have to solve the per page dynamic updates of the Connections plug-in content, and it looks like I'll have to do it via a custom Loop; not trivial for someone not well versed in PHP, but there are many examples to draw upon.  Gosh!  What would I do without the community of WP users doing it all before me.
&#60;/p&#62;</description>
</item>
<item>
<title>flick on "wp_dropdown_{categories&#124;pages} in Thematic"</title>
<link>http://themeshaper.com/forums/topic/wp_dropdown_categoriespages-in-thematic#post-10421</link>
<pubDate>Wed, 03 Mar 2010 22:54:25 +0000</pubDate>
<dc:creator>flick</dc:creator>
<guid isPermaLink="false">10421@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;It would be interesting to see a screenshot of this 'in-action' MarS :)
&#60;/p&#62;</description>
</item>
<item>
<title>MarSOnEarth on "wp_dropdown_{categories&#124;pages} in Thematic"</title>
<link>http://themeshaper.com/forums/topic/wp_dropdown_categoriespages-in-thematic#post-10387</link>
<pubDate>Wed, 03 Mar 2010 04:42:38 +0000</pubDate>
<dc:creator>MarSOnEarth</dc:creator>
<guid isPermaLink="false">10387@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;An hour later (+dinner time): note to self; Test one thing at a time (there already was the Categories widget on the page.  Here's the working code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;LM_access&#38;quot;&#38;gt;
	&#38;lt;div id=&#38;quot;cat_menu&#38;quot;&#38;gt;
		&#38;lt;ul&#38;gt;
			&#38;lt;?php
		$cat_args[&#38;#39;show_option_none&#38;#39;] = __( &#38;#39;Select Posts in...&#38;#39; );
		wp_dropdown_categories( $cat_args );

		?&#38;gt;
	&#38;lt;/div&#38;gt;
	&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	/* &#38;lt;![CDATA[ */
		var dropdown = document.getElementById(&#38;quot;cat&#38;quot;);
	function onCatChange() {
		if ( dropdown.options[dropdown.selectedIndex].value &#38;gt; 0 ) {
			location.href = &#38;quot;http://localhost/wordpress/?cat=&#38;quot;+dropdown.options[dropdown.selectedIndex].value;
		}
	}
	dropdown.onchange = onCatChange;
	/* ]]&#38;gt; */
	&#38;lt;/script&#38;gt;

	&#38;lt;div id=&#38;quot;page_menu&#38;quot;&#38;gt;
		&#38;lt;ul&#38;gt;
			&#38;lt;?php
		$page_args[&#38;#39;show_option_no_change&#38;#39;] = __( &#38;#39;Information&#38;#39; );
		wp_dropdown_pages( $page_args );

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

	&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	/* &#38;lt;![CDATA[ */
		var ddown = document.getElementById(&#38;quot;page_id&#38;quot;);
		function onPageChange() {
			if ( ddown.options[ddown.selectedIndex].value &#38;gt; 0 ) {
				location.href = &#38;quot;http://localhost/wordpress/?page_id=&#38;quot;+ddown.options[ddown.selectedIndex].value;
			}
		}
		ddown.onchange = onPageChange;
	/* ]]&#38;gt; */
	&#38;lt;/script&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks to Ian for Thematic.  With what's there somehow I'm forging ahead with WP without knowing much of PHP.
&#60;/p&#62;</description>
</item>
<item>
<title>MarSOnEarth on "wp_dropdown_{categories&#124;pages} in Thematic"</title>
<link>http://themeshaper.com/forums/topic/wp_dropdown_categoriespages-in-thematic#post-10383</link>
<pubDate>Tue, 02 Mar 2010 23:17:44 +0000</pubDate>
<dc:creator>MarSOnEarth</dc:creator>
<guid isPermaLink="false">10383@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;WP provides these two functions and Thematic provides for the *_categories variant as a widget.  On the site I'm working on I envisioned the main navigation to be the two dropdowns + breadcrumbs, but I've ran into a problem; while the categories dropdown switches to the selected category automagically, the pages dropdown does not.  Here's how I'm using the two:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$cat_args[&#38;#39;show_option_none&#38;#39;] = __(&#38;#39;Select Posts in...&#38;#39;);
wp_dropdown_categories($cat_args);

$page_args[&#38;#39;show_option_no_change&#38;#39;] = __(&#38;#39;Information&#38;#39;);
wp_dropdown_pages($page_args);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What is the magic that makes the two functions act differently?  BTW, the widgetized Categories in Thematic provides its own JS switching routine, but even without it the wp_dropdown_categories() works, and the *_pages() with that (adjusted) JS code still does not.  What gives?  Help me out of this box I painted myself into, please.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
