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.

My theme has a custom post type called 'portfolio'.

I want the url to display 'projects' instead. I've change the rewrite on the register_post_type function to 'projects' but it doesn't change the permalinks...

'rewrite' => 'projects'

How can I fix this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

rewrite accepts a boolean or array, try:

'rewrite' => array( 'slug' => 'projects' )

make sure to visit your permalinks settings page to flush rewrites after you make the change.

share|improve this answer
    
Perfect thanks Milo! –  fxfuture Oct 12 '11 at 3:39

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.