<?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 Tag: WP 3</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 11:28:08 +0000</pubDate>

<item>
<title>tbanh on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-17447</link>
<pubDate>Fri, 03 Dec 2010 09:14:18 +0000</pubDate>
<dc:creator>tbanh</dc:creator>
<guid isPermaLink="false">17447@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;*bump*&#60;/p&#62;
&#60;p&#62;has anyone solved the custom WP menus in Autofocus+ or Thematic and want to share the resolution with me?&#60;/p&#62;
&#60;p&#62;cheers/Tony
&#60;/p&#62;</description>
</item>
<item>
<title>tbanh on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-17235</link>
<pubDate>Tue, 23 Nov 2010 19:09:29 +0000</pubDate>
<dc:creator>tbanh</dc:creator>
<guid isPermaLink="false">17235@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hi Allen,&#60;br /&#62;
I'm using the autofocus+ now and having problem with the wp custom menu to display, where should I paste in the script you mentioned above?&#60;/p&#62;
&#60;p&#62;my website: &#60;a href=&#34;http://www.tonybanh.se&#34; rel=&#34;nofollow&#34;&#62;www.tonybanh.se&#60;/a&#62; where it's missing 2 menu item from the WP Menus settings&#60;/p&#62;
&#60;p&#62;please advice, thanks
&#60;/p&#62;</description>
</item>
<item>
<title>allancole on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-15132</link>
<pubDate>Fri, 27 Aug 2010 06:37:41 +0000</pubDate>
<dc:creator>allancole</dc:creator>
<guid isPermaLink="false">15132@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yeah, I’m adding 2 menu areas to the new Neutica+ update. So far it works, but the code is ugly. I’ll stick it here once I get it to a good place.
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-15105</link>
<pubDate>Thu, 26 Aug 2010 15:03:52 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">15105@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;That's great if a little deep.&#60;/p&#62;
&#60;p&#62;Just wondering how  two or more menus would be added to this as well.
&#60;/p&#62;</description>
</item>
<item>
<title>allancole on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-15099</link>
<pubDate>Thu, 26 Aug 2010 03:55:42 +0000</pubDate>
<dc:creator>allancole</dc:creator>
<guid isPermaLink="false">15099@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Sounds great!&#60;/p&#62;
&#60;p&#62;I think I’ve figured this out. Here’s what I’ve got so far in my AF+ Dev install. Seems to work pretty solidly, but it seems like it requires a lot more code than it should:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//	Custom Blog Header
//	- Remove default Thematic blogtitle
function remove_thematic_actions() {
    remove_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;thematic_access&#38;#39;,9);
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;remove_thematic_actions&#38;#39;);

//	- Add the new menu function to the header
function childtheme_access() { ?&#38;gt;
    	&#38;lt;div id=&#38;quot;access&#38;quot;&#38;gt;
    		&#38;lt;div class=&#38;quot;skip-link&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;#content&#38;quot; title=&#38;quot;&#38;lt;?php _e(&#38;#39;Skip navigation to the content&#38;#39;, &#38;#39;thematic&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php _e(&#38;#39;Skip to content&#38;#39;, &#38;#39;thematic&#38;#39;); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;
			&#38;lt;?php // Adds the conditional navigaton.
			childtheme_header_nav(); ?&#38;gt;
        &#38;lt;/div&#38;gt;&#38;lt;!-- #access --&#38;gt;
&#38;lt;?php }
add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;childtheme_access&#38;#39;,9);

//	- Register Child Theme Navigation Menus
if ( function_exists( &#38;#39;add_theme_support&#38;#39; ) ) {
	register_nav_menus( array(
		&#38;#39;childtheme-header-menu&#38;#39; =&#38;gt; __( &#38;#39;Child Theme Header Menu&#38;#39;, &#38;#39;thematic&#38;#39; ),
	) );
}

//	- Child Theme Header navigation w/ conditionals
//	- &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/wp_nav_menu&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/wp_nav_menu&#60;/a&#62;
function childtheme_header_nav() {
    if ( function_exists( &#38;#39;wp_nav_menu&#38;#39; ) )
			wp_nav_menu( array(
				&#38;#39;show_home&#38;#39; 	=&#38;gt; &#38;#39;Home&#38;#39;,
				&#38;#39;sort_column&#38;#39;	=&#38;gt; &#38;#39;menu_order&#38;#39;,
				&#38;#39;container_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39;,
				&#38;#39;menu_class&#38;#39;	=&#38;gt; &#38;#39;sf-menu&#38;#39;,
				&#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;childtheme-header-menu&#38;#39;,
				&#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;childtheme_header_nav_fallback&#38;#39;
			) );
    else
        childtheme_header_nav_fallback();
}

//	- Set up a fall-back menu for the header just in case there are no menus in use.
//	- &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/wp_page_menu&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/wp_page_menu&#60;/a&#62;
function childtheme_header_nav_fallback() {
    wp_page_menu( array(
    	&#38;#39;show_home&#38;#39; =&#38;gt; __(&#38;#39;Home&#38;#39;, &#38;#39;thematic&#38;#39;),
    	&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
    	&#38;#39;depth&#38;#39; =&#38;gt; &#38;#39;1&#38;#39;,
    	&#38;#39;container_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39;
    ) );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I’ll have to play with it some more, but it seems to do the trick.
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-15093</link>
<pubDate>Thu, 26 Aug 2010 00:52:01 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">15093@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;That's swell 'cause I'm using Wp 3 menus in one project now and wanting to buy and develop another and possible a third Pro site as well by next month!
&#60;/p&#62;</description>
</item>
<item>
<title>allancole on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-15086</link>
<pubDate>Wed, 25 Aug 2010 21:17:45 +0000</pubDate>
<dc:creator>allancole</dc:creator>
<guid isPermaLink="false">15086@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Nimrod,&#60;br /&#62;
I think i’m going to just go ahead and add the 3.0 menu functionality directly to AF+ Pro, especially after reading &#60;a href=&#34;http://developing.thematic4you.com/2010/04/breaking-things-to-fix-others/&#34;&#62;this post&#60;/a&#62;. &#60;/p&#62;
&#60;p&#62;I’m a little confused myself about what the best practice is when it comes to adding WP 3.0 menus to a Themtaic child theme. Things are clear on what NOT to do, but not so much on what we should be doing. I’m gonna fiddle with it a little and see what happens. I assume its because things are still in development and unstable.&#60;/p&#62;
&#60;p&#62;I’m shooting to have the WP 3.0 menus ready for a September update.
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-15081</link>
<pubDate>Wed, 25 Aug 2010 20:23:46 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">15081@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Okay, but does anyone have revised code to make WP 3 menus work (at least in AutoFocus Pro)? &#60;/p&#62;
&#60;p&#62;The linked page above seems to give only a warning about why not to do it.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-14871</link>
<pubDate>Fri, 20 Aug 2010 06:09:44 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">14871@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Heads up using add_theme_support in this way is not advised&#60;/p&#62;
&#60;p&#62;ref: &#60;a href=&#34;http://themeshaper.com/forums/topic/add_theme_supportmenus&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/add_theme_supportmenus&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-14054</link>
<pubDate>Wed, 21 Jul 2010 23:52:59 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">14054@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Okay, the Autofocus author, Allen Cole, was kind enough to quickly respond and point me to the following forum post:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/forums/topic/a-better-way-to-use-the-new-menu-in-wordpress-30-final-version&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/a-better-way-to-use-the-new-menu-in-wordpress-30-final-version&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The complicated one at the beginning works (and not the later simpler version posted by @em hr which is what I tried). &#60;/p&#62;
&#60;p&#62;So, all I did to get WP 3 Menus to work is open functions.php in the autofocuspro theme folder and paste the following as the last item above the closing ?&#38;gt; string:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// We declare that our theme supports wp_nav_menu()
add_theme_support( &#38;#39;nav-menus&#38;#39; );

// We Register the a new menu for the theme called &#38;quot;Primary Menu&#38;quot;
function register_primary_menu() {
	register_nav_menu( &#38;#39;primary-menu&#38;#39;, __( &#38;#39;Primary Menu&#38;#39; ) );
}
add_action( &#38;#39;init&#38;#39;, &#38;#39;register_primary_menu&#38;#39; );

// We remove the standard Thematic menu
function remove_menu() {
	remove_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;thematic_access&#38;#39;,9);
}
add_action(&#38;#39;init&#38;#39;, &#38;#39;remove_menu&#38;#39;);

// We create the new wp_nav_menu called &#38;quot;Primary Menu&#38;quot; in our theme
function new_access() { ?&#38;gt;
	&#38;lt;div id=&#38;quot;access&#38;quot;&#38;gt;
		&#38;lt;div class=&#38;quot;skip-link&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;#content&#38;quot; title=&#38;quot;&#38;lt;?php _e(&#38;#39;Skip navigation to the content&#38;#39;, &#38;#39;thematic&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php _e(&#38;#39;Skip to content&#38;#39;, &#38;#39;thematic&#38;#39;); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;!-- .skip-link --&#38;gt;

			&#38;lt;?php /* Our navigation menu.  If one isn&#38;#39;t filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?&#38;gt;
			&#38;lt;?php wp_nav_menu( array(
                          			&#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;primary-menu&#38;#39;, // we define this as being the previously registered &#38;quot;Primary Menu&#38;quot;
                          			&#38;#39;menu_class&#38;#39; =&#38;gt; &#38;#39;sf-menu&#38;#39;, // we assign the sf-menu class to the menu ul so that superfish workds
                          			&#38;#39;container_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39; // we assign the menu class to the menu container div so to keep it compatible with the Thematic menu styling
                          		));
			?&#38;gt;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #access --&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;new_access&#38;#39;,9);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;strong&#62;Remember that updates to the child theme from the author will overwrite any changes made!&#60;/strong&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "WP 3 Menus in Autofocus+ Pro"</title>
<link>http://themeshaper.com/forums/topic/wp-3-menus-in-autofocus-pro#post-14053</link>
<pubDate>Wed, 21 Jul 2010 23:03:43 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">14053@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Has anyone tried or have any clue on adding WP 3 Menus feature to Autofocus+ Pro child theme?&#60;/p&#62;
&#60;p&#62;I notice there's a thematic-functions.php file in the theme folder with the following to add a &#34;Home&#34; link in the top main menu:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//	Add a Home link to your menu
function childtheme_menu_args($args) {
		$args = array(
		&#38;#39;show_home&#38;#39; =&#38;gt; &#38;#39;Home&#38;#39;,
		&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
		&#38;#39;menu_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39;,
		&#38;#39;echo&#38;#39; =&#38;gt; true
	);
	return $args;
}
add_filter(&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;childtheme_menu_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I tried to adapt it to the suggested code for adding Menus to Thematic without success:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_theme_support( &#38;#39;menus&#38;#39; );

function child_access_menu() {
	$menu_sys = &#38;#39;wp_nav_menu&#38;#39;;
	return $menu_sys;
}
add_filter(&#38;#39;thematic_menu_type&#38;#39;, &#38;#39;child_access_menu&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any ideas...?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
