Questions tagged [meta-boxes]
398 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
![](../../users/profiles/270204.webp)
DashaLuna
- 667
- 1
- 12
- 21
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(…
![](../../users/profiles/871705.webp)
smashp
- 153
- 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:
![](../../users/profiles/383847.webp)
helgatheviking
- 22,590
- 11
- 82
- 134
7
votes
2 answers
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…
![](../../users/profiles/1246926.webp)
Vitalie
- 323
- 3
- 13
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',…
![](../../users/profiles/4179779.webp)
jameshwart lopez
- 2,677
- 5
- 26
- 56
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' ),
…
![](../../users/profiles/4922594.webp)
Petar Popovic
- 425
- 6
- 18
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…
![](../../users/profiles/5229535.webp)
Chayan Biswas
- 516
- 2
- 5
- 17
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…
![](../../users/profiles/100240.webp)
Moon
- 20,835
- 65
- 174
- 263
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' =>…
![](../../users/profiles/1390003.webp)
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…
![](../../users/profiles/2291002.webp)
freaky
- 980
- 3
- 16
- 41
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 (…
![](../../users/profiles/759856.webp)
zuzuleinen
- 2,283
- 4
- 32
- 43
5
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…
![](../../users/profiles/5466788.webp)
L Ja
- 1,233
- 8
- 20
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.…
![](../../users/profiles/3016160.webp)
Adnan Shawkat
- 178
- 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…
![](../../users/profiles/8493077.webp)
Abhee
- 417
- 3
- 16