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?

1 Answer 1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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