Refers to a box-like reusable user-interface component common in the WordPress backend.
15
votes
2answers
3k views
Create more Meta Boxes as needed
I'd like users to be able to create and remove additional meta box fields as needed.
For example, say a music podcast with a variable amount of songs played per episode.
The user should be able to ...
9
votes
2answers
2k views
Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
I need to create a custom post meta box(es) for my custom post type "Slideshow" (this post type is already created). Each metabox will hold the content in each slide slide and save it to ...
10
votes
5answers
4k views
Can I add a Category Metabox to attachment?
I am using register_taxonomy_for_object_type() to add the Category taxonomy field to Media uploads (attachments). I'm using this code to do so:
add_action('init', 'reg_tax');
function reg_tax() {
...
8
votes
3answers
3k views
Passing error/warning messages from a meta box to “admin_notices”
I have a simple meta box that updates the post custom fields (using update_post_meta()).
How can I send a error or warning message to the next page after the user publishes/updates the post and ...
5
votes
3answers
3k views
How to set default screen options?
I'd love to be able to hide meta boxes using screen options, instead of removing them or restricting them to user roles, the goal is to just "uncheck" the meta box for the user.
I see how this would ...
0
votes
1answer
516 views
Custom meta box shown when template is chosen [duplicate]
Possible Duplicate:
Toggle admin metabox based upon chosen page template
Is this possible to change editor screen immediately after someone picks some template from the drop down?
I need a ...
8
votes
2answers
5k 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 ...
3
votes
1answer
1k 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 ...
2
votes
2answers
565 views
How to add or remove metabox each page separately?
How to add a meta box for a particular page, say: for only About Us page.
How shall i do?
The current code adds the metaboxes for all pages:
function myplugin_add_custom_box() {
add_meta_box(
...
4
votes
2answers
1k views
post formats - how to switch meta boxes when changing format?
Problem
After realizing that post formats are pretty popular, but only a extremly rough drawn concept, i see that users will run into possible traps.
Post format ...
uses post meta fields & ...
3
votes
3answers
2k 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 ...
2
votes
1answer
590 views
How to add automatically keyword to taxonomies when a post published, and assign them to the post
How to add automatically keyword to taxonomies when a post published, and assign them to the post
for example i have in my post edition, a custom meta box, when you complete this input, a function ...
9
votes
5answers
4k views
meta_query with meta values as serialize arrays
I'm working on a project in which I'm creating a custom post type and custom data entered via meta boxes associated with my custom post type. For whatever reason I decided to code the meta boxes in ...
3
votes
4answers
3k views
custom fields for attachments?
is it possible to add extra fields via the functions.php script for attachments in wordpress?
Tried loads of examples but none seem to work. Worried an existing plugin might be affecting my attempts ...
1
vote
1answer
1k views
Custom Meta Boxes: Store two values in one repeatable field
I am trying to create a custom meta box where the user can add fields as needed. I followed this tutorial:
http://wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-1-intro-and-basic-fields/
I ...
1
vote
2answers
684 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 ...
11
votes
1answer
5k views
Set Default Admin Screen options & Metabox Order
I am desperately looking for some way (any way) to set default "screen options" and metabox order through the functions.php file. does anyone have any help they can provide here?
11
votes
3answers
2k 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 ...
5
votes
3answers
3k views
Custom Post Type - Taxonomy Dropdown Menu?
I have created a custom post type and added various meta boxes/fields to this custom post type. All is working excellent except for one element...
Instead of utilizing the default interface for ...
2
votes
1answer
504 views
How to group meta boxes on the post edit page
I suspect that this is not possible right now, but oh well.. I'll ask, maybe one of you has some intersting thoughts to share.
So let's say we have the following taxonomy terms meta-boxes on our post ...
6
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 ...
8
votes
1answer
874 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 ...
4
votes
2answers
508 views
Get List of Registered Meta Boxes and Removing Them
Is there a function for getting a list of registered Meta Boxes and removing them? I see there is a method for adding, and removing.
http://codex.wordpress.org/Function_Reference/remove_meta_box
...
3
votes
2answers
525 views
Remove tabs from media uploader for a CPT
I use the media uploader in a own meta-box for a custom post type called "premium".
The Thickbox opens after a click of the button in the meta-box and files can be uploaded.
Now I want to remove the ...
5
votes
4answers
931 views
WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins
I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
4
votes
2answers
725 views
Using media-upload.php to upload mp3 via custom fields
I'm trying to use the Thickbox file upload dialogue with a custom field to allow the user to upload an mp3. What I want to do is to grab the URL of the uploaded mp3 and save it as postmeta (saving the ...
1
vote
2answers
530 views
How to Move the Author Metabox into the “Publish” metabox?
About a year ago I remember seeing a plugin or some code which allowed you to add an author dropdown menu to the post "publishing" metabox instead of it being on its own.
I can't seem to find this ...
3
votes
3answers
905 views
Change The Title Of a Meta Box
I'm trying to create a function that would allow me to change the title of an established meta box (i.e, change Meta Box title 'Authors' to 'Team', etc.)
I didn't want to use JS or have to unset the ...
3
votes
1answer
1k views
WP_Query with checkbox meta_query
I have posted this on StackOverflow too, not sure if that's allowed - if not let me know and I'll remove one (I don't want to look like I'm spamming). Anyway....
I have a custom post type and have ...
2
votes
2answers
1k 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 ...
1
vote
1answer
386 views
How to sort CPT by custom meta value (date), and return posts month by month
For future reference:
I am using the great Meta Box Plugin to help expedite meta box creation for my custom post types.
My goal:
To build a highly customizable events section closely resembling a ...
1
vote
2answers
2k 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 ...
0
votes
2answers
1k 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 ...
4
votes
1answer
867 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 ...
3
votes
2answers
310 views
How to Add Reminders/Notes to New Post Meta Boxes
I have a multi-author website and I use the WyPiekacz plugin to require that authors add 1-5 tags, select only a single category, and include a featured image (and require minimum dimensions for the ...
1
vote
2answers
108 views
How to activate “Description” metabox for menu item programmatically?
I'm creating custom wordpress theme. How can I enable "Description" metabox for menu items (on nav-menu page) by default programmatically?
1
vote
2answers
409 views
How To Create a Meta Box with Html Content with Instructions to Site Editors When Editing a Post or Page?
I would like to add a custom Meta Box with Html content in the screens New and Edit Posts/Pages (/wp-admin/post.php?post=POST_ID&action=edit), so that I could display a list of editorial ...
1
vote
2answers
871 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 ...
0
votes
2answers
48 views
How to make a meta box field a requirement
I'm building a plugin that has a meta box. Some of the fields in the meta box are required. Is using Jquery the only method for achieving this? Can I require that a field is filled in using php?
...
3
votes
1answer
733 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: ...
2
votes
2answers
200 views
Only show metabox when date-value in other metabox is over?
probably a weird question.
I'm using the custom MetaBox and CustomFields Class by jaredatch on Github.
I have this "event-date" metabox:
$meta_boxes[] = array(
'id' => ...
0
votes
1answer
196 views
Checkbox in post not saving value
I have a checkbox above my metabox in a custom post. When I check it and publish/update the post, it become unchecked again meaning it's not saving it's value. Here is my code for the checkbox:
...
0
votes
1answer
4k views
How to get meta box values - WP tuts tutorial
I did these tree tutorials to create custom metaboxes.
wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-1-intro-and-basic-fields/
...
0
votes
2answers
860 views
Can I limit this meta box to a particular page?
I am using a version of this (http://www.deluxeblogtips.com/meta-box-script-for-wordpress/) meta box script but I want to be able to limit which edit screen a meta box shows.
For example, if I only ...
0
votes
1answer
235 views
Custom field values get deleted
I created a custom post type:products which also has custom fields: price & shipping. Occasionally, if I leave the edit product window open or refresh it, I lose the values inside price and ...
3
votes
3answers
2k 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 ...
8
votes
1answer
1k views
Taxonomy dropdown metabox in the back-end
I've created custom taxonomy called Brands and made it hierarchical so I can add Car brands and models there and keep their relations, like this:
Ford
Mustang
Mondeo
Focus
Problem is, this list ...
7
votes
6answers
1k views
Disable dragging of meta boxes?
Anyone know how to disable this functionality so the meta boxes can't be repositioned?
7
votes
4answers
5k views
Creating a metabox to upload multiple images
Is it possible to make a meta box that attaches multiple images to a post?
6
votes
3answers
3k views
Sample code for validating custom metabox?
I've found very little on this site or in Google searches for examples of validating metabox custom fields.
If anyone wants to give examples, here are some cases that would be useful
1) Date entered ...