Custom Permalink Plugin and Current Page/Ancestor in Menus

You could add classes to wp_nav_menu via the nav_menu_css_class filter: function wpa83498_nav_class( $classes, $item ){ // if Shop is the current menu item being output // and we’re viewing a single product post type if( ‘Shop’ == $item->title && is_singular( ‘product’ ) ) $classes[] = ‘current-page-ancestor’; return $classes; } add_filter( ‘nav_menu_css_class’, ‘wpa83498_nav_class’, 10, 2 ); … Read more

Passing the JQuery string to Worldpress URL

The tutorial is outdated and it seems it missed to flush the rules. function add_rewrite_rule_and_tag() { global $wp_rewrite; add_rewrite_rule( ‘^physician-profile/([^/]*)/?’, ‘physician-profile?lastName=$matches[1]’, ‘top’ ); add_rewrite_tag( ‘%lastName%’,'([^&]+)’ ); if ( ! isset( $wp_rewrite->rules[‘^physician-profile/([^/]*)/?’] ) ) $wp_rewrite->flush_rules(); return; } add_action( ‘init’, ‘add_rewrite_rule_and_tag’, 99 ); You can access the query var `lastName´ with gloabl $wp_query; $lastName = $wp_query->query_vars[‘lastName’];

Default permalink changes

U could try one of these http://wordpress.org/extend/plugins/advanced-permalinks/ http://wordpress.org/extend/plugins/custom-permalinks/ I use them when i want to change my permalink structure, hope this helps u!