When defining your MetaBox before registering it, just set the PostTypes it is applicable for:
$f711_meta_boxes[] = array(
'id' => 'details',
'title' => __( 'Details', 'f711_theme' ),
'pages' => array( 'publicity' ), // change this values
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array(
'name' => __( 'Fischi ist', 'f711_theme' ),
'desc' => __( 'Jaja, Beschreibung', 'f711_theme' ),
'id' => 'f711_is',
'type' => 'select',
'options' => array( __( 'gut', 'f711_theme' ), __( 'super', 'f711_theme' ))
)
)
);
Related Posts:
- echo value from ‘select’ field type into page template using cmb2?
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Hide Meta Boxes for Non-Admins
- Metabox not show in categories custom post type cmb2
- How to Add multiple instance of meta box to custom post type
- Custom post type, have only my meta boxes
- CMB2 metabox create select with list of post from CPT
- 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?
- Multiple useres editing specified content
- Simple Data picker meta box
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Extending a CPT by Created by another plugin
- Display Custom Post Type on Toolset Types Plugin
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- How to Add Custom Taxonomy To Woocommerce Plugin
- Meta Boxes: ‘admin_init’ or ‘add_meta_boxes’ hook?
- Development of a WordPress Search Plugin – Best Practices
- Can you make a custom metabox field be required to save a new post?
- Query custom post type by custom field
- Display content from custom meta boxes in revisions
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Changing the priority of a custom taxonomy’s metabox
- How to get custom metabox image field?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- How to select one major category (or custom taxonomy) for a custom post type?
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- Getting arguments for register_post_type from a plugin generated post type
- Custom post type’s slug gets wrong when adding a custom meta box
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Calculate Repeater Meta Box Input Field Values and Display Total
- How to localize value of posts
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How to append element after thumbnail
- Display custom post on home page based on a metabox selection
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- get_post_meta is returning image id
- WordPress nl2br is not converting newline to html line break when saving metabox value
- Shortcode insertion in tab
- Create custom PAGE with register_post_type
- Send email button in custom post type backend
- What’s the difference between same wp functions get_posts(); functions in different form?
- Custom Post Type with Templates using Meta Boxes?
- add category name to permalinks on product page /category-name/product-name
- A better way to add a meta box to custom post types
- Create Connection Between two post types
- Listing custom terms in custom post meta
- Can’t publish custom post type – “You are not allowed to edit this post.”
- How to add multiple images to a custom post type without plugin [closed]
- Moving meta boxes in admin
- How to create multiple editor?
- Can I restrict category availability?
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- How can I have different content for different countries?
- Retrieving meta-box from a custom-post-type
- Create a custom post type for a photo post
- How to insert data into meta box from another plugin?
- custom permalink for post only not custom post types
- Display metaboxes if checkbox ir marked
- Methods for development wordpress themes [closed]
- Overriding Plugin Function in Child Theme
- Create a select metabox that the user can pupolate?
- Display custom meta on page that has been check in custom post type
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- Saving metabox keys and storing values as array
- How to recover the post ID earlier in the WP admin hook action “firing” sequence?
- Publish box in CPT remove ‘edit’ link
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- Custom Post Type works when registered in functions.php but not when registered in plugin
- Admin metabox with custom post type dropdown option not update choosed input after saving
- Add other all taxonomies as meta boxes to custom post type
- Dropdown of existing posts in a metabox
- How to check if a new private custom post type is created?
- Metaboxes in Loop
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- php output of generated custom metabox
- How to create groups like that in buddypress?
- Custom meta box data not saving
- Collect custom post in a calendar
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- get_post_types doesn’t work in plugin
- Custom Post Type parent slug as menu item
- Problem with ‘save_post’ hook not running
- Customizing a plugin function using a hook
- Custom meta-box for all custom post types
- Meta-Box to add multiple items one at a time and on publish save all
- Displaying wp post categories into my custom metabox
- Filter CPT based on meta box value using Flexible Posts widget?
- Add Metabox to all custom post types
- Creating entries with image attachements within posts and managing them in a list
- Show search for data extracted from metabox
- Issues on saving data from CPT select metabox
- Retrieve a post with its ACF repeater fields in wordpress
- Remove custom meta boxes from custom post type
- How to consume external API from WordPress post editor and display the response data in the custom field?