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

learn more… | top users | synonyms (2)

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
369 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
822 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
455 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
286 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
301 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
685 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
784 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
9k 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
949 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
505 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
634 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
9k 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
334 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 ...
1
vote
1answer
311 views

Set default post author to none on new post

On a large multisite install with 200 authors I need the author on new posts to default to none. I unset the post_author div and moved it to the publish box (where it should be anyway) and wrote a ...
1
vote
3answers
2k views

How to add meta box to backend menu page

I need to add a meta box to the backend menu page, in Appearance->Menus (/wp-admin/nav-menus.php), to list all the available post types, both the defaults & the custom ones. It will contain a ...
1
vote
2answers
416 views

What is the best way to correlate one-to-many content-type relationships?

I currently have a custom post type setup for the different buildings that a Real Estate developer owns. Each building can have multiple images, a short description and a few different fields setup ...
0
votes
1answer
434 views

Remove Title, Editor and Meta Box Support Based on Post Formats

Been looking around and can't find this. Is it possible to remove, let's say, the title area on post format: "quote"? Or the editor on post format: "image"? I noticed this page in the Codex: ...
1
vote
1answer
322 views

Remove ShareDaddy meta box from Pages only

I'm trying to take away the option to have sharing options on 'pages' (but leave on posts). So I have a function to make sure the sharing option is always no on pages function ...
1
vote
1answer
2k views

Should custom meta boxes be able to output shortcodes the same as Wordpress' native post editor?

Simply put: Should custom meta boxes be able to output shortcodes the same way as Wordpress' native post editor? Reason I ask is because Ive created my own custom meta box for inputting a shortcode ...
1
vote
2answers
2k 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 ...
6
votes
1answer
2k 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 ...
2
votes
1answer
724 views

Better way to enforce category hierarchy in post_categories_metabox?

The objective is to ensure that when editing a post, the metabox that lists a hierarchical taxonomy doesn't reorder itself upon Update to put checked items on top. Right now, edit-form-advanced.php ...
1
vote
2answers
288 views

Custom metabox field help tips popups

Is there anything built-in to core that displays a little (?) icon next to admin-side input fields (custom metabox input fields, for example) that provide tooltips or a contextual help popup when ...
2
votes
2answers
1k views

Cleanest way to code “Custom Write Panels/Meta Boxes”?

As with anything in Wordpress it seems there are 20 way to do something, but after several weeks of extensive searching I really haven't found more then a couple tutorials floating around that really ...
4
votes
2answers
671 views

Changing Top Level Items into Radio Buttons in the Categories Meta Box?

I know it is possible to change the WordPress category list to radio buttons in the admin panel for posts, but I would like to make the just the Parents radio buttons and the sub categories or ...
1
vote
1answer
361 views

Pull a post based on a meta value in a custom post type

I'm trying to display a post, from a custom post type based on a meta value in that post type, in this case a checkbox that says "if this is checked show it on the front page. Usually I write a ...
3
votes
2answers
885 views

Add Meta box Befoure Post Title

i would like to add an image above the post title... in the old days i would change that directly in wordpress code but thats not very affective.. you know, upgrades and such. is ther a way using ...
1
vote
2answers
886 views

Can't get metabox value (a url) returned using WPAlchemy

I'm using the WP Alchemy class to add custom metaboxes to templates in the admin panel and pull results from those metaboxes into the theme front-end. Here is the relevant code in content-link.php (in ...
1
vote
1answer
299 views

Linking text within textarea of custom meta box

I'm using 'Meta Box Script for WordPress' to create custom meta boxes and everything is working great...except the following: We have a textarea that we want to act, basically as another WP ...
0
votes
1answer
764 views

Creating an If/Else statement using WPAlchemy MetaBox radio boxs

I am using the WPAlchemy MetaBox Class to create additional metaboxs on my site. One has a section with a group of radio boxes. I've coded it as follows: <?php $mb->the_field('docposs'); ...
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 ...
2
votes
1answer
1k views

Metabox image upload and custom field

Is it possible to a) upload image in meta box (not using default WP image uploader) and then b) get the path to uploaded this way image in a custom field?
0
votes
1answer
1k views

add post meta front end edit

I'm trying to allow users to add meta values in my posts but it doesn't seem to be adding it in my front end post edit <!-- edit Post Form --> <div id="postbox"> <form ...
0
votes
1answer
151 views

How to change a meta value (of a published post) after X days.?

I have a custom field. I would like to change the text of that custom field after x days. I want something like this: if ( published post is more than 90 days old ) { echo "your post is more ...
2
votes
1answer
4k views

Custom post type metabox array

I am trying to create a custom post type with custom metabox array. How can I create this kind a automatic populating post type? I think I have to use two dimension array. But how can I automatically ...
0
votes
1answer
179 views

How do you make relational post types in Wordpress? [duplicate]

Possible Duplicate: Linking Two Post Types I have a post type, referred to as "Press Release" and another called "People". I need to be able to connect the two together. MY end goal is to ...
0
votes
1answer
166 views

PHP Puzzle: Unique Styles with PHP loop

The Puzzle: I am currently working on a music blog that has various venues and numerous locations that are laid out at the top of each post as follows: USA.California.Los Angeles. Hollywood Bowl ...