sub.menu’s not working

Your problem seems to be within your .htaccess rewrites. First thing to try: change the permalink structure back to normal (index.php?p=375) and see if the submenus work then. If they do then problem is with permalinks. Sorry, I know this should probably be a comment not an answer, but I don’t have enough points to … Read more

Exclude all pages except a few?

try … echo preg_replace(‘/<ul>/’, ‘<ul class=”sf-menu”>’, wp_page_menu( array( ‘include’ => ‘11,13,7,9,4’, ‘sort_column’ => ‘menu_order’, ‘echo’ => 0)), 1); or … echo preg_replace(‘/<ul>/’, ‘<ul class=”sf-menu”>’, wp_page_menu( array( ‘include’ => array(11,13,7,9,4), ‘sort_column’ => ‘menu_order’, ‘echo’ => 0)), 1); btw, there are better ways to add classes to html tags than using regexes like this…

Why do sticky posts show in this menu?

You are lacking a one underscore in parameter, it should be post__not_in. Also the better way is to use caller_get_posts parameter (it will be deprecated and replaced with more aptly named ignore_sticky_posts in 3.1 that will do same thing) that will keep sticky posts in results if they fit, but will prevent them from jumping … Read more

WordPress menu: How to make www.link.com/#name never contain current_page_item class?

a bit hacky, but it works: add_filter(‘nav_menu_css_class’, ‘remove_some_menu_classes’, 420 ,3); function remove_some_menu_classes($classes, $item, $args){ if(strpos($item->url, ‘#order’) !== false) // in the 2nd array put the classes you want removed return array_diff($classes, array(‘current_page_item’, ‘current-menu-item’)); return $classes; }