The archive-{post-type}.php
files goes directly in your theme directory. Notice that you will also need to make sure has_archive
is set to true for any post types you wish to display as archives. Depending on how you registered you post type the method used to change this might differ. I’m really just familiar with registering manually using register_post_type
, in which case you simply need to include 'has_archive' => true
in your arguments array, but I would suspect the corresponding functionality to be available in most post type related plugins.
Related Posts:
- Where to put my code: plugin or functions.php?
- Mini-Site Strategy
- How to set a fall back template for a custom post type in a plugin?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- custom comments form for custom post type
- detect your custom post type in WordPress
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- Not Able to Add New Class To CPT Attachment Image
- Custom post category name showing empty
- How to store the third party script with HTML code in the wordpress custom input field?
- Get next and prev item from custom WP_Query and Custom Post Type
- Error 404 change permalink term custom term taxonomy
- I have a random letter appearing before my content. Where to start looking for the cause?
- Having issue on Loading Meta Data From CSV to CPT
- Front End users account with lots of user Roles (not Woocommerce)
- Custom post type that lets users create a set of posts?
- call a function when insert and update a custom post type
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- How to develop custom URL redirection
- Issue on Counting CPT’s Under Taxonomy Term
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Need some hints for my own WP theme development
- ACF simple text field value not showing
- Custom Post Type rewrite
- Admin notice not displaying
- Made Custom Post Types, but single.php not working
- Is it possible to place custom post type files inside a folder in theme directory?
- Custom Post Type: Upload Multiple Images
- Displaying a custom post types custom taxonomy value?
- Detect where custom post type is declared
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Hook to override title, image and content
- Insert Multiple Post with Same Publish Button
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- What’s the difference between same wp functions get_posts(); functions in different form?
- get_object_taxonomies() returns empty array for custom post type
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- WordPress theme custom capabilities not works
- custom post type not showing in menu
- Custom posts don’t work
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- No posts found – Custom Post Type show_ui
- How to customize a permalink (URL) structure?
- Adding a custom post type taxonomy template in plugin
- Plugin: register custom post types, child ready and performance best practices
- How to add a custom taxonomy to show up in a custom post type menu?
- Get term name and term parent into custom post type permalink
- Give a permalink to Custom Post Types without title
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Help need making decision. Ads rotating site on wordpress
- Getting template_include to work when allow_url_include is off?
- Query & Order posts by custom fields
- custom taxonamy and post type
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- WordPress post_where & posts_join not working only for custom post type
- Add custom ID to CPT posts only create not update
- Add custom post type as submenu [closed]
- WordPress multiple custom post types capability conflict in a single menu
- Getting meta in editor plugin, and event triggering issue
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- Orderby CPT custom fields not working
- Unable to get Custom Plugin Options data
- Update post meta not working in transition_post_status
- Use custom metabox to update automatically a post after a given date
- Not Able to Get Custom Post Type Gallery Images URL
- JS innerhtml changing style when using AJAX
- Addition of custom option panel crashes Media Library & Admin Area
- Display a grid of taxonomy terms at root taxonomy page
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- How to change the post type a theme shows by default?
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- Custom Permalink to remove category word , keeping posts permalink with date?
- Form action/link to render a plugin in WordPress front-end
- What is the best practice for displaying my plugin content in themes?
- Custom post type archive page blank
- Add Custom Post type menu to another menu in specific location
- Set a CPT slug as a base name for all the taxonomies
- Event Custom Post Type Title show by upcoming Event Dates
- How to use TinyMCE Editor for one of my custom post meta field?
- How to have this permalink structure: post_type/postname/custom_inner_page
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- Building a Treatments Page, What Do I Use?
- Custom post listing page layout of custom post type
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- A custom post type in another post type
- Adding a metabox on a CPT’s submenu page
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Custom post types and category archive
- Plugin fatal error
- How to produce a sub-page-system in WordPress
- Wrap meta boxes & data handling for specific post types in classes?
- WebP Fallback for Inline Background Image in Style Attribute
- Problems wp_insert_post and save_posts filter
- How to specify a template for a path like http://example.com/something?
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- Suggestion on custom post type/ taxonomy relationship