Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

To get at archive pages (by default) the path is /%category%/ Which is fine. But how would i change it to have a static string prefix before the category variable (e.g. /archive/%category%).

Same thing for custom-post-type archives

share|improve this question
add comment

1 Answer 1

Go to Settings > Permalinks and insert archive in the Category base field.

For custom post type archives, you can set that to anything you want via the has_archive argument of register_post_type:

'has_archive' => 'archive/your-post-type'
share|improve this answer
    
How do i do the has_archive thing? I use the Custom Post Types plugin to manage all my custom post types.... –  cmurockstar Jul 22 '12 at 22:45
    
Also, I don't think the Category base field worked.... how would i then visit said archive? –  cmurockstar Jul 22 '12 at 22:45
    
(sorry, the Custom Post Type UI plugin) –  cmurockstar Jul 22 '12 at 22:52
    
How do i do the has_archive thing? I use the Custom Post Types plugin to manage all my custom post types. If that plugin doesn't have the option to set archive slug, then you'll have to add the post types manually. how would i then visit said archive? i'm not sure what you mean? any links to category pages will point to the new URL. –  Milo Jul 25 '12 at 15:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.