When you registered the post type, one of the arguments was rewrite, which took an array. make sure there’s a with_front
argument in the rewrite
array, and set it to false
.
<?php
$args = array(
// other stuf...
'rewrite' => array(
'slug' => 'popups',
'with_front' => false
),
// other stuf...
);
register_post_type( 'type', $args );
That should take care of it.
Important: Be sure to flush your rewrite rules after changing the code (go to settings > permalinks and hit save).
Related Posts:
- Add .html (dot HTML) extension to custom post types
- WordPress custom post type url change
- remove post-name from title in custom post type
- Rewrite Custom Post Type URL slug
- Query var removed after rewrite
- Custom Post type and permalink settings
- Custom Post Types, URL rewrite on multiple CPTs
- Get Taxonomy Term Title by it’s URL
- Front custom edit post page for each post
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- Rewrite Question Mark in Post Template to Make it Pretty URL
- Taxonomy in URL
- Custom Post Type Category URL
- How to create custom search result page with custom URL parameters for custom post type?
- Custom post type URL
- Custom Post Type URL Rewrite’s
- returning the currect URL for nested posts
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- Force WordPress to only match URL in category
- Custom post type with parent page? Possible?
- Why is a custom post type’s URL “/?cposts=name-of-the-post” but default post’s URL is “/?p=ID”?
- Customize category URL
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Custom post type with custom taxonomies structure url not working archive of CPT
- Rewrite rule taxonomy url with different values in one function
- Mixing custom post type and taxonomy rewrite structures?
- How to rewrite URI of custom post type?
- Custom post types – Use post_id in permalink structure
- Custom Post Type and Taxonomy URL rewrite
- Custom post type permalink: only use %post_id% and remove %postname%
- Rewrite custom post type rss feed links
- Add category to custom post URL
- Creating a custom public user page
- Archive page with multiple taxonomies rewrite
- rewrite get parameter with custom post type
- Taxonomy page returns 404 page not found
- Child pages on hierarchical Custom Post Types 404s
- Remove unwanted part of permalink custom structure from CPT url?
- Pagination throws 404
- Permalinks for CPT breaks permalinks to pages
- Possible to change the slug of default post type?
- Permalinks when filtering multiple custom post types by single taxonomy
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Displaying Posts of a Custom Type
- How to detect filter in URL in Category page?
- Relative URLs for a particular custom post type?
- How to have custom post type /example/ and then posts /example/posts.html
- Change custom post type slug from plugin options
- How can we take into account post types when constructing permalinks?
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- URLs for child terms
- Custom rewrite url category
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Rewrite custom post type url – Multiple post types
- Rewrites/query for multiple hierarchical custom post types
- WordPress uses url different from defined in rewrite arg of custom post type
- Rewrite rule for Custom Post Type Page as a parent
- Permalink misbehaving in Custom Post Types
- Custom URLs in post types make it impossible to view archive
- Custom Permalinks for Custom Post Types
- Share root slug for Child Page and Custom Post Type (prioritizing child pages over posts)
- How to create connection among state, city, store and store number based on URL
- Route subpage to Custom Post Type
- Add term slug in URL of custom post type details page
- Custom Post Type Advanced Slug
- How to constrain the results to a specific post_type on tag archive page?
- link featured image to external link
- Pagination for custom post types – url rewriting
- How to add page under a custom post type?
- Modifying rewrite rules to use /category//
- Post/Custom Post Type URL Access
- Custom rewrite rule takes place AFTER the generic category rule
- Adding /blog in front of single posts (only)
- multiple URLS for the same page
- Define multiple prefixes for custom post type
- Query custom post type and custom field by URL parameters
- Custom Post Type parent/child relationship rewrite rules for permalinks
- Turning archive templates to a page template maintaining the slug
- WordPress Custom post type slug rewrite
- Rewrite url post_tag for custom post type
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- How to manage a custom post type archive as a page?
- Single Post (CPT) in two pages – Normal and Extended
- WordPress custom post type rewrite rule matches all pages returning 404
- Remove custom post type slug but keep related category taxonomy permalink
- page not found for example.com/custom-post-name
- Custom post type clean url
- Why won’t this rewrite rule work?
- Cannot modify a registered custom post type rewrite slug
- Generating custom URL before post is published
- Removing custom post type name in single article URLs
- Tags and Taxonomy links not working for Custom Post Types
- Custom post type permalink structure
- How can i change url structure of cpt like this?
- How to rewrite custom slugs that follow my rules
- What is the best way to relate different custom post types?
- Allow child pages with the same base as the CPT slug