<?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: Adding Categories and Moving Pages in the Menu</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 11:13:28 +0000</pubDate>

<item>
<title>daviemanchester on "Adding Categories and Moving Pages in the Menu"</title>
<link>http://themeshaper.com/forums/topic/adding-categories-and-moving-pages-in-the-menu#post-8816</link>
<pubDate>Tue, 05 Jan 2010 23:45:10 +0000</pubDate>
<dc:creator>daviemanchester</dc:creator>
<guid isPermaLink="false">8816@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi &#60;/p&#62;
&#60;p&#62;I have now tried the following code;&#60;/p&#62;
&#60;p&#62;function remove_thematic_access() {&#60;br /&#62;
remove_action('thematic_header','thematic_access',9);&#60;br /&#62;
}&#60;br /&#62;
add_action('init','remove_thematic_access');&#60;/p&#62;
&#60;p&#62;function my_category_access() { ?&#38;gt;&#60;br /&#62;
    	&#38;lt;div id=&#34;access&#34;&#38;gt;&#60;br /&#62;
    		&#38;lt;div class=&#34;skip-link&#34;&#38;gt;&#60;a href=&#34;#content&#34;&#62;&#34;&#38;gt;&#38;lt;?php _e('Skip to content', 'thematic'); ?&#38;gt;&#60;/a&#62;&#38;lt;/div&#38;gt;&#60;br /&#62;
            &#38;lt;div class=&#34;menu&#34;&#38;gt;&#60;br /&#62;
            	&#38;lt;ul class=&#34;sf-menu&#34;&#38;gt;&#60;br /&#62;
            	&#38;lt;?php wp_list_categories('title_li=') ?&#38;gt;&#60;/p&#62;
&#60;p&#62;            &#38;lt;/div&#38;gt;&#38;lt;!-- .menu --&#38;gt;&#60;br /&#62;
        &#38;lt;/div&#38;gt;&#38;lt;!-- #access --&#38;gt;&#60;br /&#62;
&#38;lt;?php }&#60;br /&#62;
add_action('thematic_header','my_category_access',9);&#60;/p&#62;
&#60;p&#62;function child_add_cat_menu($cat_menu) {&#60;/p&#62;
&#60;p&#62;	$search = array('/&#38;lt;li class=&#34;categories&#34;&#38;gt;/','/
&#60;ul&#62;/',&#34;/&#38;lt;\/li&#38;gt;$/&#34;);&#60;br /&#62;
	$replace = array('&#38;lt;ul class=&#34;sf-menu&#34;&#38;gt;&#38;lt;li class=&#34;categories&#34;&#38;gt;','','');&#60;br /&#62;
	return preg_replace($search, $replace, $cat_menu, 1);&#60;br /&#62;
}&#60;br /&#62;
add_filter('wp_list_categories','child_add_cat_menu');&#60;/p&#62;
&#60;p&#62;That I found on this post;&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/menu-navigation&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/menu-navigation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is there no a more simple way that doesnt use the wp_list_categories as I notice this returns an ordered list (UL etc..) which is replaced to show the categories as main navigation points.&#60;/p&#62;
&#60;p&#62;Could get_categories be used to grab and array and used in a simpler function?&#60;br /&#62;
Plus I dont want to loose the standard page menu items I have added.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Dave&#60;/ul&#62;</description>
</item>
<item>
<title>daviemanchester on "Adding Categories and Moving Pages in the Menu"</title>
<link>http://themeshaper.com/forums/topic/adding-categories-and-moving-pages-in-the-menu#post-8803</link>
<pubDate>Tue, 05 Jan 2010 14:56:50 +0000</pubDate>
<dc:creator>daviemanchester</dc:creator>
<guid isPermaLink="false">8803@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;Just started using Wordpress and Thematic. Its the first theme I tried and it looks like I pick the right one. Im very impressed with the support and information available on this forum.&#60;/p&#62;
&#60;p&#62;However Im just currently a little stuck with some changes I want to make.&#60;br /&#62;
Im using a child thematic theme.&#60;/p&#62;
&#60;p&#62;1. On my home page I want to show a single page not 'posts'.&#60;br /&#62;
Ive sorted that by using the admin interface and creating a new page and making this the front page in the settings.&#60;/p&#62;
&#60;p&#62;2. Ive then removed the 'posts' from any page.&#60;/p&#62;
&#60;p&#62;3. But I want to add links to the menu that direct to the the post categories such as 'New Posts' &#38;gt; '...com/?cats=1'&#60;br /&#62;
Looking at some other posts, I know I should be using stuff such as;&#60;br /&#62;
function child_add_menu_items($output) {&#60;br /&#62;
....&#60;br /&#62;
}&#60;br /&#62;
add_filter('wp_page_menu','child_add_menu_items');&#60;br /&#62;
and&#60;br /&#62;
wp_list_categories(.... (somewhere)&#60;/p&#62;
&#60;p&#62;But Ive not been able to get it quite right. Can anyone help?&#60;/p&#62;
&#60;p&#62;4. I also want to add some other pages to the menu bar but dont want this code to have an affect on the links above.&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;/p&#62;
&#60;p&#62;Dave
&#60;/p&#62;</description>
</item>

</channel>
</rss>
