Set has_archive
to false
. In order to keep the URL structure you want (/books/book-name), you’ll need to add a rewrite rule:
'rewrite' => array('slug' => 'books'),
Related Posts:
- Get custom post type slug for an archive page
- Custom post type pagination 404 fix?
- Filtering a custom post type by custom taxonomy in archive template
- get term archive url / link
- How to get the custom post type from an archive page?
- How to remove “Archive:” label from archive title
- Custom post types – Use post_id in permalink structure when using has_archive => true
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- How to add meta box to backend menu page
- Display Editable Text Above CPT Archive Listings
- Custom Post Type Archives with 0 Posts Redirects as 404
- Archive page with multiple taxonomies rewrite
- Archive page…limiting posts per page
- WP 3.1 – archive pages for custom content types possible now without a plugin?
- Date archives for custom post type
- Custom comment status possible?
- Custom Permalinks for Custom post Type Archives?
- paginate function in archive for custom-post-type
- Custom taxonomy archive page not working
- Change plugin’s has_archive = true to false?
- Call different archive page based on post type
- How to create archive page for taxonomy terms within custom post type
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category and post tag archives do not include posts from custom post type
- Slug for standard post post_type
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Get post type from taxonomy or category page
- Category page only displaying the posts from a custom type
- How to list custom post types?
- custom taxonomy archive by year
- Display custom post type taxonomies as an archive page
- Display CPT description on archive.php pages for all CPT
- Change name of custom post type archive
- When ‘is_post_type_archive()’ return true?
- Editable content on a Custom Archive page
- CPT Archive with core Category
- Custom Post Type Archive Page Filtering
- get the custom post type title/name
- Get archive post type name
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- URL of a custom post type’s post format archive?
- Filtering WP_Query
- Create template for taxonomy results limited by Custom Post Type
- Custom post type – get_day_link()
- WordPress showing archive.php instead page
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Is it better to use filter for the_content in archive pages?
- Archive not sorting correctly
- What’s the name of the custom post type yearly archive template?
- how to remove pages loading with the archive templates
- Archieve.php not loading for custom post type
- multiple custom post type on category page
- Assign CPT archive page attributes
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Use the custom post type archive for taxonomies?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Display Date & Author Info on Custom Post Type Archive Page
- How to constrain the results to a specific post_type on tag archive page?
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- How can I relate custom post types?
- How to prevent a custom post type from using the archive.php template?
- Event Archive by Month
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- How can I tell if I’m on a custom post type archive page?
- How to achieve a multi-taxomony layout with posts?
- Archive per year of a custom post getting the wrong post
- Custom Post type page content (archive page)
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Group custom post type posts by month
- Custom WordPress theme not displaying posts from category
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Custom post types not showing on the standard WordPress Category page
- Tell wordpress to show a single page instead of an archive page
- Turning archive templates to a page template maintaining the slug
- Custom post type categories giving 404
- Order archive custom posts by taxonomy term [duplicate]
- Custom Archive – hide posts until a search is made?
- Custom Post Type tag taxonomy “Page Not Found”
- Rewriting archive page slug to be different than custom post type slug
- Custom Post type archives / categories give 404
- Site loads very slow for archive custom post type page
- Archive.php is not displaying tags
- Custom post type category page not working
- Custom post types with date based archive
- paging is not working properly on news archives page [duplicate]
- Categories in custom post types
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- is_singular won’t call my functions?
- How to turn custom-post archive into an overview page, listing the metadata of the posts?
- how to pass args for archive.php query?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Remove plugin’s custom post type archive page and single pages [closed]
- Show custom category archive as front page and remove taxonomy slug from urls