You can create a page template named template-page-projects-archive.php
(for example) that contains the following code:
<?php
/**
* Template Name: Project Archives
*/
require( locate_template( 'archive-wm_projects.php' ) );
exit();
When editing a page where you’d like to use the archive-wm_projects.php
template, just select Project Archives
from the template dropdown.
Related Posts:
- Load a script just to custom post type in admin
- How to hook into the CPT’s title placeholder?
- How to set a fall back template for a custom post type in a plugin?
- Post formats “audio” and “video” only showing in index.php
- how do I group content in magazine-style ‘issues’?
- Use standard WordPress categories with a CPT
- Semantic URL Custom Post Type and Taxonomies permalinks
- Pagination with custom loop
- Set post to draft after set period based on post_modified date
- WordPress custom post action hook
- Display metabox conditionally
- Change plugin’s has_archive = true to false?
- How to remove thumbnail sizes for specific post type on a child theme?
- Do attachments added to custom post types have a post parent?
- Get slug to point to different content of the same post
- How to make an archive page displaying posts in a date range
- Categories and Tags not working!
- get_categories() for only CPT
- category.php displays ALL posts instead of just those with the current category
- Having a 2nd admin page for a custom post type
- Custom Post Custom Taxonomy Data Not Saving in Edit Screen
- Display Next/Prev when looping Custom post-types archive?
- List custom posts by custom taxonomy
- How to Set Post Status to Draft if older than today
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- Create a post in custom post type using field in registration form after users submit form
- Display CPT posts based on specific taxonomy
- Wrong generated page_name/slug on first publish of custom post type
- Can’t change first part of URL rewrite for custom post type
- Get all properties of custom post type
- Add predefined/default values to custom post plugin
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Meta Key Value in current-user-only loop
- Hide editor while keeping add media button in custom post type
- dynamically add a custom field or metabox to custom post type [duplicate]
- How to use custom taxonomies to reference complex relationships?
- How to implement a Google map store locator
- CPT EVENT – listing by month and filtering by category and month – form select option
- custom post type WYSIWG removes paragraphs when displayed
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- How can the recipients and content for comment email notifications on a custom post type be changed?
- Meta Query posts not showing on ending date of custom field
- What is best way to prevent access to Custom Post Types unless authenticated when the post type has an archive and is publicly queryable?
- Get url.com/post_type/taxonomy/term work!
- How does the filter post_updated_messages work?
- How to get WordPress term attached to the Post?
- How to show only the most recent post on my custom post type archive?
- WordPress search and date filter not working with custom post type
- Adding something to the_content
- I’m having trouble getting the permalink sample on my custom post type edit page to work
- Is it a good idea to add a column to the posts table?
- Is it possible to load a different sidebar in single.php based on a meta_query filter?
- SEO Concerns With Rewrite Rules
- Empty taxonomy items for CPT in admin grid
- How to get_term_meta on single custom post?
- What is the correct term for a tool that filters content based on metadata?
- Assign a template to a custom post type when displayed by the main loop on the home page
- CPT, meta-data, url parameter
- How to prevent a custom post type from using the archive.php template?
- Easiest way to have closed comments on a custom post type
- Front-end Image Upload to Custom Meta Box
- Showing only posts from the current user who is logged in?
- How to make post templates to include shortcodes only?
- Letting the user define the arguments in a custom loop? (the “$custom_posts->query(…)” part)
- Using custom post types to give WordPress a more CMS-like look. What to prioritaize? Pages or Content?
- Need help with Custom Taxonomy + Custom Post Type
- Finding the CPT archive template source
- WordPress custom post type link are changed but returns 404
- URL for archive of custom post type with 2 taxonomy terms
- How can I query and sort custom-post type using WP_Query
- Custom post type for text box that appears on every page
- Custom Page Template – Widgets of wrong sidebar
- Cannot save pages after migration
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Display 3 level taxonomies
- Why custom post redirecting to index page?
- Custom Field as Custom Post type element class
- How to use two different pages to see the post content?
- Front page url permalink
- Custom meta box in editor of custom post type not working
- Calling in Post Content via AJAX
- How to retrieve json data from custom json enpoint created from a custom post type
- Multiple custom post type and permalink issue
- Using mediaelement to display gallery of audio
- Help ordering custom query by Title, Ascending
- How do I set a specific size for my image?
- group posts by month/date ignore years
- change precedence of permalink for post_types?
- Toggle a metabox based on a selection
- Image paths on custom post types getting /post_type/ added to path
- Problems with custom post type and hierarchical permalinks
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Trying to display next and previous set of posts on separate page (not parent page)
- How is it possible to list custom post types by “category” like with simple posts?
- Limit wordpress posts loop to continue onto another page
- post__in select all custom posts and not the selected array of ids