In your code, you are using:
add_filter( 'team_Meta_Box', 'team_sample_metaboxes' );
On the site you linked to, they are using:
add_filter( 'cmb_meta_boxes', 'wpb_sample_metaboxes' );
So my question is: did you change all instances of “cmb” to “team” in the init.php file?
If you did, then the correct filter to use should be:
add_filter( 'team_meta_boxes', 'team_sample_metaboxes' );
Edit: If you did NOT change init.php file at all (and I don’t really see why you would change it), then you shouldn’t be changing “cmb” to “team” in your code in the following instances:
1)
add_filter( 'cmb_meta_boxes', 'team_sample_metaboxes' );
2)
if ( ! class_exists( 'cmb_Meta_Box' ) )
Related Posts:
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Custom Post Type – Taxonomy Dropdown Menu?
- echo value from ‘select’ field type into page template using cmb2?
- How to get custom metabox image field?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- Order custom posts by a date metabox
- How to select one major category (or custom taxonomy) for a custom post type?
- How to sort CPT by custom meta value (date), and return posts month by month
- Use Custom Post Type as Custom Field
- Saving multiple Metabox contents
- Displaying Meta Box Image
- Multiple information using custom post type
- how to set default value for checkbox in wordpress
- Conditional to modify query results
- Create a random unique 6 digit number as custom field for custom post type
- Using several custom fields as custom post title
- WordPress custom meta field for custom post not storing data
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- How to Duplicate (multiple meta box)?
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Save an array from drop-down in custom meta box
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- What’s the difference between same wp functions get_posts(); functions in different form?
- Keep display metadata value on backend – Custom Metabox
- Push metadata in array
- Troubles with saving metabox
- Why is my select meta data not saving?
- dynamically add a custom field or metabox to custom post type [duplicate]
- Query & Order posts by custom fields
- Visual editor issue by having multiple tiny mce editors in a CPT
- A better way to add a meta box to custom post types
- get_post_meta not working on publishing
- Using custom field content as expression in IF statement [closed]
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Grouping metadatas into one
- Cannot save CPT meta box
- Adding Page Templates to post but it ignored it
- Permalinks: custom structure for taxonomy – tags?
- How can I move (or create another) publish button?
- Custom “radio button meta box” not saving correctly
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- Custom Post Meta from custom metaboxes is randomly being deleted
- Display Repeatable Meta Box Content
- What do the numbers mean at the end of add_action(‘save_post’)…?
- A meta box (in a custom post type) with two different type of fields
- finding and using post type fields in WordPress
- Get data from PHP to JavaScript to set position of each post on front page
- Reusable metabox backend and frontend
- Get custom term meta problem on single post type
- 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?
- 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?
- How do I show my containing my custom field ONLY if there is a set value on that custom field? [closed]
- CPT Repeatable Fields + Undefined Index
- Let users upload image(s) to the post from front end
- Adding an extra parameter [string] to my posts’ permalink?
- Problem On Retrieving Post Meta Data on Custom Column [closed]
- Empty meta-box returns publishdate if no value is set?
- Saving metabox keys and storing values as array
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- How can I sort the order of multiple custom field values in a custom post type?
- How do I ensure that post_type and Taxonomy use the same slug?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Custom fields array to display it monthly
- Alike Shortcode using in Custom Shortcode
- I’m having trouble with Related Product “tax_query” ‘terms’ value
- Sort custom post column by generated value?
- when looping through custom post data not appearing
- How to avoid duplicate posts queried from custom meta?
- Custom Metabox Info Not Saving
- PHP Warning with Custom Fields
- Get meta values from parent post and save in child post
- Simple Data picker meta box
- PHP Notice: Unidentified index
- check_admin_referer not working in custom meta box for custom post type
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Avoid another meta box in my custom post type
- Meta box not saving
- Can’t pick up a field created with Advanced Custom Fields
- Delete custom post type metadata without deleting the post in admin area
- Function not pulling image or text from custom post type
- Meta-Box to add multiple items one at a time and on publish save all
- Filter CPT based on meta box value using Flexible Posts widget?
- Textarea type on one field custom add_meta_box?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- Custom meta box includes
- Creating entries with image attachements within posts and managing them in a list
- Adding a custom “Add Custom Field” button to Custom Meta boxes
- How do I filter a custom post type loop by a field?
- Display div based on Group metabox selection [closed]
- Get custom post fields and display them
- Send email on creation of custom post type and use get_post_meta()
- Just the First Metabox what saves the data!
- How to consume external API from WordPress post editor and display the response data in the custom field?