Tagged Questions
1
vote
1answer
149 views
How does WP handle multiple matching rewrite rules?
Here is my url to a custom type :
http://host/movie/my-slug
When I go to this link, I'm redirected to
http://host/movie/my-slug/?post_type=movie
which results in a 404 error.
I use Rewrite ...
1
vote
1answer
107 views
Force a specific template based on the URL
When a user browses to a URI beginning with "/forums", WordPress should call a specified template. For example, all of these URLs:
mysite.com/forums
mysite.com/forums/questions
...
3
votes
2answers
392 views
wp_insert_post breaks rewrite rules
I'm using wp_insert_post to programmatically add content to a site. This works fine with posts, categories and tags, but not with pages.
When I attempt to add a page (i.e. post with post_type=page), ...
