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',
);
Related Posts:
- where is permalink info stored in database?
- Passing and retrieving query vars in wordpress
- Get the current page URL (including pagination)
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- How would I create a different permalink structure for pages and posts?
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- Is there an action for when permalinks are rebuilt?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- mod_rewrite enabled but Permalinks show index.php
- Why does /wp-json/ not work on the “plain” permalink structure?
- Custom Permalink: /year/month/post-goes-here/?
- How to change “permalink” structure in “WordPress Thesis” theme?
- Turn off %postname% auto-incrementing?
- How to get the post id from a permalink?
- Does a parent page’s post_title have to appear in a child page permalink?
- Stop redirecting to posts not in a category / duplicate slugs
- How to make variables in URL look like the permalink structure?
- Why I can’t change the permalink of this page?
- Custom Taxonomy URL
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Custom attachment permalink structure [closed]
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Why does chrome keep downloading a file instead of running the site?
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Re-write specific custom post type category URL to go to another page
- Get page by path – honoring permalink settings (urls w/slashes)
- How to change the permalink option to post name on theme activation?
- Does rename of page slugs create 301 redirects from old slug to new (same as for posts)?
- Changing post content on save, using updated fields
- Pagination Issue – /page/2 404
- How to stop WordPress from removing & from URL?
- Change in permalink structure made javascript cookie not work correctly
- Change permalinks on move from one site to another
- Making permalinks to /%postname%/ by default in installation
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Custom Post Type Yearly Archive Permalinks
- Images in media library have suddenly disappeared
- Post with Custom Permalinks
- Can’t select blog month within archive category
- Passing the JQuery string to Worldpress URL
- An other permalink problem – 404 Error
- permalink results to “page not found”
- How to prevent WP overwriting my custom htaccess rewrites?
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- Edit permalink for certain pages
- How can I include permalinks in this code?
- Strange behavior with a redirect loop – involves WPML multi-language plugin
- Adding category slug to posts permalink causes 404 error
- Apply function only if end of url has /amp/ [closed]
- Post Title to link to a PDF
- Permalinks – .htaccess
- Configuring Home Page Address
- WordPress Permalinks 404 bug with “next” button
- Combine category AND custom taxonomy in permalink structure
- How to Force HTTPS on a WordPress and remove HTTPS from permalinks
- permalink and add_rewrite_rule – error 404
- How can I see a list of all pages my WordPress site has generated?
- Non Latin page permalink problem
- Custom permalink structure for product
- index.php in URL
- archive by year and category: permalink support doesn’t work on pagination
- Empty the_excerpt() broke the_permalink() under him?
- Permalink not changing according to post type
- iFrame permalinks on WordPress
- Change permalink structure in all sites of a multisite
- Custom permalink structure with a prefix just for posts
- How to change permalink for listings
- WordPress Pages that use Domain URL
- 404 page not found – Yet open admin page it works
- How can I have a page’s permalink include my custom post type’s slug?
- wordpress admin panel loop on nginx
- Can’t access new WP install on subdirectory
- WordPress Permalinks
- Problem with permalinks
- Find internal links to post
- On Macbook, my permalinks with post name don’t work. Returning 404 error
- “Undefined” added to page content after google Adwords click
- create user’s view profile link with username
- WordPress pages break with custom permalink settings (theme directory not output)
- Remove /index.php from Permalink
- Image upload ruined my links
- How to rewrite a folder in WordPress?
- The Permalink doesn’t work after the foreach ended
- Permalinks setting raises 500.0 error
- Tag search not working after permalink structure change
- Why is there a # and other characters in URL for WordPress site?
- permalink repeated
- redirect old pages by .htaccess
- wp_get_attachment_url not working
- Custom permalink to make a page respond properly
- How to avoid duplicate Url for the home page
- WordPress 3.1 problem, getting 404
- Display a custom slug in URL depending on user variable
- htaccess strip url
- Redirect Loops Problems
- Problems loading stylesheet and permalinks after rebooting