I am working on a site where they want to break up the content into custom post types (right now everything is broken up by post categories) but they want to be able to save their URLs to preserve inbound links and Facebook Likes. They currently have a date-based URL structure (example.com/2013/01/11/the-post-name
) and they want to keep that but still use custom post types.
I've seen plugins that will allow me to easily append the date before the post title in the URL, but nothing that removes the slug from the first URI segment. I tried to add a rewrite rule to remove the slug (rewrite => array( 'slug' => '' )
) but that resulted in 404s.
What's the best way to go about this? I know it's bad practice to remove the slug, but the client is pretty adamant about it.