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
- Show Taxonomies with admin area for custom post type?
- Values from meta-box not on $_POST
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- Pagination doesnt work in custom post type
- Archive links for custom post types
- Include custom post type custom taxonomies in Categories widget
- Template Hierarchy for custom post type pages
- Create short URL with auto 301 redirect
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Custom Meta Box returns no HTML
- Metabox multiple custom post select -> display selected items?
- providing access to post_id or post inside functions.php
- Topic won’t save for a custom post type — how to debug?
- Custom post type suddenly stoped working after WordPress 5 update
- Removing full title and breadcrumb header container for a specific post type
- Get id from metabox dropdown
- Is it possible to use array_walk() to append terms to an array of posts?
- WordPress notification if new post published
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- Get current user id
- Show current user posts in custom post type query
- CMB2 metabox create select with list of post from CPT
- Custom Ratings for Theme, Proper way to Refactor Code and Clean up Template File
- Display metaboxes if checkbox ir marked
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Get post format
- Custom posttype content metabox
- Assign a template to a custom post type when displayed by the main loop on the home page
- Custom Post type content within a slider
- posts within custom post type all share the same content in the front-end
- post_content is stripping HTML when adding a new post? [closed]
- If Post type use sidebar (‘tree’)
- Shortcode to return single custom post based on post taxonomy
- link featured image to external link
- Removing numerous Meta boxes from numerous CPTs
- Reusable metabox backend and frontend
- Methods for development wordpress themes [closed]
- Custom post type in Custom widget – $listItem
- Odd behaviour for the update button when displaying a WP_List_Table
- Custom Post Type – after disable ‘Add New’, I can’t edit and delete post
- Get custom term meta problem on single post type
- Filter posts of custom post type by meta key in (List All Section)
- Creating alternate meta box context locations
- Using Wp_Query, Json to add Highcharts series data
- Is it possible to sort metabox teaxtarea values?
- Create a select metabox that the user can pupolate?
- Display custom meta on page that has been check in custom post type
- How can I output WPAlchemy repeating fields meta values in my page template?
- Template code to split a post and print a custom field?
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- wp_editor for custom post type doesn’t save value
- Send post changes to set email addresses (not users or subscribers)
- Custom posts – tag pagination
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Showing a meta box in a custom post type on a page
- Adding custom post formatting options in custom post types
- Save Metabox Custom Field Value
- Twitter Product Cards
- Meta box data not saving
- Searching post types
- saving dropdown menu data on custom post type
- Function to limit number of custom post types on homepage – TwentyTen
- Set Default Option Value as Blank for Meta Box
- Multiple wp_editor instances in custom post type using Ajax
- WP_Meta_Query object with conditionals
- Add admin script to several post types
- Questions regarding add_meta_box()