I’ve fixed this issue by adding the below code:
add_rewrite_rule('our-team/developers/?$','index.php?pagename=our-team/developers', 'top');
add_rewrite_rule('our-team/support-staff/?$','index.php?pagename=our-team/support-staff', 'top');
Related Posts:
- Using save_post to replace the post’s title
- How do I safely change the name of a custom post type?
- limit selection of custom taxonomies to one?
- why doesn’t the_content() work in this {single-custom_post_type.php} page?
- Custom Post Type Menus
- Custom Taxonomy Template Post List with Sort Order
- Hiding Custom Post Type from Google?
- Display Custom Post Type Fields
- functions.php conditional tag only for custom post type
- Get monthly archives for custom post type
- Taxonomy page returns 404 page not found
- How to get dynamically custom post type that are under a certain category
- Downsides to not using built-in “Posts” post type?
- custom post type archive template per custom taxonomy term
- I need basic help with custom post types
- Custom metabox translation
- Get all taxonomies for all post types
- How to make custom post meta wp_editor translatable?
- Lock post meta block at the bottom of a custom post type
- Linking three taxonomies with ACF
- How do I set the link in the Custom Post Type admin menu?
- How to List Thumbnails based on Custom Categories
- After updating a page, all pages on the site used the index.php template
- Meta_query with relation ‘OR’ killing server CPU
- custom posts on different page
- show_in_rest false disable Gutenberg
- Pre_get_posts filter overwrites all search functionality
- How to add pagination to wp_query [duplicate]
- Custom Post Types and independent Categories – complex Taxonomy
- WordPress Ignoring My Custom Post Type Templates?
- Storing posts from query and accessing later via AJAX call
- If post has custom field then display css-class
- Give a permalink to Custom Post Types without title
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Custom Tag Description unable to display just below and outside of the Loop
- Custom post type + category archive page
- List all posts in a custom post type with pagination (the correct way)
- Rewrite custom post type url – Multiple post types
- How to conditionally redirect to the post from a taxonomy page?
- Add post location with mile radius allowing search
- Adding the_content() in custom template email
- set permalink for CPT
- Post 2 Post: Getting connected ‘person’ from post author
- My archive-posttype.php template is not loading
- Does WP have a global of $id?
- Check if post has specific tag_ID in custom post type
- Global custom meta box
- custom post type vs. conditionally displaying meta boxes for specific terms?
- data-type=”” … needed post tags stripped of characters
- Add first letter of titles to array, then compare arrays
- Bootstrap accordion looping through posts incorrectly
- Use Pages for Custom Post Type
- Search Filter CPT, Custom Loop
- Get post ID of either existing post or new post
- Create a simple Testimonial page
- How to call a post’s metadata in shortcode.php?
- next page with custom post
- What should I learn to develop event management in wordpress? [closed]
- Why is the output of a call to the_excerpt different when the call seems to be identical?
- What is the best way to manage small blocks of content on my home page?
- Only looping through pages that have children or subpages
- Two-way synchronizing of a post type among multisite blogs
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- Custom post type rewrite url structure with taxonomy and sub taxonomy
- list articles in admin showing nested categories or slugs?
- How to upload two input files [closed]
- Custom Post Type with Category Separate
- URL issue retrieving Custom Post Types using Backbone JS API
- Custom metabox with image gallery upload that won’t attach images to post
- order custom post type posts by custom date
- Foreach result into WP_query
- Standard Page Child of CPT Not Found (404)
- Custom Post Type parent/child relationship rewrite rules for permalinks
- Related posts by taxonomies does not work , what could be the reason?
- Display first post of a term in taxonomy template
- How to transfer categories (default) to custom taxonomy?
- Query posts based on user preferences
- call a function when insert and update a custom post type
- How can I remove “Add new” button on custom post type
- Search attachments in custom post type only
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Custom Post type archives / categories give 404
- Sorting on Taxonomy in archive page
- Front-end form submission not creating post
- Yearly Archive from a custom date metabox (Event Start Date)
- Custom options for a Custom post type
- Custom loop won’t work, can’t find problem
- link posts to custom post type
- Add top-level menu pointing to a different custom post type?
- custom post type not getting archived?
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- See the process of creating a taxonomy and tell me where I made a mistake
- Google Analytics Dashboard for WP in Custom Column
- CPT Template Option to Top
- Navigation won’t update to show full path to single post
- WPNavi pagination links not working on custom pages
- Rewrite Rule for custom post type link with or without taxonomy terms
- How to add to taxonomies to a post type