To show custom post type on a page, try something like this
//place code to display the title here
if ( get_post_type( $post->ID ) == 'posttypename' ){
//place code to display fields here
} else {
//place code to display excerpt here
}
Related Posts:
- Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
- Custom post type yearly/ monthly archive permalinks
- custom post type or taxonomy
- Display custom post type with shortcode
- Restrict custom post type view by user role
- Adding meta values to permalink
- Changing the priority of a custom taxonomy’s metabox
- Adding post tags to custom post types
- How to create a mini directory in WordPress?
- Pagination not working with custom category template
- Admin to user notices – best practices?
- Internationalize / translate custom post types & taxonomies
- Anyway to assign custom post types to a specific category?
- List with categories, subcategories and posts of custom posttype
- Multiple post types in archives (filter?)
- Can’t sort order of wp_query with 2 meta keys
- How to get source of custom meta image?
- Custom Post Type archive giving 404
- Get count of custom post type created by current user
- Remove the Publish metabox for custom post type [duplicate]
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How can I show recent posts from same taxonomy as the post currently being viewed?
- How could I create a ‘private comments’ section on a custom post type?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- count_many_users_posts except current logged in user?
- How to search map address in custom post type?
- Show custom post type randomly in any page
- Custom Search for Drafts in Custom Post Type
- How to create custom post listing in the admin?
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- only a certain role has access to a cpt
- Templates and meta
- What’s the difference between same wp functions get_posts(); functions in different form?
- Custom Post Type with Templates using Meta Boxes?
- Copy post from category to custum post type
- Wrong request query on cpt and tax
- Using default WP menu functionality to link to custom post-type listing?
- Permalink for a custom post type isn’t working and I don’t know why
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- How do I set default meta value by post type?
- How to Filter custom post type by taxonomy?
- Custom post type, organized by categories
- Side effects of Script and Iframe in post
- WP Meta query for a custom post type based on two values
- Wrap custom post type – ONLY- in a div
- How to import files to individual posts of a custom type
- Listing custom terms in custom post meta
- Some posts from custom post type to subdomains
- What content types are shown at a search page?
- Display posts with tag for custom post type only
- How can i automatically add CPT single pages as sub menu items
- Custom post type loop with custom category filtering
- Check if user has comment on current post
- Assigning a category to a custom post type in WordPress
- sortable columns for multiple custom post types not working
- Create a page by importing data from an XML file ( On clicking a button inside admin options page)
- If meta_value of meta_key is less than today’s date update meta key
- Shortcode to return single custom post based on post taxonomy
- Accessing a protected property of a post
- Custom post type title of each author in his own post
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Permalink Trouble with custom post types
- Require custom post type if is_admin() – template doesn’t show up?
- Custom Query: Multiple CPTs and a taxonomy filter
- Custom Posttype URL
- How can I loop at a Specific Taxonomy from a custom post type?
- Can I use the ‘category’ taxonomy for both posts and a custom post type?
- Copy data from 2 different ACF custom post types with relation
- Create post meta box that links another post
- Display custom post type taxonomy in a WordPress excerpt for current post
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Orderby if between two meta fields
- pagination problem listing custom post types of taxonomy in wordpress
- In the php, how can I have a category of a custom post type display?
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- Custom Post By Category
- Register post type getting error 404
- Change Custom Post Type to Post + Category
- Which File Populating CPTs in Slug URL
- Fixed custom fields depending on posttype/category
- Create custom YouTube-like permalinks for multiple custom post types
- Running get_posts within get_posts to get children of children
- Grouping and paging CPT events by month with custom field date
- I want to link an author to everything from any post type that they publish on the website
- One custom post type with two different url structure base on taxonomy term
- Change a custom post type on an existing site
- wp_query: How to retrieve current term slug in custom taxonomy?
- Selecting which pages to display custom post type on using checkbox
- Two single.php files?
- Custom Post Type Permalink
- Average Rating per Post based on Comment Rating
- Make meta box appear if the previous if not empty?
- why get_post_meta is returning 0?
- Display Custom Post Type on Toolset Types Plugin
- How to create an upload page (front side)
- Get all active posts that are tied to a custom taxonomy for a custom post type
- the_post_navigation in single page with multiple taxonomies
- Url rewrite with custom post type and taxonomy
- display related posts based on the PAGE TITLE
- Custom Post Types Permalink