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

learn more… | top users | synonyms (2)

0
votes
1answer
6 views

Default taxonomy 'post_tag' added to CPT managing by custom role : nothing in the metabox

I've created a Custom post type, which a custom role can manage : it has only the capabilities for managing this CPT. When registering the CPT, I've set the argument : 'taxonomies' => array( ...
0
votes
0answers
11 views

How do I make multiple image uploads with WordPress metabox?

HelloI created an Image upload with WordPress Meta-box, but it works only with "JPG" extension By this code function add_custom_meta_boxes() { // Define the custom attachment for posts ...
0
votes
1answer
13 views

How can i get multi checkboxes value in metbox?

I make list of check boxes by WordPress meta-box and i can not get this value in my theme. i can get my text value with this code <? echo get_post_meta($post->ID, $prefix . 'text', true); ...
0
votes
0answers
10 views

Reusable Custom WordPress Meta Boxes tax_select field into repeatable fields

i'm using this https://github.com/tammyhart/Reusable-Custom-WordPress-Meta-Boxes and when i try to insert taxonomy select into some repeatable field i have some trouble and no options are displayed. ...
0
votes
0answers
8 views

Options.php metabox options submit hook

Good day ! Please advice what hook to use, when user click submit button at options.php page in metabox with settings_fields ? Thanks ! //Vladimir
0
votes
0answers
8 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
0
votes
1answer
23 views

Metaboxes - why they don't render php in expected manner?

I was playing with metaboxes following one tutorial. I came to a point where I could add any code and it would be displayed in the metabox. I tried echoing something and it was ok. Then I wanted to ...
0
votes
0answers
26 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
0answers
34 views

custom field meta-box with dropdown/autocomplete

Is it possible to have a custom metabox with the ability to either: enter a new meta_value in a certain meta_key OR choose from a list of the existing meta_keys, from a dropdown/select-box, ...
0
votes
0answers
24 views

Display a post based on its metabox selection

I created a client portal where a client can view their projects. I have two user accounts "Clients" and "Administrator. Both clients and administrator are redirected to the frontend of the site to a ...
0
votes
0answers
19 views

Ridiculous problem with CDATA [duplicate]

I'm using this great metabox plugin: https://github.com/WebDevStudios/CMB2 I created a repeatable field (with only one textarea that you can duplicate) It's working great. Now, I want to export some ...
0
votes
1answer
34 views

How do I add an item to the WP admin menu?

I want to add an item to my WordPress admin menu - "News" - it's to contain a list of articles written about my company. Each article will consist of the following metadata: Headline Date Link to ...
0
votes
0answers
14 views

I'm able to export a post type with all items + metadata, but not seeing it when importing

I'm trying to export some of the post types that I have on my wordpress website. These post types have metaboxes with data. I am able to export the post types with that data succesfully. The problem ...
0
votes
0answers
10 views

Metabox creating another meta group / slide each time page is saved / updated

Ive got a metabox as part of a theme that allows you to add multiple pieces of content to a page, by default there is one content space / slide, but at the bottom of the metabox there is an option to ...
0
votes
1answer
10 views

Issue with file paths after porting metabox from main theme to child theme

Ive got a custom metabox written for another site that im porting over, originally this was written directly onto the theme (rather than using a child theme). The metabox itself was developed using ...
0
votes
0answers
21 views

save_post is not firing when I only edit custom meta fields

I've come across the action hook save_post few days back and I like to take advantage of it. I've custom post post type "Property" with Meta fields associated with it. The problem is that when I ...
0
votes
2answers
26 views

Custom meta box in custom post type not working

As a wordpress newbie I am having problems in adding custom meta box in my "slider" custom post type which I used in some old wp theme. I'm getting a warning: Warning: call_user_func() expects ...
1
vote
1answer
32 views

Are there any standard HTML markup for metabox?

The add_meta_box HTML callback is rather low level that we need to code the HTML by ourself, e.g. echo the HTML form markup function myplugin_meta_box_callback( $post ) { // Add an nonce field ...
0
votes
1answer
44 views

Set Default Option Value as Blank for Meta Box

My custom Meta Box has a drop down field, but how do I set the default Option Value to be blank? It is currently populating via the CPT's meta_value, but I'd like that to change. Here's a screenshot ...
0
votes
0answers
32 views

register_post_type, add_meta_box, add_rewrite_rule

I'm working on custom post type with some custom fields setup using add_meta_box. register_post_type("sample"); add_meta_box("sample_type"); add_meta_box("sample_brand"); I want to get it working ...
0
votes
0answers
57 views

How do I get attachment_id?

This is trivial, but I can't really find an answer, I've seen some hints like search in database etc., but this is madness. Basically, I have a metabox with upload button that allows you to upload or ...
0
votes
1answer
19 views

Date format - Meta Box plugin

I am getting a date using the plugin Meta Box. The output is: "2014-10-30" and i'd like: "30/oct/2014" There is a way to change the default format? This is the register of the metabox: $prefix = ...
0
votes
1answer
39 views

Call the latest posts from a custom field group to be displayed on front-page

i have this custom Metabox field group from https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress/wiki/Field-Types#group containing 3 fields and displayed on the Products page ...
0
votes
1answer
18 views

Error in get post by met_key

I have this code, $type = get_the_ID(); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $units3 = new wp_query( array( 'post_type' => 'units' , ...
0
votes
0answers
25 views

Add different meta box based on taxonomy

i created a plugin with a custom post type. I added a new custom taxonomy also under that post type . How can i add the meta boxes based on different taxonomy. if( is_object_in_term('', 'name of ...
0
votes
1answer
14 views

Show button if meta box has content, else hide

I have a meta box setup that allows the article creator to post a link to the forum topic of the same article subject. I display this meta data with the following: <div class="discuss"> ...
0
votes
1answer
22 views

Moving meta boxes in admin

I have added tags to my custom post type and by default the tag meta box appears under the 'publish' meta box on the right. I can manually drag the meta box to reposition it under the rest of my meta ...
0
votes
0answers
24 views

WordPress Custom File upload meta box saving 0 bytes as File size

I am trying to save custom images with the custom post type , so i added a custom meta box for file upload . it seems it is working fine but when i upload any file it save the file size is 0 Bytes . I ...
0
votes
1answer
30 views

Multiple wp_editor instances in custom post type using Ajax

In a custom metabox, I need to generate a tinny wysiwyg wp_editor everytime we click on a button.. I struggled a lot with this and couldn't achieve it. The js $.ajax({ url: ajaxurl, data: ...
2
votes
2answers
83 views

Consolidate Metaboxes into 1 Big Metabox

I have a post type with 7 (count it SEVEN!) taxonomy tag boxes. By default, the only options to display these metaboxes are - 7 small metaboxes on the right side stacking or turn these tag metaboxes ...
-1
votes
0answers
21 views

Order custom post type by custom date ASC [duplicate]

I have custom post type called course and i need to order all post in this custom post type by meta box called course_date, And my code like:- $args = array( 'post_type' => 'course', ...
0
votes
0answers
24 views

WP_Meta_Query object with conditionals

I have a custom post type (Books) that is connected with a second custom post type (People). The Books CPT has an additional author meta box that if checked, it should appear on the additional People ...
0
votes
0answers
30 views

Get a “featured” taxonomy term using a custom field checkbox

I'm using Advanced Custom Fields to add a true/false checkbox to the taxonomy management screen. I want to show (a) the most recent term in the taxonomy that (b) has the checkbox selected to true. I ...
0
votes
0answers
13 views

selected into metabox doesn't show up

I have been using the very known metabox switch code but something weird happens. In the metabox, only checked boxes have been saving. The selected field doesn't show up the selected option ...
0
votes
0answers
25 views

Custom Post Type Meta Box Content Showing In Search Results

When I search my site it doesn't seem to pick up the content I have in my custom post type meta boxes. This is the code for some of the meta boxes in my function.php file. // Add the Course Meta ...
0
votes
0answers
48 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...
0
votes
0answers
29 views

MetaBox with Editor instead of textarea - html not saved

I am calling several custom MetaBoxes in my custom post type on Wordpress 4 like this without using a plugin: array( 'label' => __('MyContent', myPlugin), 'id' ...
0
votes
2answers
20 views

When creating a metabox do you have to create DB fields for the data?

I'm just getting to grips with metaboxes for the first time and after reading up on them one of the main question i have is do you need to specify fields in the DB to store the data got input. i.e. if ...
0
votes
1answer
33 views

Output richtext metabox value

I have rich text metabox.When I echo the out put it shows html tags.If I write <h1>Hi</h1> in editor metabox it ouput the same.My works so far <?php $valueeee2= ...
0
votes
2answers
26 views

Meta Box will not display

Im trying to get my Meta Box to display at the bottom of my post Excerpt on the blog index. Ive been working on the site for the last 10 hours so i think im being blind or have done it wrong , would ...
0
votes
0answers
65 views

Wordpress Media Upload Plugin 3.5 JS PHP

I have a small issue creating a small plugin. I am trying to achieve a gallery meta box using Media Upload 3.5. At this point I am able to upload images, but when trying to update the image. I wont ...
0
votes
1answer
140 views

Wordpress 4 and wp_editor() Not Showing Visual/Text tabs

I use wordpress a lot, i develop for it a lot too! I have a client website that i have added 10 custom meta boxes to the post edit screen in functions.php . All the meta boxes have an editor using ...
0
votes
0answers
18 views

Select value don't stay selected after save

I did a multiple select item that takes his options from another CPT, it works but after the saving the selected items don't stay selected. this is my code for the meta box global $post; echo ...
0
votes
1answer
42 views

Howto: use existing post_meta as options for a different metabox (checkboxes or list)

I want to create an "Employee" Custom Post Type ("Add New Employee") wherein the employee may belong to one or many offices. The user needs to be able to add/edit/delete offices via a separate ...
-1
votes
1answer
73 views

How to add metabox ONLY to specific WooCommerce product type [closed]

A little extra info: I have created a custom product type within WooCommerce. The add_meta_box function only accepts a 'post_type' argument. This means that I can get it on all products no problem, ...
0
votes
1answer
60 views

Enable a short code in the custom meta field

I was wondering if there is a filter that allows me to enable short codes to work inside the custom meta fields in my posts. I know the following code enables it in widgets: ...
0
votes
0answers
16 views

display meta value depending on post selection

I have created form for event.In which I have added selectbox for events I have created meta value for price in post Now I want to display meta value depending on post selection from selectbox how to ...
0
votes
1answer
20 views

Custom sortable pages on custom post type

I created a custom post type but I want to put a functionality like the Menu Options located on Appearance>Menu. Which I can just choose a page on the side metabox then add it on the sortable area. ...
-1
votes
1answer
67 views

Adding JS functionality to the Publish button in wp-admin/post.php

I've created a plugin with a new metabox in my post.php. It's working fine on it's own, but the problem is getting it to save it's values if the users choose to press the "Publish/Update/Save" in ...
0
votes
0answers
10 views

Let the user duplicate chunk of meta boxes

I have a CPT 'Product', that can be rented or sold multiple times over. Each time a transaction takes place, the admin would like to update some of the information (such as sale date, condition etc). ...