Hey Change Callback function to like this and add_meta_box to add_meta_boxes hook
function create_meta_box_slider() {
add_meta_box( 'new-meta-boxes-slider', __('slider Settings'), 'new_meta_box', 'slider', 'normal', 'high' );
}
add_action('add_meta_boxes', 'create_meta_box_slider');
function new_meta_box() {
global $meta_box_groups;
$meta_box_groups[] = $slide_info;
}
I think it work fine
Related Posts:
- What’s the difference between same wp functions get_posts(); functions in different form?
- Problem with multi checkboxes value in metabox?
- How to change default position of WP meta boxes?
- How to add multiple images to a custom post type single post?
- echo value from ‘select’ field type into page template using cmb2?
- Find callback function for custom taxonomy metabox
- Detect meta value changes when post is updated (post_updated)
- Saving multiple Metabox contents
- Multiple Content Block
- How to: add option to add more checkboxes on custom post type
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Custom Post Type with Templates using Meta Boxes?
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Anon function and add_meta_box
- Cannot save CPT meta box
- Global custom meta box
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- custom post type metaboxes not saving
- Custom post type’s posts are not showing anywere but in xml sitemap
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- Having Issue on Getting Metabox Checkbox Value
- Meta box not appearing in my custom post type
- Create dynamic logo carousel without using any plugin
- WordPress is giving a warning but my code is working fine
- How To Display Category list from Portfolio post type plugin?
- Search form to find custom meta box generated data
- Query custom post type and showing its content
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Post AND page parameter for WP function
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- How to force one column layout on custom post type edit page?
- Custom Post Type – Taxonomy Dropdown Menu?
- How to set a fall back template for a custom post type in a plugin?
- How to add multiple images to custom post type?
- How do I remove all the metaboxes for a custom post type?
- Creating a Custom Post Types dropdown in a Meta Box
- How do I add a custom post type to the Featured Content in twenty fourteen theme?
- WordPress metabox file upload in custom post [duplicate]
- Display metabox conditionally
- Custom post type loops with different page templates
- Timepicker-addon doesn’t show – Datepicker works fine?
- Is it possible to create a post using a metabox?
- How To Enable Block Editor (Gutenberg) for Existing Post Type via functions.php
- Create a post in custom post type using field in registration form after users submit form
- WordPress custom meta field for custom post not storing data
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- right_now_content_table_end function not working?
- dynamically add a custom field or metabox to custom post type [duplicate]
- Allow non-logged in users to see a future post after clicking on a list of future posts
- custom taxonamy and post type
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Adding a metabox on a CPT’s submenu page
- Add term to custom post type on draft
- Ordering values entered in Custom Taxonomies
- Permalinks: custom structure for taxonomy – tags?
- Template not working for the custom Post type
- Loop increase number
- Inefficient Query Confusion
- How to inherit field value from parent post into in child / sub post
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- Assign a template to a custom post type when displayed by the main loop on the home page
- If Post type use sidebar (‘tree’)
- link featured image to external link
- Showing a meta box in a custom post type on a page
- Redirect to URL if x number of days passed
- Display author box on just certain category posts?
- Custom post type posts wont show in wp_nav_menu()
- List of all posts in one custom post type in the edit screen of another
- How to divide Subcategories into pages of parent category wordpress
- how to display author name in custom post type
- create a “add icon” field in taxonomies page
- How to search through all child taxonomies using WP_Query?
- Custom Post Taxonomy Template Not Loading Properly
- How to get current post type?
- How to convert Post Object Custom Field into Tags
- Getting data from dynamically allocated metaboxes within a custom post
- Duplicate posts in my custom loop
- check_admin_referer not working in custom meta box for custom post type
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Custom meta box in editor of custom post type not working
- Meta box not saving
- call_user_func_array() error after moving to another server
- How to make post page unique and show it on home page?
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Toggle a metabox based on a selection
- Add multiple custom meta boxes to different custom post types
- How to bring custom meta boxes to custom post types?
- I want to split this into two functions
- Change position of Post Formats box?
- Add HTML before a specific div?
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs