WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have a custom post type called Drink which has permalinks like /drink/pepsi/ then /drink/ will list all of the Drinks. How can I rewrite /drink/ to /drinks/?

I want permalinks for single Drinks /drink/pepsi to stay with the /drink/ root but I think /drinks/ makes better sense for the "archive" of Drink.

share|improve this question
up vote 1 down vote accepted

When you register your custom post type, set the has_archive argument to the slug you want for the archive page, in this case drinks:

$args = array(
    'rewrite' => array( 'slug' => 'drink' ),
    'has_archive' => 'drinks',
share|improve this answer

Your Answer


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.