In your register_post_type, you set
'with_front'=> false,
Later you declare the following function without arguments:
add_permastruct( 'review', 'reviews/%year%/%review%');
add_permastruct has an argument of with_front and the default value is true, which conflicts with your earlier declaration.
Related Posts:
- How to change permalink structure for custom post type and it’s taxonomies?
- Category permalinks don’t work even after flushing
- Custom permalink structure for custom post types including multiple taxonomy
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- how to use two permalinks for one custom post type based on categories
- Is it possible for post and custom post type to share a category base slug?
- Adding categories to custom post type in permalink
- Can a custom post type have a Parent Page?
- Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?
- Get the first post term
- Custom Post Type Permalink / Rewrite not working immediately
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- How do I append multiple taxonomies to the URL?
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type 404s with rewriting even after resetting permalinks
- Multiple post types – share same ReWrite slug?
- Creating “static” taxonomies to choose from, inside custom post type?
- Rewrite rule for Custom post type Monthly and Yearly archive
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Taxonomy term in permalink
- Is there a way to use regular categories with custom post types?
- How to modify URL structures in custom post types and taxonomies or terms
- Adding meta values to permalink
- How to list all categories and tags in a page?
- Modify custom post type rewrite rules in a separate function
- Permalinks so that one custom post type appears to be a child of another, not working
- Help with a TV series Rewrite structure
- Taxonomy archives based on Custom Post Type
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Using %postname% tag with a Custom Permastruct creates 400 Bad Request Errors from the server
- Permalink rewrite with custom post type and custom taxonomy
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- Prepend meta_value to permalink of post
- How can you make permalink work for custom post type and taxonomy?
- How to check if last uri segment is a custom post type or taxonomy term?
- Permalinks using event date (year & month) instead of publication date
- How to get a list of term names of the custom post type im currently on in single.php
- Permalinks for CPT breaks permalinks to pages
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Disable WordPress Recognizing Path as Attachment
- On clicking on the category name the page is redirecting on 404 pge
- Custom Post Type: How to display all of same taxonomy?
- WordPress Rewrite rule for nested post types
- Remove “-2” from a Toolset Types URL with the same post name
- How to show custom taxonomy in the permalink?
- List all custom post type posts from a given category?
- Custom post type taxonomy template
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Custom Permalink Tag breaks Pagination
- WordPress rewrite my URL when i use pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Custom post types and permalink
- Permalinks for Taxonomy and Custom Post Type
- Category page only displaying the posts from a custom type
- Get a permalink structure of /%posttype%/%category%/%postname%
- Show Post Count of a Category
- Add hierarchical taxonomy to permalink for custom post type
- Custom Post Types and Categories?
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- How to create new category for custom post type?
- 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?
- Get Post Primary Category
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Permalink Structure CPT With Custom Taxonomy Fails
- Parent & Child Taxonomy slugs in custom post permalink
- How to get the post type from a category id?
- Custom Post Types and independent Categories – complex Taxonomy
- How to show CPTs in term archive
- Making a custom help center page
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- Custom Post Type Categories Not Maintaining URL structure any more
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- Custom post type child page 404
- Permalink clashing with Custom Post Type rewrite rule
- Parent cpt/child custom post type URL permalink relationship
- How to make nested custom post type slugs work
- category_name not working in WP_Query
- Problems with custom post type and hierarchical permalinks
- Category / Custom Post Type permalink issue
- How can I set up the URL for a category archive for a custom post type?
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- What is the proper way implement a global $wp_rewrite?
- Custom Post Type Permalinks with %category%
- Custom Post Type order Title ASC
- Custom post type permalink structure
- Remove slug from Custom Category Permalink + dual-category permalinks
- Single and Archive Pages with Custom Post Type
- Custom post type and category permalinks
- show only one category posts in admin
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)
- What is the best way to relate different custom post types?