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
- How to add custom content template part for a custom post type on main query using a plugin
- Custom Post Type Permalink Page Not Found
- wordpress plugin error handling
- How to get term link that crosses different custom post types?
- How often do you need to register_post_type?
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- How to use a dedicated template for the Custom Post Type from a plugin?
- How to append text to title of Custom Post Type post (without affecting all titles on page)?
- Managing event dates vs published dates in admin custom post type
- Use a textarea for a custom post type
- Assigning Multiple Layout Designs with Custom Pages in WordPress?
- How do I include drag-and-drop in a plugin?
- Integrating Orbit slider into wordpress through custom post type
- How do I alter the position of a Custom Post Type menu item within my plugin admin menu?
- Generate Shortcodes by Taxonomy
- Why is archive.php used for my page
- Get rewrite slug of custom post type in template
- Made Custom Post Types, but single.php not working
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Hook to override title, image and content
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- No posts found – Custom Post Type show_ui
- WordPress multiple custom post types capability conflict in a single menu
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- JS innerhtml changing style when using AJAX
- 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
- A custom post type in another post type
- Custom post types and category archive
- Redirect to another page using contact form 7? [closed]
- wordpress remove views from action links in a custom post
- how to set a WP Plugin’s url
- Getting 400 Bad Request on AJAX Call
- Option page’s form doesn’t work
- How can I include active content in a custom post type?
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- ajax response not recieving
- Archive links for custom post types
- Template Hierarchy for custom post type pages
- Custom Post type content within a slider
- Searching post types
- CPT to installable Plugin
- Most viewed post of custom post type
- filter the_content, custom post type, and wp_query
- Fill custom fields when saving custom post types
- How to exclude categories from a sidebar with active widgets in it?
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Custom post type page with parameter
- WordPress giving me the index
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Getting Same Description in All the Custom Taxonomy Posts
- Is it possible to get the specific content on the search page?
- Post type to appear on every page on site
- Replace Content of Sidebar on Custom Post Type
- How add Filter by Tags and by categories to custom post type in Gutenberg block
- Show a custom post title in another custom post type in Meta box
- Register custom_post_type from static function
- How to select meta key in custom database query
- Restrict Custom Post Type to One Item
- How to seperate posts by categories?
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Widget area for individual posts (custom post type)?
- How can I load Template file from wordpress plugin
- Creating Slider in wordpress theme with custom post
- Help with Multi Level Category Archive Page
- Execute code only after user clicks ‘update’ button for CPT being edited
- Can the wp_posts table have the same slug (post_name) in multiple statuses (post_status)?
- Loop carousel slider in wordpress
- get_pages can’t load pages with custom post types
- Add “post option” support parameter in custom post type using Hueman Theme?
- Add category slug as class attribute in a link array
- Custom post types working in functions.php but not in plugin
- Resources to learn OOP for WordPress plugins, custom post types, etc
- How to manage wordpress knowledge base/wiki/posts collections
- Passing postid of Testimonial Custom Post in Shortcode Parameter