Nevermind, I was able to solve this by updating my $args
in register_post_type
. I set 'with_front'
to false in my rewrite parameter for my affected custom post type and just updated my blog post permalink structure to /page-name/blog/%postname%/
'rewrite' => array('slug' => 'knowledge-base', 'with_front' => false)
Related Posts:
- Blog url disappears
- remove “index.php” from permalinks
- Passing and retrieving query vars in wordpress
- How does WordPress handle permalinks?
- Creating custom permalink structure for languages
- How to remove dates from existing permalinks?
- Getting the Site URL Including the Front Base
- Date based URLs for custom posts and pagination
- How to custom change author base without $this->front?
- How to prevent the default home rewrite to a static page
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- Make post slug have priority over category slug
- How to remove the index.php in the url?
- Remove subfolders from URL
- flexible rewrite ‘ramble’ URLs with WordPress
- Rewrite user profile URL to be human friendly
- How to Modify Existing Rewrite Rules?
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Image Attachment Url Rewrite
- Rewrite Page with a slug before page name
- Incorrect 404 for pages when using permalink, a static front page, and posts page
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- How to improve WordPress security by hiding non public facing files?
- Call to a member function add_rule() on a non-object
- Change author slug and functionality
- Why does chrome keep downloading a file instead of running the site?
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Re-write specific custom post type category URL to go to another page
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- Is it possible to keep all special letters for foreign languages in slug as in title?
- Change blog segment of URL
- remove sub-category of Custom Post Type from permalink structure
- How to redirect to correct pages after permalink structure change
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Add prefix to page URL based on the page template
- How to remove specific category from URL in WordPress
- Need to add trailing slash to all internal links relative and absolute
- Redirect a Blogger Page URL to wordpress
- Custom permalink leads to index page
- 404 when going to /blog
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- How to change hierarchical page permalinks to be flat
- IIS 7 Rewrite with parent categories
- How to rewrite a URL to another rewritten URL without changing the address?
- Passing the JQuery string to Worldpress URL
- Format HTTP links
- wordpress how to replace url /bar with foo/bar for custom post type
- Change directory url to be same as page permalink?
- How Do I get the author’s page id?
- Getting back a permalink from custom url
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- Adding URL prefix for foreign language support
- 404 permalink errors on Pages only
- help to remove last trailing slash using add_rewrite_rule
- How are WordPress Page URLs affected by permalink settings?
- Change permalink to attachment
- Access posts while mod_rewrite is broken
- Problems with permalinks (.htaccess not working)
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- Subdomains pointing to a permalink URL
- IIS7.5 URL rewrite pboblem on index page
- Can I change the URL structure for a CPT only?
- How to set add_query_arg properly for home page?
- corrupted URLs – can’t leave starting page
- Create different permalinks for same post
- Multiple Taxonomy Items for Separate URLs
- WordPress keeps removing query var from the URL
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- How can I access to the same post-type “page” from multiple different urls?
- Multiple URL rewrite rules and get every prams
- Permalink not changing according to post type
- Website URL Permalinks
- append current user-id to all internal permalinks
- rebuilding/ rewriting a url to make it SEO friendly
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Pagination links for taxonomy archive page 404 error on every page except first
- WordPress Pagination Custom Rewrite Rule for Pages
- Change all pages permalinks instead of hierarchical to have id of the page
- How to rewrite a folder in WordPress?
- Rewrite single template permalink?
- rewrites and custom links in page need help with add_rewrite_rule
- Category-dependent custom permalink
- All pages lead to home
- Folder Name and Category Name WordPress
- Although rewrite engine is on, I get 404 not found on every page
- Customized author slugs not working with get_author_posts_url method
- Editing the variables in a custom URL
- ?posts_type=xxx not rewritten
- How to change pagination base from slash to query form?
- region selection
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- Blog URL Structure – Multiple Taxonomies