Refers to a box-like reusable user-interface component common in the WordPress backend.

learn more… | top users | synonyms (2)

0
votes
0answers
7 views

add wp_editor to custom_meta_box

Can please anyone help? I created custom meta boxes, two of them are in textarea. This is what i have: array( 'label'=> 'Ingredients', 'desc' => 'List of ingrediends', ...
0
votes
0answers
14 views

Change post template the proper way

I'm trying to create an option on edit posts screen (backend) to select different post template based the selection and I need your opinions guys if that is the proper way. Here is what I've tried so ...
0
votes
0answers
11 views

Need to make a “Meta Box” for Post search

I have a theme, where i can associate post with page there is called ( Hubs ) its part of the actually page. I have figure out so much that when i post a news about something, and it have to go into ...
-1
votes
0answers
21 views

Data from my meta box in custom post not displaying [closed]

I can't display my data from my meta box that I created in custom post in my custom page. Here is the code
0
votes
1answer
24 views

Undefined index: post in NOTICE while adding meta box

I am trying to add meta box on particular page with id 62. But i get the notice Undefined index: post in in line 5 i.e $post_id= $_GET['post'] ? $_GET['post'] : $_POST['post_ID']; Following is the ...
0
votes
0answers
28 views

Create a Dropdown from Custom Post Type

I want to create a dropdown box that populates from my Contacts custom post type that I created. In my Contacts post I also created a meta box called Phone which stores a phone number. What I want to ...
0
votes
0answers
6 views

Display existing admin list table for custom post type in another location without recreating it

I have two custom post types; Inventory and Jobs. I have customised the columns displayed in the Inventory admin list table (ie. wp-admin/edit.php?post_type=inventory) to display relevant fields Is ...
0
votes
1answer
22 views

WP admin display custom field if another field value is “Female”

I have 3 custom fields: Gender, Partner name, and Partner last name. I need a js or CSS function. If I select "Female" from ecpt_gender select box, 2 custom fields appear by CSS changing the display ...
0
votes
1answer
32 views

Publish button inside custom field group

Is it possible to move the publish button out of the publish metabox, completely remove the metabox and then put the publish button inside the custom field group? Ask if you need more information, I ...
0
votes
0answers
44 views

echo value from 'select' field type into page template using cmb2?

I'm using CMB2 plugin to add metaboxes into a custom post type. I'm adding the additional metaboxes via functions.php onto child theme. It may worth to mention that parent theme/custom post already ...
0
votes
1answer
17 views

How can i add a custom meta box below publish box in CPT that will be like publish meta box and contain some html code?

How can i add a custom meta box below publish box in CPT that will be like publish meta box and contain some html code? See the attached shot for more info.
1
vote
1answer
16 views

Add pre-existing meta box to new custom post type

I have a parent theme that creates a number of custom meta boxes that are added to the "post" and "pages" post types as well as a number of post types also created by the theme. In my child theme, I ...
-2
votes
0answers
29 views

Convert My Code's In To Metabox

I have the following PHP: // define variables and set to empty values $gname = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $gname = test_input($_POST["gname"]); } function test_input($data) ...
0
votes
1answer
14 views

Meta Box multi checkbox in template

I've used this check meta box in my functions.php but I don't understand how I can get the meta data. I'm trying to output if a product is still available or not. Metabox setup: /* Array of the meta ...
0
votes
1answer
31 views

Display oembed in repeatable metaboxs using CMB2

I'm using CMB2 to set up a repeating field of meta boxes but I can't find any documentation on how to get a repeating oEmbed field to display on the front end. With the code below I have the metabox ...
0
votes
0answers
35 views

Meta box from child theme

I've done some searching and can't find exactly what I'm looking for. I've found this, removing meta boxes but I need to add. I did try changing that to add meta box. I'm wondering if it is possible ...
0
votes
1answer
33 views

Custom metabox fields not saving when limited to a certain CPT

I have a series of CPTs, each with their own custom metaboxes. They all work great - display where they should, saving how they should. One issue I have found though is that they also ALL run their ...
0
votes
1answer
27 views

Display Data From This Custom Media Upload Meta Box?

This plugin is working without any issue on CMS. Now I need to know how to properly display them in my post. Custom Media Upload Meta Box Plugin. $meta_box_media_upload = new ...
0
votes
1answer
19 views

Translating custom post type metaboxes

Is it possible to translate custom post type metaboxes (label not values of metaboxes fields) with localization? Or do I have to use some plugin like WPML? Thank you in advance. I have read this ...
0
votes
0answers
21 views

How To Add Image Uploader Using Plupload Library Into Metabox

I have created a custom post type and it has various metabox. No I want to add an image uploader using plupload library. Where can I can proper guideline to add this uploader?? I want to mention ...
0
votes
1answer
63 views

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?

I need the child theme to use a 'modified' version of its parent custom post type and correspondent page template. Basically I would like to add 5 new metaboxes, change 2 existing labels, and include ...
4
votes
4answers
190 views

get registered metaboxes by post type or post ID

I am looking for a method to get the registered metaboxes for a specific post type (or post ID) when on a separate, unrelated post type. I am working on making a custom "editing" post type for a ...
0
votes
0answers
26 views

Post Type with Feature Image + Image from metabox - Catch each a unique way

I have a Custom Post Type and'm using an image metabox (Odin theme metabox class). I need to render loop in the url image bgimg metabox, and Featured image as .... The Contrary I can, however when ...
0
votes
0answers
46 views

How to Mimic WP Custom Fields Ajax Methods

I have an admin metabox that allows the user to add multiple items. I am attempting to mimic the effect and styling that the default WP custom fields metabox gives users on posts/pages. I have the ...
0
votes
1answer
24 views

CPT and metabox: create multi checkbox by using array?

I have a custom post type to display informations of book. Then I created a metabox for it. And: I need to add a warning system (like: for kid, violent, mature, adult, etc...) chosen by multi ...
0
votes
0answers
18 views

Store custom taxonomy option data in option table

Iam stuck in middle of thing that how could i store custom field data in option table of custom taxonomy. Actually i have a csv file and i want to save those data in custom taxonomy with the help of ...
0
votes
0answers
37 views

How to add metaboxes in custom settings page of custom post type?

I would like to add meta boxes under a custom settings page, which is under a custom post type. I can create meta boxes for custom post types and I can create theme options, but can't find any way to ...
0
votes
0answers
15 views

Positioning issues with postbox-containers within my posts

I have two postbox-containers: <div id="postbox-container-1" class="postbox-container"> <div id="side-sortables" class="meta-box-sortables" style=""> ... </div> </div> ...
0
votes
0answers
42 views

Unable to get the values for metaboxes for custom post type

I am customizing this webpaint theme.I added repeater fields to the custom post "portfolio" using this great class by OHAD RAZ , link for the website is ...
1
vote
1answer
72 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
49 views

Add custom menu item metabox in Navigation Settings

I've been imagining a piece of functionality that would extend the WordPress drag and drop menu creation. Essentially adding a custom menu item button that would be used to add different types of ...
3
votes
1answer
57 views

Prevent sorting and dragging of specific postbox metabox

I'm attempting to limit the jQuery sortable functionality on certain postboxes/metaboxes when editing a post/page. So far I've enqueued my custom .js file in admin. wp_enqueue_script function ...
0
votes
1answer
35 views

Meta Box plugin image_advanced not showing up on frontend

I'm using the Meta Box plugin on a site and am having trouble with one of the meta boxes options. I've got it working fine in the backend, but when I use it in a page template all i get on the front ...
0
votes
0answers
11 views

Custom font face font from uploader

I'm making a website for a portfolio fonts. Here I use custom post types, namely Font. Then there metabox to upload a font file (.otf), then the font will be read as the font face in fonts.css file. ...
0
votes
1answer
19 views

how i remove meta tags generated from the theme

I need to remove some meta tags generated by the theme.i want to add my own meta data to my site page.How i can achieve this?where should i do the modifications?
0
votes
1answer
37 views

jQuery UI Sortable not Working With Metabox

I am having a LOT of trouble with this - my ul li's aren't going anywhere. I have looked at most of the 'duplicates' of this, but cannot for the life of me get it to work. And my code probably isn't ...
0
votes
0answers
19 views

Metabox on a custom page - How to include the appropriate default scripts and styles?

I have created a metabox on a CPT's submenu page created using add_meta_box. I see the metabox's style is not similar to the other metaboxes available on post edit pages. Moreover, the accordion type ...
0
votes
0answers
31 views

How can I create a simplified Product Entry meta box in WooCommerce

My client has hundreds of products to enter into their site. The WooCommerce product screen has so many entry fields but the client will only be using a few of these - maybe 5 total. I'd like to ...
1
vote
0answers
42 views

Adding a metabox on a CPT's submenu page

I have a custom post type registered and a submenu page for some admin actions for the CPT. This page has some items listed in a WP table. I want to add a meta box just below those items. This is ...
1
vote
1answer
95 views

advanced search forms with 3 input text and that the main problem 3 input text

N.B. : all my work is on wordpress. I was working for an advanced form with 3 input text in purpose to show a list of hotels. The problem is i tried an infinity tricks and functions but without any ...
0
votes
1answer
27 views

custom metabox nonce verification fails

I'm adding a metabox on a custom post type and my nonce-verification fails. I'm not really where to look for why it's going wrong. Can anyone point me in the right direction? Here's my code: function ...
0
votes
1answer
84 views

Showing a meta box in a custom post type on a page

I have a problem. I'm trying to add a meta box textarea field to a custom post type (in a plugin) with custom database table. The meta box is displaying in the custom post type, saving and updating, ...
0
votes
0answers
49 views

Hierarchical page parent dropdown menu

I wanted to create a three level dropdown menu for page parents as metabox in the edit screen for pages. I managed to do this to this level: <?php add_action('add_meta_boxes', ...
0
votes
0answers
63 views

Undefined index error in custom post metabox

I'm getting this error with my custom post metabox. The custom post and metabox works fine, but if i have debug on and when i try to save any other page or post, i will get an error: Notice: ...
0
votes
0answers
12 views

How do i retreive the ids of images from the gallery embedded to metabox

i have created a metabox with the following code $image_process_left = get_post_meta($post->ID, '_image_process_left', true); echo '<br><label for="image_process_left"><b>Image ...
0
votes
1answer
20 views

Extensible add_meta_box with apply filters

Im trying to give the user the option to extend/add the fields for a given metabox using filters using the class https://github.com/bainternet/My-Meta-Box this is what i have and it shows the fields ...
0
votes
0answers
69 views

Option Tree metaboxes on Custom Post Type does not import

I have a Custom Post Type portfolio which I make plugins. The CPT has metaboxes from Option Tree. I’m trying to Export and then Import the XML file on a new wordpress site. Metabox fields appears, but ...
0
votes
1answer
94 views

How to check if user meta field is empty in conditional else statement

Hello all I have a custom post type set up for my wordpress site within this custom post type i have a meta box with about 11 meta fields that I have added programatically. What I would like to do is ...
0
votes
0answers
36 views

Make metabox always be on top (sticky)

i want to make some metaboxes (my own and some default) to be always on top. not matter if new meta boxes with high property will be added (from plugins for example). i try to use this solution but ...
0
votes
1answer
561 views

Add special meta box to custom post type

I have managed to add a meta box to my custom post type (see code below) Now I need to add another meta box. With this box I want to display / edit a value from another table called ...