You can achieve this when you register your post types. The slug
can be a path:
$section_args = array(
'rewrite' => array( 'slug' => 'help/section' ),
// your other args...
);
$article_args = array(
'rewrite' => array( 'slug' => 'help/article' ),
// your other args...
);
Related Posts:
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Multiple post types – share same ReWrite slug?
- How to modify URL structures in custom post types and taxonomies or terms
- Adding meta values to permalink
- Permalinks so that one custom post type appears to be a child of another, not working
- Permalink rewrite with custom post type and custom taxonomy
- Prepend meta_value to permalink of post
- Permalinks for CPT breaks permalinks to pages
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- WordPress Rewrite rule for nested post types
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Share parent path between Custom Post Types and Pages?
- Permalink Structure CPT With Custom Taxonomy Fails
- How to change custom post type permalink structure
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- Customize Custom Post Type URL
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Pretty URLs and custom post types
- Combine multiple CPT names to create valid permalinks
- Set parent for custom post type archive rewrite url
- Route subpage to Custom Post Type
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- WordPress custom permalink and archive link for custom post type
- Rewrite URL for CPT to domain/post-name/post-id
- Custom permalink structure for custom post types including multiple taxonomy
- How to make “single post” permalink maintain it’s sub-page structure
- Two CPT: one is using part of the custom rewrite slug from the other
- WordPress custom post type rewrite rule matches all pages returning 404
- Parent cpt/child custom post type URL permalink relationship
- Custom post type permalink structure
- What is the best way to relate different custom post types?
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- Front custom edit post page for each post
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Rewrite Question Mark in Post Template to Make it Pretty URL
- Assign same parrent Page to pages AND custom post types
- WordPress custom post type permalink rewrite shows page not found
- Using taxonomy term in CPT permalink – Pages 404’s
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Custom post type as home page with custom url
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- URL rewrite add author as base
- Custom Permalink to remove category word , keeping posts permalink with date?
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Rewrites/query for multiple hierarchical custom post types
- cpt and page sharing same base permalink
- Hide or disallow default custom post type url?
- Post Type rewrite rule to point to custom Page/template
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom taxonomy returns 404
- CPT’s with landing page instead of archive – Url Rewrite?
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type permalink returns 404
- Rewrite Endpoints and CPTs – How to use in a plugin
- Make custom post types and pages place nice, re: rewrite
- add_rewrite_rule and passing variables for custom post types
- Flush Rewrite Rules when new site is created on network
- Specific routing for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Lost of query parameter when using permalink
- Rewrite rule for Custom post type Monthly and Yearly archive
- Custom permalink with child taxonomy terms
- Add a permalink variable onto custom post type URL after post name slug
- Permalink misbehaving in Custom Post Types
- Best way to specify “article type” in URL
- How to query 2 custom post types that need to share a slug?
- Custom Rewrite Rule for Custom Post Type with URL Param
- WordPress custom slug rewrite
- How to have permalink like domain.com/term/postname?
- Custom Permalinks for Custom Post Types
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Custom Post Type Advanced Slug
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Dynamic CPT permalink structure based on ACF field value
- URL Rewrite – Page Archive
- Post type Permalink
- How to rewrite the post slug of a custom post type post
- rewriterule not working
- Pagination for custom post types – url rewriting
- Custom Post Type with modified permalink structure results in 404
- Modifying rewrite rules to use /category//
- Setting a homepage – doesn’t seem to work
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Under What Conditions Can I name my CPT the same as my CPT Page?
- Custom Post Type nest under a normal WordPress Page
- How to setup different permlalinks for posts and pages?
- Subpages Permalinks Issues
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Rewrite rules for custom post type