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

learn more… | top users | synonyms (2)

3
votes
2answers
2k views

Dashboard like meta boxes in my plugin - how to save their position and open/closed state?

I am trying to mimic the dashboard meta boxes UI in my WP plugin - the small metaboxes. I have already styled them and also the drag & drop feature works as I loaded the following script and ...
5
votes
1answer
2k views

Put the media uploader in a metabox

I find it very unnecessary to have an "add image" button that brings me to yet another screen that will let me upload content to my post. Ideally I would like to have a meta box with the option to ...
1
vote
1answer
1k views

How to add a “custom” date field to a custom post type?

Hey guys, I'm building a portfolio (which is a custom post type) and I want to store the date of the projects. I can achieve it the "regular" way with a meta box but I would like a "datepicker" or ...
0
votes
1answer
193 views

Move title “meta box” in post mode

I've created a custom post type with my own custom meta boxes. Now I want to move the title box to the side or simply remove it and place the same content in a custom meta box. How do I go about to ...
3
votes
3answers
260 views

How can I avoid re-inventing the Custom Fields wheel in my Plugin's Metabox?

Here's the scenario: In my plugin, I want to have a metabox show up on the post / page editor. I want the metabox to be -exactly- like WordPress' 'Custom Fields' metabox, ( Add another, delete, ...
1
vote
2answers
3k views

How to store multiple input values with same meta_key

is there a way to store the input value from multiple custom meta box fields with the same meta_key? I use the following code to store ONE value for the meta_key 'startdate': function startdate() { ...
1
vote
1answer
373 views

Change meta box when the page's template is changed

For my WordPress theme I have a custom portfolio post type and a portfolio page template to display them. What I want to do is add a meta box to the edit page area, but only when the page has the ...
0
votes
1answer
412 views

Post edit screen: How to check if meta_box is registered?

I got some custom post types where i deregistered the "title" meta box. Now i always get "Auto Draft" as title. To avoid this i'd like to add the name of a taxonomy as the title. But how would i check ...
2
votes
2answers
1k views

WP 3.0.5: Best way to add custom metaboxes for post categories?

I haven't been working with WP for a while and noticed that there are some new features in WP 3+ such as creating meta data for taxonomies. I'd like to be able to add unique meta data setups for ...
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 ...
0
votes
1answer
206 views

Can I attach a plugin via my add_filter callback contents?

I'm trying to add my plugin interface to the Category Editor. I've easily attached it to the post and page editor using the add_meta_box() filter, but there does not appear to be an add_meta_box hook ...
0
votes
1answer
187 views

Custom Meta Data is not being saved

I have created a custom meta box using following link in wordpress 3.0: http://farinspace.com/how-to-create-custom-wordpress-meta-box/ I am using same code and custom meta data is not being saved. I ...
1
vote
2answers
1k views

Unable to save custom taxonomy terms in a custom-built metabox

I've roughly followed the tutorial here on how to create "custom taxonomy input panels". I'm using a custom post type of homes and a custom taxonomy called beds (used to record the number of beds in a ...
1
vote
1answer
3k views

I'm using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box

I'm using a very lightweight plugin called WPAlchemy that lets me rapidly create meta-boxes for posts and pages. I've ben able to convert <textarea>'s into rich, TinyMCE's editors just fine. ...
0
votes
3answers
392 views

Adding admin menus to wordpress

I am trying to add a menu box to Pages > Pages or Pages > Add New, basically whenever they access a page, be it to edit an existing page or add a new one, I would like to add a menu box under ...
0
votes
1answer
779 views

Add a custom field when adding / editing a page / post in admin panel

I create a new theme and I the page / post is divided to: Title Slogan Content I want to add a slogan field in the admin panel, where the user adds or edits a post or page. After I will use in ...
0
votes
2answers
2k views

Meta Box on Custom Post Type not saving

I have a custom post type which is working fine, however the meta box does isn't saving. Long & short, i'm stumped! add_action('init', 'portfolio'); function portfolio() { $args = array( ...
3
votes
3answers
4k views

Meta Boxes in Front End Post Submission Form

How can I add meta boxes to the front end post submission form? Similar to front end post submission that creates new posts, the form replies should go directly into the post meta boxes. Meta Boxes ...
0
votes
2answers
2k views

Display list of tags as drop down menu or radio buttons in a meta box?

I would like to group posts of a custom post type based on tags, but the default functionality does not do for the project I am working on. I want the user to be able to select only one tag, not ...
1
vote
1answer
440 views

metabox with custom post type values

I need to re-write a current WP website and I think Custom post types are required, combined with Meta Box. The basic layout is Author (custom) Books (custom) Photos (custom) All 3 custom post are ...
7
votes
4answers
7k views

Creating a metabox to upload multiple images

Is it possible to make a meta box that attaches multiple images to a post?
1
vote
3answers
299 views

Is it possible to create relational metabox values in a custom post?

I have a custom post type ('Model') for a sports modelling agency, and it requires the model to enter sports they are competent at, and also rank their ability from 1 to 5. For example, given the ...
2
votes
1answer
2k views

Priority of Meta Box for Custom Post Type

I'm having a small issue with the custom post type entry screen. I'd like to bump up my metabox right under the content box, but I'm not sure if that's even possible (as the metaboxes in between are ...
0
votes
1answer
1k views

multicheck box for post metabox

Hi guys I have a headache on this I make a multicheck with this tutorial wpshout.com/create-an-in-post-theme-options-meta-box-in-wordpress/ the problem is it doesn't save all checked value and it ...
0
votes
1answer
334 views

how to reset metabox excerpt to open

For some reason the excerpt box on the new posts page (post-new.php) is always closed. I can alter that with firebug, but it should be open anyway. There is a "closed" class being added by someone ...
2
votes
4answers
208 views

Multiple information using custom post type

I made a new custom type, it's working fine. My question is: If i want to add in a single post that custom-type with different informations for about x times...how should I do this? Example: Let's ...
0
votes
2answers
850 views

How to add meta boxes to the 'Add new post' screen?

I want the user to fill in a form (when they create a new blog post). The results of the form should be embedded within the new blog post. So I am trying to think of the best way of coding this. Meta ...
3
votes
1answer
928 views

How do you remove a Category-style (hierarchical) taxonomy metabox?

I was wondering if someone can help me with this. I'm currently following Shibashake's tutorial about creating custom meta-boxes that include taxonomy selection here: ...
3
votes
2answers
280 views

Add additional data to a specific taxonomy term when used in a post

If I'm using a custom post type for a Movie or a TV show episode, I may use a taxonomy for "actors" and assign all the actors related to the work to it, but I'm not sure how, besides of that, I can ...
8
votes
2answers
7k views

Custom field/meta populated by dropdown of existing posts?

(My first WP question ever asked! Be gentle!) I'm building a site that is mostly pages (i.e., static), using WP as CMS. At the bottom of several of the pages, there will appear 1, 2, or 3 "promo ...
8
votes
1answer
2k views

Is there an easy way to make a meta box have the tabs like the Categories meta box has?

My question is pretty much summed up in the title. I'm dropping a meta box in the New Post / Edit Post admin page, and I want to be able to set it up with tabs like the Categories meta box has. I ...
0
votes
2answers
362 views

Set Edit Post meta boxes inactive

I'm simply looking to set certain meta boxes inactive. I know about remove_meta_box() but I only want to make them inactive so that the user is still able to turn them back on from the screen options ...
1
vote
2answers
3k views

Remove the Featured Image Meta Box

How can I remove the Featured Image meta box? I've tried using the remove_meta_box function and specifying the boxes ID but it doesn't seem to work like it does for the other native meta boxes. ...
0
votes
2answers
588 views

Replace the Post Excerpt Meta Box with a Field in My Custom Meta Box

I've got a custom meta box for a custom post type which will be the only metabox I plan to show in the main column (except the native title box). I want to move the native Expert box/field inside my ...
2
votes
2answers
2k views

How to make multicheck for post/page meta box

Please help me understand how to make Multicheck type for metabox. Search for all internet and nothing. Thanks. UPDATE @Jan I have a headache from this function. I dont know whats wrong.I'm ...
4
votes
3answers
3k views

Make Custom Metaboxes Collapse by Default

I've created some custom metaboxes for my post write screen. Is there any way to make some of them display collapsed by default? Just in case I'm not using the correct terms or not being clear in ...
1
vote
1answer
387 views

On click hide group of metabox, similar to screen options checkbox?

I have several metaboxes in the edit screen. I would also create another metabox where the user can click on a checkbox then it hides a set of metaboxes, similar to the Screen Options functionality, ...
0
votes
1answer
544 views

Duplicate Custom Header Functionality into the post edit screen

Within wordpress 3.0 you have the ability to create a custom header image with a very slick built in cropping tool. I found out that the code being utilized for this is located within ...
4
votes
3answers
1k views

Attach Files Metabox

Does anyone happen to know how to create a simple "attach/browse" button that can be placed into a metabox which upon clicking it would open a lightbox where the user would be able to view all the ...
7
votes
2answers
1k views

Multiple Custom Metabox Help

I have been trying to get this worked out for over a year and have tried numerous ways and have not been able to get it to work. I'd really appreciate it if someone could help me with this. Here's ...
0
votes
3answers
796 views

HTML Table creator in metabox to put into post theme

I'm looking for a funcionality of creating HTML Table in metabox in post-editing page to put into post theme with a shortcode or something similar? http://alexrabe.de/wordpress-plugins/wp-table/ is ...
2
votes
2answers
1k views

Custom Metabox with Ajax in Edit Post - Stuck

I'm trying to create a custom meta box with multiple text fields. The idea is that there is initially one text box, then you can click the button 'Add New' and a another text box is added (using Ajax; ...
0
votes
1answer
1k views

How can I show/add/save custom metaboxes as an Array of values?

What I am trying to do is create a custom post type, custom meta box that inserts the values of it into an array of 'colors' or, 'p_clrs'. I have a jQuery script which works, allowing you to click a ...
3
votes
1answer
275 views

Does javascript have an equivalent to PHP's preg_replace_callback?

I have a php function that executes inside an add_meta_box() in the WP content editor (see below) that I would like to convert to javascript so that it executes on a button click (on demand vs ...
2
votes
1answer
107 views

How do I obtain the post content via a custom meta box inside the editor?

I have a custom meta box which I would like to use to report on the markup of the current post or page (number of words, number of heading tags, etc). How can I obtain the post content into memory in ...
0
votes
1answer
390 views

Placing Admin Post Metaboxes in Tabs

I am looking for what code one would need to add into the functions.php file which would allow specific metaboxes to show up in tags instead of within their individual metaboxes. Can anyone help with ...
14
votes
2answers
4k views

How to show a custom meta box on the “Quick Edit” screen?

I've used add_meta_box() to add a custom meta box to the WordPress edit window on both pages and posts. How can I make this meta box also show on the "Quick Edit" screen? Ideally, I'd like it to ...
7
votes
6answers
3k views

Disable dragging of meta boxes?

Anyone know how to disable this functionality so the meta boxes can't be repositioned?
0
votes
1answer
857 views

How to add a widget to the post editing view?

I would like to add some features (via authoring a plugin) to the post editor in wordpress. Is there a way to add a widget to the post editor view? Alternatively is there an existing plugin someone ...
6
votes
1answer
2k views

What is the “Advanced” $context in add_meta_box?

In the codex it lists the parameter $context for the add_meta_box as having the following options: normal advanced side What does "advanced" do? I don't see any difference between it and ...