Hi all,
I've been struggling with permalink for a few days, so I thought I'd start a thread here to get some ideas/help from you guys :)
Let's say I registered two custom post types named 'gallery' and 'location'. I've enabled the rewrite and query_var for both. The problem is, when I created a post for each type with the same slug, WP always redirect to the first created post. So,
- post ID :5, URL: http://site.tld/gallery/postname/
- post ID :6, URL: http://site.tld/location/postname/
I couldn't get to post 6 because WP always redirect to post 5.
I'm also having problem with creating year/month-based archives for custom post types. So I think the best solution is to remove all WP-generated rewrite rules and create a new set from scratch. I don't know how to do this yet though, because flushing them will make no difference since WP will create them again :)
Any idea?
Thanks.


LinkBack URL
About LinkBacks
Reply With Quote