Try below code.
add_action('add_meta_boxes','create_events_metaboxes');
function create_events_metaboxes() {
add_meta_box('events-meta-box','Events Details','show_events_metaboxes','events-lists');
}
function show_events_metaboxes($post){ echo 'Hello Meta box'; }
Hope this will helps you.
Refer from add_meta_box
Related Posts:
- How to get all taxonomies of a post type?
- Permalinks: custom post type -> custom taxonomy -> post
- Efficient Taxonomy Intersection
- Set relationship between custom_post_types
- 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
- How to add relationships between custom post types?
- Can I have Post Types under other Post Types in Admin menu?
- Custom taxonomy query for a custom post type
- Extend walker class with custom post types [closed]
- Notice: map_meta_cap was called incorrectly
- Archive page…limiting posts per page
- Is flush_rewrite_rules necessary when creating a custom post type? Why?
- 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?
- [Plugin: Posts 2 Posts] Changing display order of connections
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- Custom Post Type Meta Boxes
- Custom post types and permalinks : What a mess !
- How to display recent posts added in several custom post types
- 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
- Get categories and descriptions from custom post type
- How to show custom post template from single page?
- Custom query shows custom post types in trash
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Custom post template for particular posts
- Custom Post type and Custom Field WP_Query
- Repeating posts when paginating random posts
- Custom post type table
- How to show CPTs in term archive
- Custom query to filter posts that have current post as a taxonomy [closed]
- Modify action buttons for custom post type
- How to clone the “Projects” Custom Post type in Divi theme
- Remove url rewrites for registered taxonomies
- Pagination on with query_posts in custom post type template
- How to noindex for certain custom post type without using plugins..?
- Remove visibility for custom post type
- Group CPT posts by custom taxonomy
- Using meta_query and tax_query at the same time
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Filtering results for post_type tells me I don’t have permission
- How to display Related Posts based on number of taxonomy terms matched
- How to solve this custom post type goes to 404 page?
- Get term name without a foreach loop
- Getting used tags per post type
- Query & the_content() is showing in the header
- Custom meta Title for custom post type archive from page
- Navigate posts with different post type that are in the same categories
- Show Custom Message in WordPress Admin
- How do I assign a block template (.html) to a custom post type?
- How do I add html content to custom post type Posts using php?
- WordPress notification if new post published
- Restrict category access to specific users/groups. Author always has access
- List child categories from parent category on custom taxonomy page
- Custom post type – change name in sidebar
- Saving meta box data?
- 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
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- 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
- wp_insert_post deleting previous post custom meta
- 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
- Reuse the “category” slug for a custom post type
- 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
- Importing URLs of Audio Enclosures
- Edit is changing my custom’s post type parent id
- 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
- Change custom post status to draft before today
- Pagination with Custom Post Type
- Sort custom post type items by taxonomy description
- Show custom post along with default post
- How to turn custom-post archive into an overview page, listing the metadata of the posts?
- Loop to pull content from parent element in custom post type [duplicate]
- Get custom post type parent category
- How to create custom page templates with default page layout framework?
- WordPress Loop trouble with ACF [closed]
- Sort ACF by custom taxonomy