How to add a post slug to a url?
How to add a post slug to a url?
How to add a post slug to a url?
How to make a proper custom post type link
Maintaining Queries in URL
Force wordpress to display page with same url structure as categories
Adding rewrite rule dynamically for search results redirecting to 404 URL
Best action hook for placing ical requests
The requested URL was not found only on localhost
I’m not seeing this behavior in my test install, using the page hierarchy you have described. http://img.skitch.com/20101028-kmdmrb11pyb5h281m9r8j74993.jpg I can access both the top-level accommodation page and the child page. Do you happen to have the Redirection plugin installed?
It would help if you listed your $args array, but, the portion you are looking for is under ‘rewrite’. Here’s the way I like to build an $args array for registering a post type: // set up the labels $labels = array( ‘name’ => _x(‘Archived Jobs’, ‘post type general name’), ‘singular_name’ => _x(‘Archived Job’, ‘post … Read more
This is far from trivial. URL processing is not straightforward and mostly buried in WP->parse_request() which is not popular to reuse. There is more useful url_to_postid() function, but it’s limited to posts and does not process URL to other things. If really necessary this would take fork of that function to deal with terms. However … Read more