Excluding a page with a certain name from wp_page_menu

How about using get_page_by_path(), then using the ID from the returned object in an exclude filter? add_filter(‘wp_page_menu_args’,’my_nav_exclude_pages’); function my_nav_exclude_pages( $args = array() ) { $homepage = get_page_by_path(‘my-page-slug’); $args[‘exclude’] = join( ‘,’, array( $args[‘exclude’], $homepage->ID ) ); return $args; }

How WordPress converts URL to $query_string

Check out WP::parse_request() – unfortunately, it was never really designed for public use. You could try this, not sure of the repercussions: global $wp, $wp_the_query; // Grab the request_uri component of the referer URL. if ( ! $url = parse_url( $_GET[‘my_referer_parameter’] ) ) return ‘Oh dear, poorly formed referer.’; // Ewww! Trick WP::parse_request by spoofing … Read more