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

learn more… | top users | synonyms (2)

0
votes
1answer
20 views

Metabox not being added

what is wrong with my code ? why it doesnt add meta box ? add_action('admin_menu', 'clivern_plugin_top_menu'); function clivern_plugin_top_menu() { add_menu_page('My Custom Page', 'My Custom ...
0
votes
0answers
18 views

do action inside a class is not working

I am trying to create my custom hook and call it from within a metabox class. Here is the pattern: metabox.php -- <?php require("libs.php"); require("test.php"); class metabox() { function ...
0
votes
0answers
8 views

Repeatable Metaboxes

I'm trying to add a repeatable field within another one, following this tutorial. http://code.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-3-extra-fields So I need a main repeatable field ...
0
votes
1answer
10 views

Cusotm MetaBox content not getting saved

I have added the custom meta box to my custom post types, but it is not saving content on publish or update button click. /* * Custom book metabox */ // Add metabox function ...
0
votes
1answer
11 views

Get meta value when the page is a blog archive

I'm using custom metaboxes on my pages. For example: header icon. I created a page for the news on my site. I selected it as a blog archive page under Settings->Reading page. Unfortunately I can't ...
1
vote
1answer
9 views

Custom Taxonomy to dropdown box on adminside wordpress

Can I create a country- location hierarchy using custom taxonomy on admin side. When selecting a country from select box , an another box should see the list of location comes under that country. And ...
-2
votes
0answers
38 views

I have a problem in check box that could not checked in previous value for post editor panel [closed]

how to give checkbox will checked in previous condition? I need a perfect code pls.
0
votes
0answers
9 views

Post meta ( select slider number )

So i have build a custom post where i show the 10 most recent post's in a slider (slick.js). I would like to setup a field inside the custom post where I can select a number from 1-10 to be used in ...
0
votes
0answers
25 views

How to create a “menu item” on the theme customize screen?

My question is, how do I create a menu item as seen below but on the theme's menu customize page? "Theme Menu Options" Show's up here, But it does not show up here, Here is the code I used to ...
0
votes
1answer
23 views

metabox select - frontend display

Hi I bought a theme but I need to add some fields to a frontend submission form. I added the metaboxes and they are working but the problem is the select type of metaboxes. I cloned a select form ...
0
votes
0answers
18 views

Priority conflict with custom metaboxes and built-in discussion metabox

I have a strange issue. I'm creating my custom metaboxes which have around 100 fields. I'm trying like this: function page_options_metaboxes() { $screens = array('post', 'page'); foreach( ...
0
votes
0answers
21 views

How to add file upload with wordpress metabox in proper way

I am new with adding custom metaboxes.I tried to add metabox with text but with file upload couldnt'hre is my code for text metabox function cd_meta_box_music() { global $wpdb; $musicLink = ...
0
votes
1answer
35 views

Set height of the categories meta box in post dashboard

How can I set height of the categories checkbox meta box? The one thats shows when we want to post a new article. I have found this ...
0
votes
1answer
12 views

Custom metabox does not store data

I'm troubled with a custom metabox, could someone give me a helping hand? I've got a custom post type which uses it, but unfortunately it's not storing the data into the database. Any clue? ...
0
votes
1answer
12 views

Meta boxes not saving

I have a custom post with two custom meta boxes that I add using this tutorial:http://wptheming.com/2010/08/custom-metabox-for-post-type/ When I update the post, it disappears. My code: function ...
0
votes
2answers
40 views

wp_editor for custom post type doesn't save value

I have done this so many times but facing problems with meta boxes and wp_editor these days, lot of notices, errors and strange behaviour. I have been able to solve problem with meta boxes notices ...
0
votes
0answers
12 views

Remove metabox container and header

Is it possible to remove the whole header of my metabox (title+toggle icon) and the container (.postbox) ? I wonder I can use css to remove them, but is it the best solution?
0
votes
0answers
26 views

Can't save meta field value if the title not set

I'm using the example from WordPress Codex (https://codex.wordpress.org/Function_Reference/add_meta_box#Procedural) to add and save meta box values. Unfortunately I can't save the value of the meta ...
0
votes
0answers
33 views

Get custom meta box in custom post type using tag ID

I have a custom post type called Contacts, and in each of those post I have a custom meta box called number where a phone number is stored in each of the Contacts posts. I also have a custom taxonomy ...
0
votes
1answer
40 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
22 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
17 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 ...
0
votes
1answer
36 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
49 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
24 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
32 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
36 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
84 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
29 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
30 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 ...
0
votes
1answer
17 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
65 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
53 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
36 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
38 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
23 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
34 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
86 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
193 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
40 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
78 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
38 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
20 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
51 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
29 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
52 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
118 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
71 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
75 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
55 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 ...