You set 'has_archive' => true
, which will make your post type archive URL localhost:3005/en/makeup_section/
, as it will use your post type slug if you do not specify a string.
Change it to 'has_archive' => 'sections'
to place it at localhost:3005/en/sections/
.
Related Posts:
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- Multiple post types – share same ReWrite slug?
- How to modify URL structures in custom post types and taxonomies or terms
- Modify custom post type rewrite rules in a separate function
- Change page /2 to /transcript with a Rewrite
- Using %postname% tag with a Custom Permastruct creates 400 Bad Request Errors from the server
- Permalink rewrite with custom post type and custom taxonomy
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Separating Search Results By Post Type
- List events by month
- Date query for a custom meta field
- Change plugin’s has_archive = true to false?
- wrong template for page of archive
- Change upload_dir folder at a certain cpt but cant change back
- How to have the right design for a custom post type without accessing themes
- Add hierarchical taxonomy to permalink for custom post type
- How to Combine Two Custom Post Types into Single Permalink Structure
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- how to add extra meta box or textarea into custom post types
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- how to add extra GET parameters to post to url with add_rewrite_rule?
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- How does WP handle multiple matching rewrite rules?
- How to hack YARPP plugin to find related posts for custom post type?
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Rewrite slug of custom post type to include post-id
- Rewrite Question Mark in Post Template to Make it Pretty URL
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Custom Post Type + Categories
- CPT Template Not Showing – Getting 404
- Make a custom_post translatable
- How to get list of taxonomy slugs ordered parents>childs?
- remove base slug from hierarchical custom post type
- Rewrite Endpoints and CPTs – How to use in a plugin
- add_rewrite_rule and passing variables for custom post types
- Adding custom image sizes and post types to a plugin or to a theme?
- Get url.com/post_type/taxonomy/term work!
- To use custom post types, or not to use
- Autocomplete or suggest from post titles inside plugin
- Show all tags on custom post type
- Relationship between set rewrite flag in register_post_type and add_rewrite_rule
- Custom rewrite to fetch feed data
- How to hook WP initialization without modifying functions.php
- ACF in wordpress
- custom post type archive page has 404 error even though has_archive is true
- Pods CMS: How to add custom column to Adnvanced Content Type
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Combine multiple CPT names to create valid permalinks
- SEO Concerns With Rewrite Rules
- Custom post type’s posts are not showing anywere but in xml sitemap
- Unable to format dates to put in event calendar
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Filter content in shortcode
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Custom post type in Custom widget – $listItem
- Validate Custom Post Type fields
- rewriterule not working
- Custom Plugin – Query CPT – Display Results
- Custom Post Type with modified permalink structure results in 404
- Modifying rewrite rules to use /category//
- Custom post type archive – error in nav-menu-template.php
- Subpages Permalinks Issues
- rewrite rules hierarchical
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Rewrite URL for CPT to domain/post-name/post-id
- How to apply multiple rewrite_rule to a single custom post type url?
- Custom permalink structure for custom post types including multiple taxonomy
- CPTs relationship
- Custom Post Type Front Page Gives 404
- Rewrite url for custom post type with specific url
- Custom Post Type single post type shown in theme single.php
- Include images from pages in wp search.php results in default wp search
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom taxonomy archive slug overwrites static page
- Group based routing and administration
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Adding Custom Taxonomy Along-with Post Name in Post Type Permalink
- Enable shortcodes on custom post type
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- WP_Query return highest number only
- Display subcategories in the filter on CPT
- how to use two permalinks for one custom post type based on categories
- Get the custom post type slug but remove the rewrite prefix?
- How to display custom post type in a submenu?
- Plugin Error on activating
- Custom Rewrite Tag Structure
- Parent cpt/child custom post type URL permalink relationship
- How to make nested custom post type slugs work
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- Plugin – read post into blank page [duplicate]
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- Custom Post Type to Plugin
- Woocommerce product page is not showing custom css [closed]
- add_rewrite_rule not working with custom post type
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)