To achieve the URL mysite.com/books/[slug of book_category]
, in your taxonomy registration code, change:
'rewrite' => array( 'slug' => 'book_category' )
to:
'rewrite' => array( 'slug' => 'books' )
Related Posts:
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Archive page with multiple taxonomies rewrite
- Create permalink structure for one taxonomy archive per custom post type
- How to create archive page for taxonomy terms within custom post type
- custom taxonomy archive by year
- CPT Archive with core Category
- Create template for taxonomy results limited by Custom Post Type
- What’s the name of the custom post type yearly archive template?
- Use the custom post type archive for taxonomies?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- How to work with URLs where sometimes a post or a subcategory is in the same part of the URL structure
- Remove date rewrite rule for custom post type archive page
- Rewrite taxonomy permalink appended to CPT archive url
- How can I make the slug of the taxonomy also the slug of the custom post
- Customize Custom Post Type URL
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Number of Custom Post Types published are not being shown in the custom page
- Custom post type archive page blank
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Remove slug in URL custom post type
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- WordPress uses url different from defined in rewrite arg of custom post type
- URL rewriting for CTP assigned entity
- How to display custom post in archive section of the wordpress page?
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom taxonomy returns 404
- Including taxonomy term before post type breaks top level pages
- Correct procedure for advanced permalinks
- CPT’s with landing page instead of archive – Url Rewrite?
- posttype/taxonomy/term archive page 404 error
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Taxonomy in URL
- Custom taxonomy and post type with same slug
- Custom permalink with child taxonomy terms
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- Custom Post Archive is not working
- Custom post type archive with page as parent url
- Best way to specify “article type” in URL
- Custom Post type & Taxonomy 404
- Custom URLs in post types make it impossible to view archive
- How can I use archive-{post_type}.php theme template?
- Taxonomy archive 404ing (not term archive)
- Return the name of the post type
- I can’t access custom taxonomy page listing
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Alphabetically sort a taxonomy.php template by post title
- post_type_link Filter – Too Few Arguments
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- Permalink problems with custom post type and custom taxonomy
- sort CPT on Custom Taxonomy Archive page
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Add term slug in URL of custom post type details page
- Custom Post Type Advanced Slug
- Custom Post type date archive for custom taxonomy
- Show categories of custom post type and not all posts
- How to constrain the results to a specific post_type on tag archive page?
- WordPress custom permalink and archive link for custom post type
- How to rewrite the post slug of a custom post type post
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Query Posts that have Custom Taxonomy
- Modifying rewrite rules to use /category//
- Custom Post Type Custom Archive Page Not Working
- Custom Post Type View Button in Admin Gives 400 Error
- Getting custom taxonomy posts on archive page
- Taxonomy rewrite pagination 404
- Custom Post Type URL Rewrite’s
- Why does my URL keep returning 404 error code?
- Custom post type category permalinks and archive pages
- How to have multiple archive pages?
- Displaying custom taxonomy menu in custom post type archive
- Create a Custom Path to Archive
- Advanced archive url structure (category, tag and date)
- custom post archive URL is wrong
- Custom taxonomy and post type rewrite rules
- How can I tell if I’m on a custom post type archive page?
- WordPress sitemap with Custom Post Types
- Custom Post Type and Taxonomy Rewrite Error
- Is possible register two archive pages for single custom post type?
- Custom taxonomy terms as children of multiple custom post types
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Custom Post Type & Taxonomies – Rewrite
- Custom Post Type Archive Page showing as 404
- Remove custom permalink base from CPT custom category and custom tags
- How to properly set the rewrite rules for this case?