Questions tagged [meta-boxes]
424 questions
25
votes
8 answers
How to add wysiwyg editor in Wordpress meta box
I'm creating a meta box for my custom post type. There are multiple fields where I would like to use wysiwyg editor rather than

DashaLuna
- 666
- 2
- 12
- 22
13
votes
1 answer
When does Wordpress add hide-if-js class to metaboxes
I have 2 metaboxes added to "page" type.
But only in first case Wordpress (on its own) adds hide-if-js class to metabox container.
Questin is - when does Wordpress add this hide-if-js to the metabox container div ??
First metabox add code - this…

Vitalie
- 403
- 5
- 14
10
votes
1 answer
Notice: Array to string conversion in /var/www/html/mytheme/wp-includes/formatting.php on line 1025
Im trying to add variables instead of custom field IDs in my metaboxes file using this script
I added some options in redux framework to give possibility to change the custom fields.
user5247236
9
votes
1 answer
how to add a meta box to wordpress pages
i want to make this code for pages
add_action( 'add_meta_boxes', 'meta_box_video' );
function meta_box_video()
{
add_meta_box( 'video-meta-box-id', 'Video Embed', 'meta_box_callback', 'post', 'normal', 'high' );
}
function meta_box_callback(…

smashp
- 163
- 1
- 4
- 11
7
votes
1 answer
jquery-ui sortable on divs with TinyMCE editors causes text to disappear
following the instructions at:
http://www.farinspace.com/multiple-wordpress-wysiwyg-visual-editors/
i've got some nice WYSIWYG editors in my metaboxes
my markup looks like:

helgatheviking
- 25,596
- 11
- 95
- 152
7
votes
1 answer
Adding programmatically a custom settings tab to admin product data in WooCommerce
I want to programmatically add a settings tab to Product data metabox like this:
The "Verzendkosten" tab was added with firebug (which means "Shipping costs).
How would I programmatically add the "Verzendkosten" custom tab in woocommerce…

L Ja
- 1,384
- 1
- 11
- 22
6
votes
4 answers
Save custom post meta, not saving the data
I have created a custom post type with a metabox date from and date to.
Custom post type creation with the call back function of add_events_metaboxes
function event_list_init(){
$labels = array(
'name' => _x( 'Events',…

jameshwart lopez
- 2,993
- 6
- 35
- 65
6
votes
1 answer
WordPress - can't get value from metabox in custom post type
I have trouble to get a value from a metabox in a custom post type.
Here is how I register metabox in custom post type:
register_post_type( 'poslovi-newsletter',
array(
'labels' => array(
'name' => __( 'Poslovi newsletter' ),
…

Petar Popovic
- 575
- 6
- 20
6
votes
1 answer
How to make the custom meta boxes support for the visual composer in WordPress?
I am using the visual composer for the WordPress posts and pages actually for over all. But I want to make some custom meta boxes under the screen of the post editor. Actually already I have made the fields. But now I want to make those fields…

Chayan Biswas
- 566
- 2
- 6
- 18
6
votes
4 answers
How to remove Custom Field section from Wordpress?
I am trying to remove custom fields section from Wordpress backend. I think I found a function that display custom fields. The function is located in wp-admin/edit-page-form.php line 181.
do_meta_boxes('page','normal',$post)
when I remove the…

Moon
- 22,195
- 68
- 188
- 269
6
votes
1 answer
How to get value of custom meta boxes
I created some custom meta boxes for products.
In writepanel-product_data.php I added:
woocommerce_wp_text_input( array( 'id' => 'orario', 'class' => '', 'label' => __('Orario', 'woocommerce') ) );
woocommerce_wp_text_input( array( 'id' =>…

dan
- 125
- 1
- 2
- 9
6
votes
1 answer
Save meta box data from selected dropdown list
I'm trying to save some data in WordPress database from a meta box.
I've got a dropdown list to select some options and I want to save the selected option in database thanks to meta box.
However I have some difficulty with the save function in PHP…

freaky
- 990
- 3
- 17
- 44
5
votes
1 answer
What wp_verify_nonce() means?
I've read the reference of this function on Wordpress but i still don't understand what this function really does.
I'm reading a tutorial about creating a meta box in wordpress and I have this code inside the function which saves the data:
if (…

zuzuleinen
- 2,604
- 5
- 38
- 49
5
votes
1 answer
Any way to add metaboxes in custom settings page of custom post type in wordpress?
Hi I would like to add metaboxes under custom settings page which is under a custom post type. I can create metaboxes for custom post types also I can create a theme options. But can't find any way to add the metaboxes on a custom settings page.…

Adnan Shawkat
- 188
- 1
- 12
4
votes
3 answers
How to append custom metabox fields with jQuery in post
I am trying to add custom meta box in post programmatically, but js gives an error,the goal is when I click add button,the same text area box is append which
was created previously. My code for crating custom metabox in function.php file in twenty…

Abhee
- 425
- 1
- 5
- 17