In both your rewrite
arguments, add 'with_front' => false
, then for your taxonomy change 'slug' => 'topics'
to 'slug' => 'knowledgebase'
.
Finally, switch the order of your registration – so that register_taxonomy
is called first. This will place the taxonomy rewrite rules above the post type rules (otherwise the latter will catch the former, since you have matching slugs).
Flush permalinks (just re-save them in the admin) and you’re good to go.
Related Posts:
- Custom post type single-{custom}.php not working
- Theme localization of “slugs” (custom post types, taxonomies)
- Automatically create child pages when saving a (parent) page
- Get terms that contain posts that in turn belong to other terms?
- Is there a way to use regular categories with custom post types?
- Get page by template?
- Get custom post type by category in a page template
- Associating an “author” with a custom taxonomy
- Site Structure Regarding Custom Post Types and Taxonomies
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- How to Programically add to the new WordPress menus
- Display CPT taxonomies as an archive page
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- What order? register_taxonomy() register_taxonomy_for_object_type() register_post_type()
- Website bookmarks as a custom post type
- Custom post type permalinks giving 404s
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Custom Taxonomy and tax_query Issue?
- Get list of terms of current taxonomy archive for another taxonomy
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- RSS feed for dynamic set of custom taxonomies terms
- 404 Error with Custom Post Types and Taxonomy
- Taxonomy Url with Custom post type prefix re-write rule
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- Show Post Count of a Category
- Display custom post type category taxonomy
- How to make a custom taxonomy selectable in post publish area?
- Only show posts from a certain category?
- Remove standard meta boxes from custom taxonomy
- List Post Title by Last Word Then Second Last
- Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)
- Customize Query for post
- Correct classes for WordPress menu items
- Custom loop with multiple taxonomy queries
- Tax query not producing any results
- Display post as term id
- How to filter wp_list_categories output with some custom post type meta query?
- Removing custom post type slug from URL
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Sitemap generation
- Advanced search form with filters for custom taxonomies
- Why cant I add a custom post type to a custom taxonomy?
- Show Custom Taxonomy title in loop
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Post Type Dilema – How do I categorise by country?
- Main query not querying any posts in custom taxonomy template
- Filter posts by tax (dropdown) and meta value
- Display custom taxonomy on my custom post type
- List Categories (wp_terms) and count posts
- Not able to export large no. of posts in csv
- Can I query posts by taxonomy conditionally based on post type?
- Which file/template is in charge of taxonomies for custom post types?
- How to get dropdown instance value in WordPress custom Widget
- Include custom post type custom taxonomies in Categories widget
- Custom sidebar for custom post type
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Get Terms from Custom Taxonomy and Current Post
- Display next 3 posts based on custom taxonomy
- Check when the post type changes, and display content
- Loop and add Specific Categories and Products Images
- custom post archive URL is wrong
- Display latest post of taxonomy
- Custom Post Type with Different Sets of Post Content?
- Add a class to a div if custom post type has specific terms?
- Custom post type paging return home page
- In child theme, add CPT to custom taxonomy registered in parent theme
- Custom taxonomies not displaying in some custom posts
- Custom taxonomy returns 404 even with saving permalinks
- Static Front Page not working for custom theme
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Custom post type shortcode with taxonomy attribute not working and no errors
- Live search by custom tag
- Set a Default CPT taxonomy by taxonomy id
- Custom taxonomy terms registered not showing when added in child theme
- Custom post edit page permalink links to edit page rather than the post
- Not Able to List CPT Based on Taxonomy Term
- Show tags of custom post types in WordPress
- Filter Term By Parent Term – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- Best way to group posts based on custom post type terms
- Query Pulling the same post twice
- Custom post type taxonomy not sorting correctly
- WordPress: insert a custom post type instance as an option for a custom taxonomy
- Trouble showing showing Posts related to custom post type and taxonomy.
- Archive templates based on taxonomies
- List a custom taxonomy’s terms, with links, on the taxonomy page
- How to get child taxonomies
- WP Query WordPress Post Type with the same Taxonomy name
- Pagination URL order
- show 10 most recent custom post types excluding the one(s) from specific custom taxonomy
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- update custom taxonomy with Ajax in edit.php file [duplicate]
- display custom post type from register taxonomy
- How to change order of custom post types. I want Featured post to come first
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Problem with shortcode