Custom Post Type Archives URL is rewriting to main post URL
-
I’ve created a custom post type called testimonials, and the testimonials page rewrite works fine. However, the posts that are published are rewriting to the main post URL rewrite. For example:
All my blog posts are like this:
http://mydomain.com/blog/2011/02/post-name
And the loop feeds them through http://mydomain.com/blog/, which is what I want.
However, my testimonials are done like this:
http://mydomain.com/testimonials/
But the individual posts are pulling the rewrite from the main posts, like this:
http://mydomain.com/blog/testimonials/post-name/
How can I fix this so that the /blog/ doesn’t appear in the testimonials URL?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Post Type Archives URL is rewriting to main post URL’ is closed to new replies.