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

learn more… | top users | synonyms (2)

0
votes
1answer
1k views

Multiplile values checkbox or select in custom meta box

I have followed the great answer by Jan Fabry in this question . How to make multicheck for post/page meta box this works great. My question though would be , what if someone WANTS a serialized ...
0
votes
1answer
130 views

Inefficient Query Confusion

Edit #3 - meta_keys as an array This seems to compare more than just the "opening_time" I can set the opening time for the wrong date or even leave it blank and it will still grab a post if the ...
9
votes
3answers
6k views

How can I put a custom meta box above the editor but below the title section on the edit post page?

I have a custom meta box for a custom post type that my client wants placed between the title/permalink section and the post editor in the admin panel. Is this possible and if so is there a ...
0
votes
2answers
670 views

Echo 2 values from one key in Array with get_post_custom

Edit 12/15/2011 Added Radio Button print code // Add meta boxes to admin panel only needs to be added once add_action('admin_menu', 'plib_add_box'); //Add meta boxes to post types ...
0
votes
1answer
75 views

Custom loop attached to link

I have a custom post type named companies. When you add a new company you need to check if it's a leader or not, so I created custom metabox with two radios, one for "yes" and another for "no". In ...
0
votes
1answer
379 views

One Custom Post Type two different Templates

I have a custom post type with some metaboxes, for this CPT have his own single-CPT.php where I show his content and metaboxes and url domain.com/CPT. But what I need to know is if posible to create a ...
0
votes
1answer
1k views

Display metabox title for custom fields with values

I'm using multiple metabox panels in my write posts. IN my functions I'm registering multiple metaboxes: $prefix = 'dbt_'; $meta_boxes = array(); $meta_boxes[] = array( 'id' => ...
5
votes
1answer
2k views

Can you make a custom metabox field be required to save a new post?

I am working on a custom post type, I have removed all the standard wordpress form items and started from scratch with custom meta boxes, except the title field. In my situation, it is really ...
0
votes
1answer
537 views

Select Venue from dropdown list and reuse stored address information in meta_box

UPDATED CODE 12/12/2011 Here is the code in functions.php. I put the code for output in my events page. For now there has been on output. <?php // Custom Meta Data for Events ...
7
votes
2answers
4k views

How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button

I have a custom post type (called contacts). Since this post type is not working like a post, I don't want to show SAVE DRAFT, PREVIEW, Status, Visibility or Publish Date. The only options I want to ...
0
votes
1answer
1k views

How to add a SAVE button to replace PUBLISH on a custom post type?

I have a custom post type called 'contacts'. I want want to remove the status, post date and change the button from PUBLISH to SAVE. From what I can tell this may not be possible without changing core ...
0
votes
1answer
561 views

WP E-Commerce Custom Meta > Serialized array

I have an issue where I am adding custom meta to my products. Everything works fine until I update my product. This is before: This is after update: I am thinking it has something to with how it ...
0
votes
1answer
1k views

Custom Field & Gravity Forms [closed]

I have the following custom function code which i'm using to create custom fields for a post type. The issues is that I need the custom fields to show up individually and at the moment they just show ...
0
votes
2answers
508 views

Custom Post Type + Custom Meta Query Not Showing 2012 Posts

I created a custom "events" post type for a client that basically "hides" the post once it has expired (ie. the event already happened). The events are displayed in the order of the start date rather ...
0
votes
2answers
608 views

Create a custom post type for a photo post

I am looking for a way to create a Photo Post type. Basically a post that is a title and a single image. Where I am getting stuck is the actual attaching an image to a post. I would like to have an ...
2
votes
1answer
116 views

More than one meta field in a single meta box?

I'm following this tutorial by Justin Tadlock on creating meta boxes. http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/ I can get a meta box with a single field to ...
0
votes
2answers
453 views

Get fields from metabox array

In my functions I'm registering multiple metaboxes with custom fields. A single metabox array for instance, looks like this: In functions.php $meta_boxes[] = array( 'id' => 'general_info', ...
0
votes
1answer
3k 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 ...
3
votes
4answers
3k views

Re Order Editor to be after meta box [duplicate]

I want to reorder stuff in a custom post. I got the meta box and editor working together, but currently the editor is above the meta box and I need it to be the other way around. This is the code ...
0
votes
1answer
107 views

CPT Metabox with email notification

I have a custom post type just for contacts, I want to create a metabox with the contacts birthday and have it notify the site admin when it comes up (Or a day/week/month before the date if possible). ...
1
vote
1answer
589 views

How to store multiple values in 1 meta_key with radio input?

How do I store multiple values in one meta_key through a radio input and then display the two values on the page? One value would be a text string and the other would be a link that would go with ...
0
votes
1answer
387 views

Custom Meta Box with variable number of fields

Here is what I wanna do and I basically would just like some ideas from someone more experienced that would help to get started in the right direction. I have a custom post type (Exams) that has is ...
0
votes
1answer
668 views

How to add categories to page editor?

I'm trying to add the categories selector to the "page" editor workspace. The code below does the trick, however, none of the values are saved with the page. Any help much appreciated! ...
0
votes
1answer
504 views

How do I create a Meta box that can be repeated? (with an image section and text area)

What I need to do is have a meta box that you can select an Image (via the built in media uploader), and then add a caption to it using a text box with the TinyMCE bar - and once this is done, another ...
0
votes
5answers
3k 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( ...
2
votes
3answers
401 views

How to put Periods and Spaces for Array Values (Meta Key)

Problem: Before I created meta-boxes I did things the old fashion way by entering custom fields directly. I went through the process of filling in the ID and the Value by hand and hitting the ...
3
votes
2answers
4k views

Metabox with checkbox is not updating

I trying to set a meta_box with a single checkbox, everything goes fine, however if I uncheck it and save the post, it marks again as checked, I've been taking a look but I cannot find my mistake. ...
0
votes
1answer
873 views

Create a page Meta Box listing all blog users

I have a custom post type where each post can only be seen on the frontend by one specific user. I have figured out how to make an archive template where only posts with the meta _allowed_user = ...
1
vote
2answers
465 views

Modules with meta box implementations

I am looking for some modules that implement add meta box as shown here perhaps with some ajax magic. If you have any modules I could check out would be welcome.
0
votes
2answers
150 views

Create a custom post type based on 'Post'

I would like to create a custom post type, but all the tutorials I've found are geared towards making a brand new one and creating meta boxes from scratch. Whereas all I would like to do is copy an ...
0
votes
1answer
287 views

Getting metabox value within a shortcode?

Is it possible to get page's metabox value within shortcode that is executed on that page? Scenario: I have a sidebar metabox for every page. I have some kind of custom gallery shortcode. My ...
0
votes
2answers
310 views

Add a custom meta box for client to order CPT posts how they want

Im looking for a way to add a custom meta box to a custom post type that will allow the user/client order the posts to show up how they want on the site. Is this possible? Basically using a very ...
0
votes
1answer
709 views

Extra Meta Data for Wordpress Multisite Taxonomy

I'm using a custom taxonomies across a Wordpress multisite install (same taxonomies on all sites) and i'm trying to add some custom meta boxes to each of these (same meta boxes on all sites). I'm ...
1
vote
4answers
1k views

Add Meta Box not showing on New Post - Custom meta box not showing

This issue has plagued me over a couple projects. I used the default Wordpress class-based template provided in the Codex to start, and built outward. The only issue I face is that my custom meta ...
7
votes
2answers
5k views

How to change default position of WP meta boxes?

Im wondering if there is a way to change the default position of Wordpresses meta boxes such as "featured image" for custom post types without having to drag them manually? Example:
3
votes
1answer
833 views

Is there a filter/action to add content to WP admin metaboxes?

I want to add an instruction into a custom term meta-box. Is there a hook to add this or is it easiest just to use JavaScript?
12
votes
6answers
10k 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
vote
2answers
1k views

Meta box dropdown of custom posts

I am trying to display a dropdown select metabox on the "add new" page of a custom post type which displays a drop down list of titles from a separate custom post type ( it's an effort to relate the ...
0
votes
2answers
969 views

Dynamically add / duplicate custom meta in custom post types

I am using Custom post types in one of my themes I have one custom post type called "accommodation" with meta boxes to add details such as type of rooms (single, twin, double...); each room has a ...
0
votes
1answer
84 views

Custom Meta Box calling JS function twice

I have a plugin adding a custom meta box to the comments editing page: function on_admin_init() { add_meta_box( 'commentrating', __( 'Voto recensione', FB_DT_TEXTDOMAIN ), array( &$this, ...
1
vote
2answers
2k views

Adding submit or update button to custom metabox?

I have alot of custom meta boxes, and the user has to scroll to the top everytime he wants to save the meta info. Is there a way to put submit buttons at every meta box that does that same as the ...
0
votes
1answer
524 views

save radio button selection in post-meta on submit

Right now I'm reading tags from the tag box, and putting them in a form with radio buttons so the user can choose a "main tag" from the tags they just typed in: function write_tags(){ var rawtags ...
0
votes
1answer
651 views

Disable collapse of admin meta boxes

I have been attempting to disable the ability to collapse admin meta boxes. By the looks of it WordPress creates this functionality in postbox.js /wp-admin/js/ but I have been unable to find a hook or ...
3
votes
1answer
2k views

Custom “Publish” / “Update” button &

I'm trying to implement a "publish" button from a custom post type metabox. Everything actually works fine if I either create a new button and manually call submit() or duplicate the regular submit ...
2
votes
1answer
371 views

Metabox Data not being saved [closed]

My meta box won't save data. It's a select form field and when I select and update the post, there's nothing selected on refresh. So here it is on PasteBin. http://pastebin.com/tfrgasQC Can anyone ...
1
vote
2answers
3k views

Removing Edit Permalink/View “Custom Post Type” areas

Trying to replicate some functionality I've seen on a few other themes before, but would like to know/understand for my own uses. I've created a custom post type, called "testimonials". I believe ...
4
votes
2answers
10k views

The correct way of adding TinyMCE editor to custom meta box textarea?

Since Wp 3.2 a lot of changed to TinyMCE and Wordpress and ow I can not find out how to add the Tiny MCE to meta box in Page. This is how it looks when I am not firing up the MCE ...
0
votes
3answers
1k views

How to add meta boxes to Pages

I'm almost complete whit my wp theme an I'm now translating it with the WPML plugin. This is working out great (even all my custom post types and meta boxes :) ), but of course there have to be a ...
0
votes
1answer
336 views

Display content between two dates?

I want to display a meta field between two dates, the admin can set the two dates via the custom fields. How can i make such content show between the dates set? Thanks Matt
0
votes
1answer
126 views

Taxonomy Extra Meta [duplicate]

Possible Duplicate: Adding Custom Field to Taxonomy Input :Panel I created a custom post type with a taxonomy associated. When I add new item for my taxonomy, I get name, slug and ...