You can do something like this:
function wpse_61041_add_custom_box() {
//Place your custom post types in the array
$post_types = array ( 'post', 'page', 'another_custom_post_type' );
//Then loop through all post types and add meta boxes to them
foreach( $post_types as $post_type )
{
add_meta_box(
'wpse_61041_sectionid',
'Does this page is in Englsih?',
'wpse_61041_inner_custom_box',
$post_type,
'side',
'high'
);
}
}
Related Posts:
- Why won’t my metabox data save?
- How to add meta box to backend menu page
- How to add multiple images to a custom post type single post?
- Listing Pages With Checkboxes In a Metabox (and saving them)
- Add metabox with media uploader in a custom post type [duplicate]
- Get all posts from custom post type and insert in select input as metabox
- Add comments meta fields to comments metabox on post edit screen
- 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
- Embed ‘New Post’ Form Inside ‘New Post’ Form
- How to stop wordpress from mangling HTML in a metabox textarea
- Relate two custom post type using meta box
- Hiding Metabox from Screen Options Pull Down
- How to: add option to add more checkboxes on custom post type
- how to set default value for checkbox in wordpress
- How can I show/add/save custom metaboxes as an Array of values?
- Unable to show meta box data in frontend
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- 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
- Custom meta box not saving
- Push metadata in array
- WordPress 3.5 Media Uploader – Only allow 1 upload and certain file types
- Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible
- Custom Post Type uses Custom Tags in add_filter?
- Getting Custom Post Type Meta on Publish
- Adding Page Templates to post but it ignored it
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- How can I move (or create another) publish button?
- Wrap meta boxes & data handling for specific post types in classes?
- Can custom fields be added without a meta box?
- Meta Box on Custom Post Type not saving
- Custom “radio button meta box” not saving correctly
- Meta Data for Custom Post Type not saving
- Remove “show sharing buttons” metabox Jetpack from custom post type
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- custom post type metaboxes not saving
- Custom post type, have only my meta boxes
- Display Repeatable Meta Box Content
- Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”
- What do the numbers mean at the end of add_action(‘save_post’)…?
- Saving Meta Data within Custom Post Type
- A meta box (in a custom post type) with two different type of fields
- Unable to display selected post title in frontend from metabox wp_dropdown_pages()
- Values from meta-box not on $_POST
- Custom Meta Box returns no HTML
- Topic won’t save for a custom post type — how to debug?
- Get id from metabox dropdown
- Custom posttype content metabox
- Removing numerous Meta boxes from numerous CPTs
- Reusable metabox backend and frontend
- 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?
- Save Metabox Custom Field Value
- Meta box data not saving
- Questions regarding add_meta_box()
- Meta box not appearing in my custom post type
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Adding an extra parameter [string] to my posts’ permalink?
- Empty meta-box returns publishdate if no value is set?
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- Select Venue from dropdown list and reuse stored address information in meta_box
- Custom Meta Box with variable number of fields
- Save Custom Post Value
- Metaboxes inside Tab
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Show a custom post title in another custom post type in Meta box
- Custom Metabox Info Not Saving
- Metabox collapsed by default
- Modify Publish Metabox location on CPT
- PHP Warning with Custom Fields
- Multiple useres editing specified content
- $_POST from a Meta Box
- Custom taxonomy with custom post type archive page
- Wrong post ID in meta box callback
- Convert Custom Post Data to Javascript Array for Autocomplete
- Generating Custom Post Type list, within admin of another custom post type
- How to shows CPT which has specific meta key?
- Avoid another meta box in my custom post type
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Delete custom post type metadata without deleting the post in admin area
- Metabox is not saving
- How can i embbed two different galleries in custom post type
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Select custom post by meta value
- Make meta box appear if the previous if not empty?
- Adapting plugin for custom post type?
- Custom post type – permalink
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How to query custom post then display sections by meta value
- Custom meta box includes
- Post AND page parameter for WP function
- Add text to metabox input text field from Thickbox
- Display div based on Group metabox selection [closed]
- Multiple posts selection [closed]
- Cannot change meta box position
- Just the First Metabox what saves the data!
- Can’t retrieve custom post type taxonomy term to custom post type editor