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:
- Custom Post Type single post type shown in theme single.php
- CPT UI: Connect a custom post type to a custom post type
- Simple Data picker meta box
- How to check if a new private custom post type is created?
- The page or ad listing you are trying to reach no longer exists or has expired
- Looping through image object using ACF and CPT UI [SOLVED]
- Run query on specific admin options page and send results to select field in another function
- Link two different post using there post_id in post meta
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Pagination URL in Custom Content Type
- Custom post type that lets users create a set of posts?
- 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
- Create Inclusions and exclusions
- How to create groups like that in buddypress?
- Custom post type rewrite and wp_pagenavi interfering with each other
- Custom taxonomy archive slug overwrites static page
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Post that populates itself (almost) automatically using data from imported excel file
- I broke it! Custom post type archive gets redirected to home
- 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
- Custom Fields through plugin in a Custom Post Type
- Can’t save custom post type fields
- Enable shortcodes on 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 Create movie schedule by custom post type query
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Custom Post Type Rewrite – Page Not Found
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- WP_Query return highest number only
- Display subcategories in the filter on CPT
- Remove custom post type generated by a plugin (The Events Calendar) [closed]
- Show custom taxonomy not in submenu
- how to use two permalinks for one custom post type based on categories
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- Understanding the workflow of form creation plugin
- WordPress custom post type rewrite rule matches all pages returning 404
- Adding CPT changes entire layout of my site except for the archive of that CPT
- page not found for example.com/custom-post-name
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- Use Custom Post Type as Storage Container Without Registering It
- Loop carousel slider in wordpress
- How to Fix WordPress 500 Internal server error due to custom post type
- Paging not working for hierarchical custom post type
- Custom Fields as Post Type Options
- get_post_types doesn’t work in plugin
- Get the custom post type slug but remove the rewrite prefix?
- next/prev post link by relationship post 2 post
- How to display custom post type in a submenu?
- Plugin Error on activating
- Rewrite for custom type and custom taxonomy
- Custom Post Type parent slug as menu item
- redirect old post type url to new structure url
- Customizing a plugin function using a hook
- Custom Info Box at end of posts?
- Multiple Custom Post Type permalink issue
- Custom Rewrite Tag Structure
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- Archive page for a custom post type using WPML
- Why won’t this rewrite rule work?
- Custom post type child page 404
- Permalink clashing with Custom Post Type rewrite rule
- Rewrite rules causing hole
- Parent cpt/child custom post type URL permalink relationship
- Custom post type rewrite with_front
- CPT Template Not Showing – Getting 404
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- How to make nested custom post type slugs work
- Add Excerpt On Quicksand Plugin
- Author profile comments system
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Custom Post Types in plugins?
- CPT Template Not Showing – Getting 404
- Plugins for putting Custom Post Types into the Menu
- Configure which plugin custom post types get registered
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- What is the proper way implement a global $wp_rewrite?
- rewrite rules add a folder in the path
- Display results from two Custom Post Types in page template
- Permalink of Custom Post Type
- Canonicalization + Custom Post Types not working as expected
- Ideal top-level slug methods
- Extending a CPT by Created by another plugin
- Custom Taxonomy in Permalink from post type
- Custom post type permalink structure
- How to add post type in masonry posts elementory widget
- Remove plugin’s custom post type archive page and single pages [closed]
- Display Custom Post Type on Toolset Types Plugin
- Plugin – read post into blank page [duplicate]
- How to Create Short Code Using Custom Post type
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- how to properly format custom post type rewrite to get specific URL structure for archive and post views
- How to add random prefix (based on related page slug) to custom post type?
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Rewrite taxonomy permalink appended to CPT archive url