Custom $_GET vars in wordpress entry with permalink
Custom $_GET vars in wordpress entry with permalink
Custom $_GET vars in wordpress entry with permalink
You can use URL rewrites to edit the displayed URL, but without changing your actual wordpress setup all your internal links will still point to the structure assigned in your permalinks settings. The most straightforward way to do this would be by using a custom post type. With CPTs you can set up a whole … Read more
Custom Post Type – Duplicate Page Slugs
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
An other permalink problem – 404 Error
Filtering get_permalink in Jetpack / ShareDaddy
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’];
Custom permalinks rules don’t match and lost of query var in the process
Lost of query parameter when using permalink
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!