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

Aaron D. Campbell aaron at xavisys.com
Tue Mar 22 20:25:22 UTC 2011


Actually, as Nacin pointed out, your problem is probably that you seem 
to be using "use_front" when it should be "with_front":
'rewrite' => array( 'slug' => 'books', 'with_front' => false ) )

On 3/22/2011 11:52 AM, Alex Andrews wrote:
> So I can just patch this from Trac?
>
> Thanks.
>
> Alex
>
> On 22 March 2011 18:43, Andrew Nacin<wp at andrewnacin.com>  wrote:
>> On Tue, Mar 22, 2011 at 1:18 PM, Aaron D. Campbell<aaron at xavisys.com>wrote:
>>
>>> http://core.trac.wordpress.org/ticket/16807
>>>
>>>
>>> On 3/22/2011 10:03 AM, Alex Andrews wrote:
>>>
>>>> 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.'



More information about the wp-hackers mailing list