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

learn more… | top users | synonyms (2)

0
votes
0answers
45 views

Support Multiple featured images

I've created a WordPress theme where in one of my pages I need to use two feature images, I know already how to add support for the featured image and I'm using it. My need is how to add a second ...
0
votes
2answers
66 views

add_post_meta Adds post meta but the value is blank

My plugin uses a metabox to save post meta. I have three option in the metabox. Everything is saving/updating/deleting correctly except for this: add_post_meta( $post_id, $meta_key_duration, ...
0
votes
1answer
621 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 ...
0
votes
0answers
71 views

URL field in metabox with page links select

I am building my first metabox and I need to add special field when user can write your own link (URL) to outside page (with http://) or select existing page/post. If user selected that he want to add ...
0
votes
1answer
67 views

Hide custom metabox value from custom fields

Before I ask the question, I tried to added _ to the custom field, but it's not working, at least with my code. I just want to hide the value of my meta box from appearing in the custom fields. When ...
0
votes
1answer
53 views

Adding a meta box to determine the sidebar [closed]

I was trying to customize my WordPress, and I have added some custom meta boxes (it adds custom field) to add values in it, but I don't know how to do this one... I want to a Meta Box, which will be ...
-1
votes
2answers
172 views

Calling Data from Custom Meta Box

I have created a custom meta box which I have pasted in functions.php (minus the <?php call of course) I have two fields in this meta box, one is labeled 'Primary Title' and the other is labeled ...
0
votes
0answers
30 views

Serialization problem after auto-update

I am having a problem with WP serialization. To cut a long story short: the problem appeared two months after the site launch. All the strings of text that were stored as a theme_option or as a meta ...
0
votes
1answer
2k views

Add metabox with media uploader in a custom post type [duplicate]

I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
0
votes
1answer
78 views

Selecting a dynamic sidebar via metabox in wordpress

I am developing a wordpress theme where are 3 sideboxes. I want to select a sidebox through metabox in my admin page so that particular sidebar shows up in front-end. My codes are:- In function ...
1
vote
0answers
45 views

Retrieving Meta from Image Attachment

I currently have added a meta box to the media library popup using the following: // ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY function AddLibraryFields( $form_fields, $post ) { ...
0
votes
0answers
65 views

New WP_Query loop in admin causes problems

I am working on a project where I have a custom post type 'companies' and on this edit page in the Wordpress admin I have some custom made meta boxes, for saving company information, opening hours, ...
0
votes
0answers
40 views

Add custom metabox in posts

I tried to add a custom meta box following some tutorials like this one but I don't why it doesn't saves any value in the box. There is my code: ...
0
votes
0answers
12 views

Hook on Add new category from post editor [duplicate]

How can I "hook" on Add new category metabox from post editor page? I need to add some default values to DB when adding new category
2
votes
1answer
208 views

WP_List_Table inside metabox not working on submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called 'service' which is registered to a custom post type called 'office'. The table columns contain input ...
0
votes
2answers
322 views

Plugin “Meta Box”: Implementing meta boxes in custom post type

I am a WP beginner and see the potential of the "Meta Box" plugin (http://wordpress.org/plugins/meta-box/). I have already activated the plugin. So far I managed to upload the demo.php and to display ...
0
votes
0answers
26 views

Wordpress - How to make cloning: description and picture

I use the plugin Meta Box Please, help me. I can not make cloning text with a picture when pressing the plus. Here is my code, only the text is cloned: $prefix = 'stepping_'; global $meta_boxes; ...
0
votes
0answers
54 views

Humanmade CMB | How to use checkboxes and radio buttons

I would like some help or advise for using checkbox and radio fields in HM CMB class. Where I am so far I've been using the class to add all types of fields to my projects, with repeatable groups ...
0
votes
1answer
173 views

Metabox Populated with a Custom Post Type - How to Output CPT based on Select?

I have a dropdown metabox populated with a custom post type, now in my template, I can get the value of the metabox output but what I really need is all the information stored from that selected CPT ...
0
votes
1answer
47 views

Display metabox conditionally

I have searched left, right and center and believe that this does not exist as a built in option in WordPress; is there any way to, problematically, display (or not) a metabox in a custom post type ...
1
vote
1answer
44 views

Remove a plugin meta box from the dashboard

I'm trying to remove the meta box that the Download Manager plugin creates, as it uses a hardcoded http iframe, caused a mixed content error in ssl. Here is the code that generates the meta box: ...
0
votes
1answer
20 views

show title if one of post meta exist

I have 4 metabox facebook, twitter, instagram, youtube with title "Follow Us". I am using this code to show facebook logo and link. So if there are a value in facebook metabox I got the logo and the ...
0
votes
0answers
62 views

display specific term based on custom post type in custom taxonomy metabox

I am using a custom taxonomy 'Categories' for more than one custom post types. While adding/editing a post in one of the custom post type, I want to show only specific TERMS under custom taxonomy ...
0
votes
0answers
46 views

How to make duplicatable custom metabox fields for image slider in wp?

I want make duplicatable custom metabox fields for an image slider. For example: Image title field image upload filed add button for add another image. Remove button for remove this individual image ...
0
votes
1answer
112 views

Query a Custom Post Type to another CPT via Metabox

I apologize in advance, I searched for an answer before posting this question but didn't see it, I saw some variations but couldn't quite figure it out. I have 2 custom post types: Buildings and ...
0
votes
0answers
248 views

Humanmade | Custom meta box class: How to display a repeatable meta box group?

I'm using the Humanmade | Custom meta box class to add meta boxes to my themes admin pages. I have integrated the class and have been enjoying the use of adding meta box's to my current projects ...
0
votes
1answer
202 views

Custom post type Featured Image popup not working

I added a custom post type with thumbnail support. When I navigate to the custom post type in the admin backend and add a new one, I can add a featured image. The problem is, when I click the link ...
0
votes
0answers
87 views

How to output data from meta box with cloned fields?

Just to let you know, i am at a beginner level with PHP, so please bear with me : ) Also, I looked at this post and I did not find it helpful in my case, so I am making a stab at it here. (Meta Box ...
0
votes
0answers
86 views

add_post_meta to repeatable metabox from frontend

I'm creating new post from wordpress frontnend. I have managed to create post using wp_insert_post & added single metabox values using add_post_meta successfully. but I'm unable to set values of ...
0
votes
1answer
324 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() { ...
1
vote
1answer
146 views

get_post_meta doesn't work

I created a custom meta box inside a page but I can't display the content! I'm inside the loop and here there is the code of my functions.php: $meta_box['portfolio'] = array( 'id' => ...
0
votes
0answers
44 views

Use Custom Field As Meta Box In Post

I recently asked on this forum how to create a beta box using custom field, which was answered but with a not so right answer, but it helped me. For example, there's a custom field that I use called ...
1
vote
0answers
1k views

Custom Meta Box - Multiple Checkbox for Users [closed]

My question is in regard to this article: http://wp.smashingmagazine.com/2012/01/27/limiting-visibility-posts-username/comment-page-1/#comment-154111 This article: creates a custom metabox the ...
0
votes
2answers
224 views

Remove a metabox registered by another plugin - Woocommerce

I am trying to remove the gallery metabox which is added by WooCommerce - its been added in an update, but I already have a Gallery metabox, and I don't want to confuse the client. Obviously I can ...
-1
votes
1answer
81 views

Create A Metabox For A Custom Field

I add videos to my WordPress posts' video format by using custom fields. I was wondering if there is any way to create a meta box in post editor (like excerpt or something) for that specific custom ...
0
votes
0answers
44 views

Slider Issues using MetaBox Plugin

I'm just now joining a previously launched project. The home page slider is a custom meta_box type from the MetaBox plugin. Here is the code to add the fields. $meta_boxes[] = array( 'id' => ...
0
votes
0answers
78 views

Image MetaBox not saving in custom posts

I'm trying to create a meta box that will let me upload image in a custom post. Everything is working almost fine but... It doesn't save any data -.-' I can't figure what I'm doing wrong. Could you ...
0
votes
0answers
107 views

Wordpress custom metabox radio values using CMB

thanks for reading. Im using https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress to create custom metaboxes. I have created a radio metabox that looks like below. ...
0
votes
1answer
50 views

Add additional metafields based on value of select box

I am faced with a particular issues dealing with metabox fields. I've added a select dropdown list to Pages post type and what I can not figure out is how to add additional metafields based on the ...
0
votes
0answers
25 views

How can filter terms by custom meta data

I have terms and i get data like :- $cat = get_terms( "progamdvideo_c", $args ) ; foreach ($cat as $term) { echo $term->slug; } Now i have metadata for this term ...
0
votes
1answer
95 views

Metabox Data not saving

My Metabox data doesn't appear once I've saved the page, I tried vardump() on both getextra_mbe_date and getextra_mbe_time which returned null my code is <?php /* Plugin Name: Events CPT Plugin ...
0
votes
1answer
229 views

Show Meta Box On Specific Page Template

Is there a way to show custom page settings on specific page templates ONLY? For instance I have a settings field: "Custom Settings". I don't want this to show on the "Default Page Template". I only ...
0
votes
0answers
47 views

How to validate datepickers before publish

I have two datepickers in my post: 1. start_date and 2.end_date Basically, I need to check if end_date is greater than start_date before I can proceed to publish. From a previous solution here, I ...
0
votes
1answer
57 views

Meta box with front-end styling

I have a specific Gallery post of products that I release at the start of every Monday on my website, which differs from my other Gallery posts. These types of Gallery post don't require the Authors ...
0
votes
0answers
42 views

Extending select_post type in Custom Meta Boxes for WordPress (HumanMade fork) to store both ID and Post Title

I'm trying to figure out how exactly to extend one of the existing fields in CMB (HumanMade fork). I'm not terribly familiar with this process, so I'm looking for a suggestion of where to begin. The ...
0
votes
1answer
80 views

Custom Meta Boxes and Fields Multicheck Issue

I'm using Custom Meta Boxes and Fields by Justin Sternberg and its pretty great, however there's been a huge issue with using the multicheck checkbox options for me. This is what the plugin's code ...
0
votes
1answer
71 views

Add custom action in post type

I use the http://www.deluxeblogtips.com/meta-box Metabox plugin and I want to add a custom action in a post type like the publish button ? when admin click on this button I want to send an email to ...
0
votes
0answers
71 views

Custom plugin breaks css.php on Multisite

I got a strange problem on a Multisite Install I run. Everything works perfectly fine (Domain Mapping, Caching, whatever functions and Plugins I use, both forced and chooseable). To enhance the ...
0
votes
3answers
132 views

How to Echo Metadata Value in Currency Format

I have a Custom Post Type with a Metabox and an input Text field for adding "Price" to the posts. Now I would like to display the input value which can be like 49 or 59 like 49.00 or 59.00 so far I ...
0
votes
2answers
155 views

Sanitaizing Select Optin For Custom Post Type Metabox in WP

Using WordPress 3.8.1, I have a Custom post Type called "Map" and it contains a Metadata which is a Select options element as: <label for="my_meta_box_select">Countries</label> <select ...