[wp-hackers] Custom Post Redirect When Post Page is not root

Alex Andrews awgandrews at gmail.com
Tue Mar 22 17:03:02 UTC 2011

Hi all,

I have my Post Page set in options to 'site.com/news'. When I register
a custom post type I use "rewrite' => array( 'slug' =>
'books','use_front' => false)" - as I want the urls to be
site.com/books. When I do this, it doesn't work - though
site.com/books/test redirects me to site.com/news/books/test.

Any clue to what is happening here?

Is there something I need to flush?

Thanks a lot.

All the best,


More information about the wp-hackers mailing list