first you need to understand the support
parameter, so from the codex:
Register support of certain features for a given post type(s). All
features are directly associated with a functional area of the edit
screen, such as the editor or a meta box. Additionally, the
‘revisions’ feature dictates whether the post type will store
revisions, and the ‘comments’ feature dictates whether the comments
count will show on the edit screen.
So basically what this means is that if you register your post type with custom-fields
in the support
parameter of register_post_type
eg:
'supports' => array('custom-fields','title','editor','author','thumbnail','excerpt','comments')
your post type will support custom fields and the custom fields metabox will show on your custom post type edit screen, this one:
and how to use them is another question which has a great entry in the codex
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- WordPress 3.3 custom post type with /%postname%/ permastruct?
- Show Custom Taxonomy Inside Custom Menu
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- Have different search results template depending of custom post type searched
- Why does a custom post type need the ”hierarchical’ args setting?
- How do I programmatically add items of content to a custom post type?
- order by meta_value serialized array
- bulk Update post_meta with default values
- WP_Query pagination using only numbers instead of /page/1 on URL
- How do I set the content for a post of a particular CPT?
- Uploaded image not appearing in custom post type
- Output the slug and name of a CPT single post taxonomy term
- Slug for standard post post_type
- Custom post types – show specific posts
- Paginate_links links not working accordingly to how I do query the page
- Parent page using wp_dropdown_pages and multiple post types
- Query for custom post type objects in a taxonomy and with a meta value
- Remove parent from custom post type
- Add nonexisting pages to navigation
- How to add plugin custom field to custom post type?
- Multiple post type queries (with specific arguments for each)
- Is it possible to create a post using a metabox?
- Troubles with making a custom template for posts
- Custom Post Type and Labels
- related posts – pulling tags from a specific post type
- WP 3.0.5 – Custom posts matching 2 taxonomies
- Custom Post Type Loop within Shortcode
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
- How to add post_type=value when editing that post type in the WordPress admin?
- Change archive page template using pre_get_post
- Force documents to appear in Featured Image dialogue
- Custom post type redirected to homepage – how to debug
- Filtering WP_Query Dynamically on the Front-End
- How to retain $_POST data when submitting form to custom page
- Query with no terms uses index.php template instead of archive.php
- custom taxonamy and post type
- retrieve Meta field value from CPT and set those values as Image Meta Field “Title”
- Taxonomy custom post type URL
- Custom post type archive page – Posts overview – with one modal for multiple posts?
- Getting categories of posts under a custom taxonomy
- How do I display the taxonomy for a custom post type in an array
- Is it possible to to use custom post type types on a page with the same slug somehow?
- WordPress custom post query with pagination
- Custom Post Fields at the beginning of a Custom Permalink
- Add term to custom post type on draft
- When an unregistered user submits a form for a custom post type, send an email that lets them delete their post
- Multiple tag cloud filtering
- add_rewrite_rule and passing variables for custom post types
- Possible to filter custom post type with multiple meta data?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- get_page_by_title() doesn’t retrieve my post
- Show all tags on custom post type
- show custom value from frontend form in a post (custom post type)
- How to automatic update date and time when save custom post type
- get_the_tag_list() returns bad links
- Filter second dropdown (tax) based on first dropdown (cpt)
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- Merge page with custom post type
- Inefficient Query Confusion
- What is the diference between Post Metadata and Queried Object
- REST filters only firing when I have a param set
- WordPress custom post type and taxonomies
- Search for dates on custom post types
- Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?
- list posts of two post types in a single template
- Taxonomies exists – but not showing up
- Multiple post types for BuddyBlog plugin [closed]
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Custom Post Type Causes Error: Warning: call_user_func_array()
- “Order” doesn’t work in custom loop?
- Permalink with hierarchy of Custom Post Types
- How do I set a post slug automatically based on taxonomy?
- Get a list of custom post type (property) when clicked on custom taxonomy 1 (rent or sale) from custom taxonomy 2 (city) page
- How to divide Subcategories into pages of parent category wordpress
- Is there any filter to add a custom attribute to the tag in admin panel?
- Display Posts that fit a certain criteria on Category pages
- Custom post type category returns null
- Tell wordpress to show a single page instead of an archive page
- Modify Url for Edit Post Screen in Custom Post Type
- Post display in separate page [duplicate]
- Create dynamic logo carousel without using any plugin
- Delete Post by User
- Only show current category post
- WordPress Contents Migration
- Test for post type in request filter?
- Have two (permalinks) urls for a same custom post type
- If taxonomy show class of active
- Query Posts From Multiple Post Types
- Custom Post Type Permalinks Problem
- Custom Post Types (Changing post style based on category)
- How to loop through custom posts in admin edit screen
- Notices when submitting custom post type from front-end
- show custom post’s post in two different divs [duplicate]
- querying to custom field over ACF REST API
- Fatal Error WordPress Custom Post Type UI + WPML
- Delete old thumbnail when updating new