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?
- Rewriting a custom-post-type permalink with taxonomy term?
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Custom post type yearly/ monthly archive permalinks
- Custom post type taxonomies URL rewrite
- Page is defaulting to archive page and not designated template
- Custom permalinks
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Issues when rewrite rules collide?
- Custom post type permalink structure with the category also acting as an archive
- Custom Permalinks for Custom Post Types and Taxonomies
- Rewrite custom post type url’s adding meta box values
- Removing CPT slug from URL results in 404 error for archive page
- Custom post type category, taxonomy and URL rewrite problem
- Archive page for taxonomy of custom post type
- Disable single pages and archives and keep preview
- Custom Post Type/ Taxonomy URL rewrite
- Bulk 301 redirect for custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Custom query variable – get wordpress to redirect to nice permalink url
- how to get archive urls with same origin for custom types and terms?
- Custom-post-type-archive: posts sorted/filtered by year?
- multiple url slug for single custom post type
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- Custom post type archive page pagination
- Second Custom Post Type Archive
- is_main_query() not working for WP REST API
- Change Permalink Structure for Tag.php template
- Archive page for taxonomy terms
- Custom post type templating problem
- wp_list_categories() – current-cat class also inside posts?
- Custom Post Types, URL rewrite on multiple CPTs
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How can I make the slug of the taxonomy also the slug of the custom post
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- Custom post type archive page blank
- Custom taxonomy rewrite with query var returns %2F in URL
- Remove slug in URL custom post type
- URL rewriting for CTP assigned entity
- CPT’s with landing page instead of archive – Url Rewrite?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Best way to specify “article type” in URL
- Custom Post type & Taxonomy 404
- Dynamically insert an article at the top of a taxonomy archive – or?
- post_type_link Filter – Too Few Arguments
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- Show categories of custom post type and not all posts
- How to rewrite the post slug of a custom post type post
- How to have multiple archive pages?
- 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
- 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
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Custom Post Type & Taxonomies – Rewrite
- pagination problem listing custom post types of taxonomy in wordpress
- Static Front Page not working for custom theme
- Display CPT taxonomies as an archive page
- How to show custom post count in archive page
- Do not show child pages within a file page
- Change CPT permalink to use the category
- Redirect Custom Post Type from Child Taxonomies
- Set archive of custom post type like ‘posts’ page in reading settings is set
- Custom taxonomy with custom post type archive page
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Custom taxanomy and custom post type – pagination leads to 404
- Register post type getting error 404
- Flush rewrite rules when new cpt is registred
- Custome post type “tags” pick default archive instead of custom post type archive
- Customize url from the_terms
- Want to display my custom date archive to date.php but dont know how
- Help with Multi Level Category Archive Page
- CPT url rewriting : regular posts return 404 error
- Pagination fault in custom post type archive page [duplicate]
- One custom post type with two different url structure base on taxonomy term
- Stop Custom post type from being searched via URL
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Why is this custom post type defaulting to archive.php?
- Custom taxonomy archive page not routing?
- Pagination not working for archive
- Rewrite Rule for custom post type link with or without taxonomy terms