0

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?

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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