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:
- Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?
- How to Add Custom Taxonomy To Woocommerce Plugin
- CPT Template Not Showing – Getting 404
- Development of a WordPress Search Plugin – Best Practices
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Adding meta values to permalink
- How to Add Pages Under Custom Post Type URL Structure?
- How to check if last uri segment is a custom post type or taxonomy term?
- Pagination Doesn’t Work
- Permalinks using event date (year & month) instead of publication date
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Getting arguments for register_post_type from a plugin generated post type
- update custom post type meta from a shortcode
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- Disabling post_type in URL
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Adding the taxonomy before the custom post type
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Pagination problem
- Custom post type with slug for plural (archive) and for single
- Shortcode insertion in tab
- Permalink Structure CPT With Custom Taxonomy Fails
- Rewrite WordPress URL to show CPT meta field data
- Custom Post Type won’t Register
- Add CPT as subpage under custom page
- Making a custom help center page
- Am I using the flush_rewrite_rules function in the right place?
- add category name to permalinks on product page /category-name/product-name
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- Customize Custom Post Type URL
- Hide or disallow default custom post type url?
- A case for Hierarchical Custom Posts
- Rewrite CPT child page URL to support query var
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Best structure / rewrite rules to achieve the following url
- Redirect to another page using contact form 7? [closed]
- How to add multiple images to a custom post type without plugin [closed]
- Properly flush rewrite rules on plugin activation
- WordPress custom slug rewrite
- How to create multiple editor?
- Custom post type, have only my meta boxes
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Custom post type paging 404 error
- Can’t delete a custom post in front end with custom role
- Post URL based on Custom Post Types variables
- Add custom field to admin area witthout using a metabox
- Can I assign a theme to a custom post type?
- Custom pages missing on “front page” setting
- Create Custom Post type that uses Page.php template
- Send post changes to set email addresses (not users or subscribers)
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Accessing a protected property of a post
- Multiple archives to display parent and subcategories content
- wordpress post_where set only for my costum post type
- Custom post types and custom variables — add_rewrite_tag() not working
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Custom post type 404 error on “default” or “numeric” permalinks
- Rewrite rules for custom post type
- Custom taxonomy and post type rewrite rules
- WordPress rewrite rule doesn’t work unless post category is explicitly called in regex
- Url Rewriting a dynamic wordpress page with parameters
- Custom Post Type add_rewrite_rule
- Sudden 404 pages on product category archives
- Set a template on a custom post in the plugin
- Simple way to hide\show an announcement (just a div) on homepage?
- Change CPT permalink to use the category
- add_rewrite_rule wordpress ignoring url pattern, wp rewrite not working
- Restrict Custom Post Type to One Item
- Add input radio menu to post
- Simple Data picker meta box
- Pagination URL in Custom Content Type
- How to create groups like that in buddypress?
- Custom post type rewrite and wp_pagenavi interfering with each other
- Custom Fields through plugin in a Custom Post Type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- How to Fix WordPress 500 Internal server error due to custom post type
- get_post_types doesn’t work in plugin
- Multiple Custom Post Type permalink issue
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- Custom post type child page 404
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- CPT Template Not Showing – Getting 404
- Configure which plugin custom post types get registered
- What is the proper way implement a global $wp_rewrite?
- Display results from two Custom Post Types in page template
- Ideal top-level slug methods
- Display Custom Post Type on Toolset Types Plugin
- Retrieve a post with its ACF repeater fields in wordpress
- add_rewrite_rule not working with custom post type
- Url rewrite with custom post type and taxonomy
- Paginate yearly archives for a custom post type
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)
- What is the best way to relate different custom post types?
- How to change rewrite slug for custom post type without conflicting w/ child pages of page with same slug