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

learn more… | top users | synonyms (2)

0
votes
1answer
64 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
1answer
323 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
210 views

CMB2 metabox conditional logic

I am using CMB2 for metabox on custom posts. I am adding a metabox by using code below: $cmb_demo->add_field( array( 'name' => __( 'Test Text', 'cmb2' ), 'desc' => __( ...
2
votes
1answer
1k views

Metabox repeating fields - radio buttons not saving correctly

I have multiple radio buttons set up inside of a metabox in a custom post type. I have created the metabox like so: add_action('admin_init', 'add_meta_boxes', 1); function add_meta_boxes() { ...
0
votes
0answers
18 views

How can I create a dual drop down metabox?

I'd like the first dropdown to be for the terms of a taxonomy and the second to be for the posts associated with those terms. So far I have got: /* Hook meta box to just the 'place' post type. */ ...
1
vote
3answers
1k views

Setting multiple image urls using Wordpress' Media Uploader

I have set up a meta box to hold additional information that my client can put in, and it will appear in a different section of the page. The page shows up at ...
0
votes
0answers
27 views

Filter on page with meta box post values

it's possible create an filter using the values of the meta box posts? Example: Name of message: Message one Year of the message: 2016
1
vote
1answer
3k views

How to add a select menu to this metabox code?

I'm using a metabox script that works great for having absolute control over the design and placement of the metabox fields. There is one problem: I can't remember where I found the script and need to ...
2
votes
3answers
196 views

datetime_timestamp shows numbers only? need in date and time

I am using CMB2 and following code to select date & time: $cmb->add_field( array( 'name' => __( 'Test Date/Time Picker Combo (UNIX timestamp)', 'cmb2' ), 'desc' => __( ...
0
votes
0answers
24 views

How to Display Audio File List Using Custom Post Type

Using this plugin, I've created a meta box for my custom post type to display a list of audio files for download, but the combined code does not output anything. single-promo.php ...
0
votes
0answers
18 views

modify my custom meta_value after change post status from future to publish

I write a custom metabox form my wordpress. This is a check-box to flag some posts and this is work perfectly. To day I've try to schedule my first post and I've flagged this. Well, after publications ...
0
votes
2answers
26 views

If metabox fields has content display content

I am try to hide the metabox fields with empty value like $Product_Brennwert = get_post_meta(get_the_ID(), 'Product_Brennwert', true); if ( ! empty ( $Product_Brennwert ) ) { echo 'Brennwert '. ...
1
vote
1answer
36 views

How to remove/hide the predictive autocomplete popup when I type in the tag/term metabox

When I start to type in a few letters in the tag or term metabox (in the post edit page) there is a predictive autocomplete popup thingy containing other tags/terms to choose from. How do I ...
0
votes
1answer
34 views

Is this Edit Post Screen?

I need to add fields to a metabox based on whether the user is on the Admin Add/Edit Post screen rather than the Admin Add/Edit Page screen? I've tried using get_current_screen() but due to the ...
0
votes
0answers
17 views

How to avoid duplicate post entry admin page

I am building a cinema website with different custom post types. How do I avoid duplicate post entries? For example, I have a post type: Trailer First I add a trailer Terminator. After if I add ...
8
votes
1answer
3k views

How To Remove The “+ Add New Category” Link From A Category Metabox

Inside of a Wordpress category metabox or any custom taxonomy box for that matter there is a link with the text "+ Add New Category" is there a way this link can be removed preferably without ...
0
votes
1answer
79 views

Can custom fields be added without a meta box?

I'm building a custom post type entry screen (in code). I would like to have my fields display without a meta box surrounding them, so that they look more like the user profile page. Is that ...
4
votes
3answers
6k views

Using TinyMce with textareas in meta boxes on custom post types

I am trying to use the http://www.tinymce.com/ plugin to add a tinymce to my textareas in my meta boxes I have created. I've googled other ways and either I cant get it to work or didnt grasp the ...
0
votes
0answers
17 views

Attachment checkbox metabox will not update with update_post_meta

I've followed this tutorial for adding metaboxes to the attachment post type. The problem is that the metabox checkbox value is not updating to 'off' when it is unchecked and goes through the ...
0
votes
1answer
29 views

Resposive admin classes?

Does WordPress have default classes that makes possible to use several (resposive) columns in admin area / meta boxes? Take a look at the example below: I need inputs to be in separate columns. Yes, ...
0
votes
0answers
34 views

Meta Box Plugin - Adding field value inside echo

I am using Meta Box Plugin to add some custom options to my Page Edit. I added a field to add an image background to the header which is working great. This image background has a parallax background ...
0
votes
1answer
31 views

wp_dropdown_pages doesn't allow me to select more than one custom post type

I am creating a "wine database",k to call it somehow.... Basically there is a custom post type called "wines", and then it has attributes as vintage, grape color..... and also, "region" and ...
0
votes
0answers
32 views

custom meta boxes to dispay for specific categories

I'm new to WordPress and I am learning everyday. Being a newbie I am not being able to handle / solve a problem. I am currently working on a lighting website that will sell light bulbs, ballast and ...
0
votes
0answers
9 views

Redesigning the add new post form

This is a learning exercise. I'm trying to redesign the form that is rendered when a user tries to add a new post via the administration panel. So far i've tried messing around in ...
0
votes
1answer
1k views

Dynamic page.php template for custom post types

I have a couple of custom post types registered. I would like to display all "posts" from each custom post type on its own page, and these pages must be visible in the nav menu. It would be great to ...
1
vote
0answers
22 views

Render P2P metabox per taxonomy term

I would like to display a Posts to Posts connection registration metabox for each term in a custom taxonomy. The post connection candidates will be split across the metaboxes depending on their term. ...
1
vote
1answer
28 views

Best Way to Remove WordPress Meta Box based on Post Status

I recently wrote a WordPress plugin called Organize Drafts, which creates a custom taxonomy called Draft Types (using the slug lswdrafttype). This taxonomy is used to organize drafts of pages and ...
0
votes
0answers
45 views

WordPress Meta Box + WooCommerce - Display for specific product type right away?

So I've created a custom product type 'MY_PRODUCT_TYPE' and a meta box and that displays for this product type: function MY_PRODUCT_TYPE_meta_box($post_type) { $post_types = array('product'); ...
1
vote
0answers
26 views

Show Custom Post Type meta boxes only on Page Edit

I've went through the laborious process of creating the CPT. I see it on the sidebar of my WP install, I can add new, save data, and on frontend I can output the data. Is it possible with WP to move ...
0
votes
2answers
2k views

Remove Custom Taxonomy Metabox from Custom Post Type Screen

I have two hierarchical custom taxonomies, each on a corresponding custom post type. I would like to remove the metabox for each on the post type's edit screen. I have read remove custom taxonomy ...
2
votes
2answers
6k views

Populating meta box with select-list of existing posts, and assigning it to custom post types

My question is partly based on this answer: http://wordpress.stackexchange.com/a/5778/27135 Mike's answer is really great, and the solution worked fine until I needed to include my meta box in a ...
0
votes
0answers
32 views

How to save custom meta only for review data to see only in “Preview Changes”, not the actual post in the front end

I am trying to add custom meta and see at "Preview Changes". I can see the changes but also changes apply to the actual post at Front end. I want the changes will update to the actual post when it ...
0
votes
0answers
18 views

How do I hide a meta box properly?

I want to hide the main meta box where you put the text in for the page, if a condition is met, but then if a button is clicked, I want to show it. I used jQuery to do this but the style gets messed ...
0
votes
0answers
34 views

Wrap html tag around elements if condition is met

I have a metabox displaying a radio button. When this radio button is checked I want to add a wrapper around some code. A simplified bit of code to illustrate what I have at the moment: <div ...
0
votes
1answer
438 views

Insert media button will always add into the same tinyMCE editor

I have an issue with the insert-media button. I have 2 instances of tinyMCE with both Add Media button. When I add a media in one of the two tinyMCE, all my media will go in this after, whatever which ...
0
votes
0answers
19 views

how to display meta box data on page?

i have this function in my function.php and i am trying to display the meta box data on my page. Can not do so. function designation_meta_box($post){ wp_nonce_field( ...
1
vote
1answer
48 views

Push metadata in array

Applying meta keys in search result Since I need to take on a different approach to get my data in javascript from wordpress, I am trying to apply (as follow up on my post earlier today ...
0
votes
2answers
4k views

How do I create a meta box for dates?

I am creating a custom events page and I want to know how to create a custom meta box to save event dates. I don't want it to be a regular meta box because I will be using this to make a custom search ...
0
votes
0answers
19 views

Search Post Types and the Meta Boxes

I have meta box called (orginalday), This i will save the post day when the user write post and save it in (pending), And i have form that have 2 input type to search post from day to day. So i need ...
1
vote
0answers
77 views

Visual/Text tabs in wp editor Not Showing

I have a wordpress website that i have added custom meta boxes to the post. Custom meta boxes have an editor using wp_editor(), but the editor is refusing to show the visual/text tabs on the editor ...
1
vote
1answer
46 views

Cannot save CPT meta box

I swear I have tried every tutorial, and looked through every Stack Overflow thread to figure out what I'm doing wrong... I'm creating a custom wordpress backend for a church that includes a place for ...
1
vote
0answers
42 views

Admin Dashboard with Custom Tab for Client

I am trying to create a basic Tour Date widget. When the user clicks on the Tour Date Tab from the admin dashboard I want them to be presented with five fields. Date Venue City, State or Country ...
0
votes
1answer
389 views

Parent Page and Breadcrumb URL's for Custom Post Types Not Working

What I Have Set Up I have three custom post types, they are named "brands", "careers", and "news". I have three page templates, they are named "page-brands", "page-careers", and "page-news". The ...
1
vote
2answers
4k views

Repeatable custom meta fields

I am working on creating custom meta boxes for the back-end of WordPress. I would like to add a metabox with several fields, in my case an image upload and a text input, but with a button that can ...
1
vote
1answer
68 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
1
vote
2answers
25 views

Metabox will not save

I'm trying to create a metabox in a custom post type. When I attempt to insert information into the Listing Price box and update the post, the information is not saved and disappears once the page ...
0
votes
1answer
33 views

Change Post Title Edit Box

When editing a post, the title field displays the placeholder "Enter title here" (it's actually a label element that's made to look like a placeholder attribute, but whatever). I have a custom post ...
0
votes
0answers
17 views

Button inside a custom meta box which deletes post meta

I have a custom meta box which allows a file upload. I want to add a button for my users to be able to remove the file (or at least clear the meta data for it). To delete the post meta, I know I can ...
0
votes
2answers
201 views

WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]

I'm currently working with WPAlchemy class to create a metabox in a custom post type (Events from EventEspresso plugin more precisely). This metabox should be able to call the media uploader and ...
0
votes
1answer
54 views

Update caption for metabox gallery images

Just wondering how to make the caption on my metabox gallery images updatable. I have the caption on a textarea so it can be easily updated. I can change the contents of this textarea, cant seem to be ...