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

learn more… | top users | synonyms (2)

11
votes
6answers
7k views

Add a Meta Box for uploading a SECOND Featured Image?

I'd like to add a meta box to my posts and page editor that will allow me to upload an image and use it as sort of a SECOND featured image. The idea is that my client will be able to upload an image ...
-1
votes
1answer
77 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
35 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' => ...
4
votes
1answer
2k views

Custom Meta Boxes: multiple fields within a repeatable field

I am working on a meta box for events. Each event has it's own page with a meta box for the line-up, background image, tickets page URL and some text. To create the line-up I would like to use the ...
0
votes
0answers
70 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
94 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
47 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
24 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
87 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
0answers
95 views

How can I display a metabox on front end for registered users

I'm using a plugin called Frontier Post to allow users to post on front end. When I try to create a post on the front end using this plugin, it does not display a custom meta box that comes with my ...
0
votes
1answer
190 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 ...
1
vote
1answer
956 views

Add Standard Page Attributes Metabox for Page Parent

I have a custom post type 'product' supplied to me by a Wordpress eCommerce plugin that does not offer the option to change the Page Parent in the Page Attributes Metabox. I'd like to remedy that. I ...
1
vote
2answers
330 views

Include custom fields into the content of a regular page

Here's my setup: Parent "Gallery" page: _regular page, not custom type or anything _ Several "Project" child pages (could be as few as 1, unlimited number): also normal pages Child pages will ...
0
votes
1answer
46 views

quicktags “link” button doesn't work, but all other buttons do

I've added quicktags to a plain ol' textarea field which sits inside a metabox on a custom post type page. I can see the link button on the toolbar, along with the rest of the buttons, but when ...
0
votes
0answers
43 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
53 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
38 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
74 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
41 views

Custom-Metaboxes-and-Fields text_url field prepending http://

I'm using the Custom Metaboxes and Fields code wich is pretty good. However I need sanitization on URL fields of course but the built in text_url field type is adding 'http://' to my entries. I know ...
0
votes
3answers
1k views

Loading scripts & styles from a meta box callback function

Case: I got a set of classes that build form fields based on data from an input array. The class can build the following types of form fields: input (basic, hidden, password) textarea radio ...
3
votes
3answers
3k views

Has anyone successfully integrated qtranslate with custom metaboxes?

I followed this tutorial to create custom metaboxes. It seems like qtranslate enables you to use shortcodes almost everywhere. For example: Post titles: <!--:en-->Cheng Feng ...
0
votes
0answers
25 views

Hide sharing box and author box with a metabox on Wordpress

I have a little problem with my Metabox. I explain, I created in below each posts a sharing box and author box, I create a Metabox, it works, but I want hide the two blocks when I click the checkbox ...
0
votes
0answers
65 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 ...
3
votes
2answers
1k views

How to force one column layout on custom post type edit page?

I've created a plugin using custom post types and I need to force the default two column post page to a single column. At the same time, the Publish metabox must move to the bottom. I need to do this ...
0
votes
2answers
121 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 ...
0
votes
3answers
111 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
117 views

Issue on Working with Metabox - Checkbox to enable Sale Items

Using WP 3.8.1, I have a Custom Post Type which is called "Sport" and it has a Metdabox - medata data as I do not need to set up online shopping but I world like to add Price of my products to any ...
0
votes
1answer
84 views

If custom field doesn't exist, or exists and it's true show title?

Im trying to add new feature to the theme and that's show/hide page title,but since i already have about 50 posts i can't go to all of them and save again just to save custom field values. So i tried ...
0
votes
1answer
28 views

Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?

I'm in the process of creating a leveled tutorial structure in WordPress and want to build it so that it sets up the front-end with no code needed from the user. So far, I have a custom post type ...
0
votes
1answer
77 views

Add_meta_box not appearing, but does appear in screen options

I'm adding a meta box to a wordpress admin page. It works fine on my local server but when I upload it to the live server the meta box doesn't appear. Its does, however, appear in the screen options ...
0
votes
1answer
611 views

Custom select box meta field

For my custom post type i needed to add the Attribute Meta box, but i wanted to add an extra field to it. So here i have copied the Page Attribute meta box code and added my select options, but i ...
0
votes
5answers
2k views

Styling Custom Meta Boxes?

I've built a basic meta box and have this in my functions.php. The current code: add_action( 'admin_print_styles-post-new.php', 'portfolio_admin_style', 11 ); add_action( ...
1
vote
4answers
3k views

How to display non-hierarchical taxonomy as terms with checkboxes?

I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
0
votes
0answers
33 views

Some user's cant see custom taxonomy meta-box

I have strange problem with users who can not see metabox with custom taxonomies. When I delete user and create him again problem is solved, but this is not the best solution :) All my taxonomies are ...
0
votes
1answer
87 views

Post Excerpt field only showing for default administrator

I am using the following code to add excerpts to certain post types within Wordpress and for some rather odd reason, the excerpt fields only appear for the default administrator account, i.e. admin ...
4
votes
1answer
256 views

Adding another state (spam, reject, approve) to wordpress comments?

i know this might sound a bit weird, but what I'm trying to do is rather simple in mind but may be technically difficult. I'm running small contests on my wordpress site where I ask users to leave a ...
0
votes
0answers
73 views

wordpress multi image upload problem

I had a great tutorial at http://themefoundation.com/ .I followed it and it works for me .Now about image uploader,it works only for one metabox.Cann't it be for multiple meta boxes?the code ...
0
votes
0answers
65 views

Querying the DB to get sum of column from custom meta box (only published posts)

I am trying to get the SUM total of a custom meta box, from all published posts, from a custom post type. By using $wpdb I am able to get the sum from all of the posts (published and otherwise), but ...
3
votes
3answers
2k views

Only one category per post

How to make each post/page have one and only one category. Categories could have radio box instead of checkbox next to each.
1
vote
1answer
955 views

Image media upload metabox

I've created my first image upload metabox but seem to be having problems. The data doesn't get saved when I add an image then update the page - I'm sure this is a typo on my end which I'm failing ...
0
votes
1answer
188 views

How to set/change another post author by custom fields or something else?

I need help! (sorry for my poor English, I'm from Russia) How I can to set/change another post author by custom fields or something else? For example: I want to public post, but define another post ...
0
votes
0answers
44 views

Issue when showing metabox value on post type permalink?

I want to show the custom post type value on permalinks like yourdomain/metabox_value/post_title. By the below code I achieve the goal but after appling this code only this post type permalinks is ...
0
votes
0answers
62 views

Repeatable Meta Fields Not Saving

Need some help from the community as i am new to the plugin development of WordPress. I like to create a plugin for WordPress where i need a repeatable fields. But whenever i am saving the post the ...
1
vote
3answers
331 views

How can I add a column/s to wp_posts table?

I am trying to sync WP with another service that offers an API that allows me to hook up their table's Update, Create, Delete to my sites. So when they create, update, or delete a row on their ...
1
vote
3answers
261 views

Editing Screen: Make Update or Publish Button Follow The Page

The Problem: I am currently in the finishing stages of a premium theme I've been developing and all is mostly well. For pages I have a few custom meta boxes for adding in slideshows and other ...
1
vote
1answer
71 views

Custom Meta box only returns most recent value on page

I created a custom post type and a custom meta box where I create a new post and input a Youtube URL into the meta box, and I call for it on a custom template page inside an iframe that is inside in ...
1
vote
0answers
71 views

Custom Sortable Meta Boxes

I've looked all over and can't seem to find what I'm looking for (probably because I don't even know the terminology for what I need to do). I need to make some custom meta boxes that are similar to ...
0
votes
0answers
191 views

Comment-Meta doesn't work with latest wordpress update

I already had this script working, but since the last update of the wordpress core it doesn't save the comment-meta anymore. /** * Comments Winner */ // Add new heading to comments tables ...
1
vote
2answers
367 views

Using My-Meta-Box-Class plugin, how is 'Date' value stored?

I've created some custom fields in a custom post type using the my-meta-box-class plugin which comes with a built in 'date' type of meta box input. I'm having a hard time ordering my custom posts by ...
0
votes
2answers
28 views

Is there a way to create a meta box that can be added multiple times to a post dynamically?

This shouldn't be that difficult (I wouldn't think) ... I just want to have a section of my theme (directors) that has the name of the director / their bio in the title and post respectively (done). ...