You can create a custom query with WP_Query
to get all posts from your post type. This is how a basic query will look like, you just need to tweak it to your needs
<?php
// The Query
$the_query = new WP_Query( 'post_type=project&posts_per_page=-1' );
// The Loop
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo '<li>' . get_the_title() . '</li>';
}
}
wp_reset_postdata();
Related Posts:
- How to get all taxonomies of a post type?
- Permalinks: custom post type -> custom taxonomy -> post
- How to Add Tags to Custom Post Type?
- How come Featured Image isn’t showing up in my Custom Post Type?
- Efficient Taxonomy Intersection
- List Categories for Custom Post Types – WordPress
- How to create a wp_query that contains both meta_query and tax_query
- Display custom post type and custom fields within a Bootstrap Carousel
- Can I have Post Types under other Post Types in Admin menu?
- Extend walker class with custom post types [closed]
- Notice: map_meta_cap was called incorrectly
- Archive page…limiting posts per page
- Seperating Custom Post Search Results
- Use WP_Query object inside a function
- How to have a custom URL structure for a custom post type?
- Custom permalinks – post type – hierarchical taxonomy’s
- How do I create new content pages for my Custom Post Type?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- Custom post types and permalinks : What a mess !
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Custom post type history
- Custom Taxonomy breaking pages permalinks
- Frontend Form for Custom Post Type
- Query Custom Post Types by date (custom field) range
- CPT’s archive and single page not working [closed]
- How to show custom post template from single page?
- Custom query shows custom post types in trash
- Do i need to keep register_post_type in functions.php?
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Custom Post type and Custom Field WP_Query
- Repeating posts when paginating random posts
- Custom post type table
- Modify action buttons for custom post type
- How to clone the “Projects” Custom Post type in Divi theme
- Remove url rewrites for registered taxonomies
- Multiple Loops On Custom Post Type Template?
- Cannot add custom field to “orderby” parameter in Rest API
- Not Able to Get Custom Post Type Gallery Images URL
- Form action/link to render a plugin in WordPress front-end
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Building a Treatments Page, What Do I Use?
- How do I share categories across multiple post types?
- Is it better to use filter for the_content in archive pages?
- Multiple Frontend Filters Using Advanced Custom Fields
- How do I programmatically create new posts of a custom post type over the XML-RPC API?
- Migrating a taxonomy’s tags to the native category
- Make custom post types and pages place nice, re: rewrite
- How to create subcategory for Custom Post Type?
- how to echo meta tag in header using php
- post_parent in custom post type
- Forms and WordPress Nonce
- How do I add custom HTML to the content of an archive page’s posts?
- How to create connection among state, city, store and store number based on URL
- How to add query args to links to CPT admin submenu
- Templates for hierarchical custom post type
- filter by custom taxonomy using ajax
- Get post content from another section in custom single page
- How to get the current category with custom posts
- Modify Posts from Custom_Post_Type within the plugin
- List child categories from parent category on custom taxonomy page
- Custom post type – change name in sidebar
- Create a custom taxonomy template that loops through child categories in term order?
- custom post type: own database table structure and custom “new-post” interface
- Custom Post Types and Complex Content Hierarchy
- How do I “trash” a custom post type post while logged in as Admin
- Pagenavi Plugin and Custom Post Type – Multipage results
- custom filtering admin columns
- How to display custom taxonomy term specific post?
- Limit custom post type to the authors only on front-end!
- Remove Header and style.css from Specific Post template
- How to remove default modules on single event page on Modern Events Calendar
- Show posts from WP Custom Post Type selected from a field in a metabox
- WordPress post not executing shortcode until updated
- How to create a permalink structure with custom taxonomies and custom post types
- Modify the category post counting function
- Permalinks change when edit published post on custom post type
- How to create new permission for custom post types for doing specific tasks
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- Keep custom read more link on the same line as excerpt text
- Edit is changing my custom’s post type parent id
- Custom Post Type
- Hierarchical taxonomy in permalink structure
- Working with gallery shortcode and get gallery images
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Ads below footer
- Rewrite for custom type and custom taxonomy
- Change custom post status to draft before today
- Pagination with Custom Post Type
- Query child posts on parents single.php?
- Sort custom post type items by taxonomy description
- Show custom post along with default post
- Loop to pull content from parent element in custom post type [duplicate]
- Where do I insert to? [closed]
- WordPress Loop trouble with ACF [closed]
- get_the_post_navigation not working
- Display ACF object field data using Elementor Custom Query
- Custom post type with custom parent prefix slug