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

learn more… | top users | synonyms (2)

0
votes
1answer
105 views

I can't connect my custom jquery to wp admin

I am trying to figure out how to link a custom jquery to my custom meta box created in wordpress custom post type but I can't find it working. What I want to do is add a line of text when the button ...
0
votes
1answer
151 views

Image not showing using a custom function and get_post_meta

I'm trying to create a function to display either a theme option or custom images based on user input. So basically, it's a custom meta box. The user selects either a display header image OR they can ...
0
votes
0answers
84 views

Upload button in metabox not working

The upload button is not working when put inside javascript, but it works when I put it outside the javascript. /* -----------------------upload button------------------ */ function ...
1
vote
1answer
425 views

Custom Taxonomy as checkbox or dropdown

I have registered a custom tax to my CPT. On the edit screen the tax meta box appears with an autocomplete field. Is it possible to display it as checkboxes or dropdown instead?
0
votes
1answer
44 views

Why do Metabox use Nonces?

Why is it advised for admin panel metaboxes to use nonces? Every example I see of creation and saving metabox data there are nonces involved but aren't nonces a bit unnecessary in this case?
1
vote
3answers
762 views

Adding upload button in metabox

I want to add upload image button for the images and retrieve url. Can someone pls help me, i have been trying this for quite a few days. I'm using code from this thread Create more Meta Boxes as ...
0
votes
1answer
145 views

Insert media button will always add into the same tinyMCE editor

I have an issue with the insert-media button. I have 2 instances of tinyMCE with both Add Media button. When I add a media in one of the two tinyMCE, all my media will go in this after, whatever which ...
0
votes
1answer
281 views

wp_editor removes paragraph from custom meta box

I have created a custom meta box like so: /*quote meta box*/ add_action('add_meta_boxes', 'quote_meta_box'); function quote_meta_box($post) { global $post; $post_id = $_GET['post'] ? ...
0
votes
3answers
316 views

Can't publish custom post type - “You are not allowed to edit this post.”

Hey guys I've created this post type but when I click the publish button I receive the message: You are not allowed to edit this post. Have I done something wrong in my code to disallow anyone ...
0
votes
0answers
48 views

Unsetting/Removing custom meta data on a page

I've made a custom meta box where you can upload an image attached to the post. I've done this since the image isn't placed in the normal content area but separate. /*** Custom post upload ***/ ...
5
votes
2answers
256 views

Add default WordPress tag meta box to User Profile

I've set up my user profiles to allow custom taxonomies following this tutorial. Ideally, I'd like to use the default Tag meta box from the Post screen, so users can easily add new taxonomies and ...
4
votes
1answer
105 views

How Does Wordpress Remember Metabox Positions?

I was wondering how Wordpress remembers the position of metaboxes: session basis, user basis, computer basis? Does it set a cookie? Is it saved in the database?
0
votes
0answers
9 views

How to create multiple checkbox selection in a metabox? [duplicate]

I have a loop that generates multiple checkbox in a wordpress metabox <?php $args = array( 'post_type' => 'agenti', 'posts_per_page' => 1000, 'orderby' => 'title', 'order' ...
0
votes
1answer
47 views

Problems with a custom meta_box

I got some information on here which I am using for an Events site I am developing. How to add option box in "Edit Post" plugin API? However, I have changed the checkboxes for text inputs ...
0
votes
0answers
377 views

How to upload images as custom field with meta box?

With this sample of code I want to demonstrate that, my meta boxes are working well, entering data into database (postmeta) with the post, except the image files. They are passing the filenames only ...
0
votes
1answer
97 views

Output list from each line of metabox (shortcode)

Hey I have a textarea in my metabox and I display the info using a shortcode. I want to output the data from that metabox as a list (each line is a list item). I used the code from here but changed ...
0
votes
2answers
214 views

Meta Box by Rilwis, Load metabox on all page templates EXCEPT the homepage

Using Rilwis' Meta Box plugin for custom metaboxes, is there a way that I can load a metabox on all page templates except template-home.php? 'only_on' => array( 'template' => array( ...
0
votes
1answer
339 views

Saving meta box data?

All I really want is for the meta box data to be saved A) as an accessible global variable inside the loop and B) to save the data to the textbox so that when the user presses update what they have ...
0
votes
1answer
149 views

How to List all Sidebars in a Metabox

I'm trying to add a metabox to every page that is a drop down list of all registered sidebars that is then saved in a custom field. I'm using this metabox class I've gotten as far as this: // get ...
0
votes
1answer
57 views

Adding meta boxes to custom post type

The add_meta_box() function needs a callback function as an argument to display the meta box on the edit page of a custom type post. My problem is I can not display anything, say in the input ...
0
votes
2answers
138 views

Showing Meta Box via Jquery Checkbox

Ive been fooling around with both Jquery and PHP and Im trying to setup a website for a sports team. I've created a custom post type called "Matches" and in there I've created two Custom Meta Boxes. ...
0
votes
1answer
533 views

Add Metabox to all custom post types

Ok, I've looked through the forum here, but haven't found quite what I'm looking for. I wanted to see if it was possible to add a Metabox to all custom post types without the need to setup an array? ...
5
votes
2answers
251 views

Can I force a metabox to be in one column?

Suppose I created a custom metabox for the add/edit post page that uses a wide width (not suitable for being in the sidebar), is there a way of keeping it in the middle column only and sortable while ...
0
votes
1answer
72 views

Adapting plugin for custom post type?

I am trying to reformulate a function (in a plugin) so that it applies to posts in a custom post type rather than normal posts. function saving_posts($post_id) { global $wpdb, $user_ID; ...
0
votes
1answer
144 views

RW Meta Box ,Problem setting post title

I'm using RW_Meta_Box plugin by Rilwis. I'm using a CPT and added a custom meta-box and removed the title and editor. But I still want to set the title for some obvious reasons. I created the CPT ...
0
votes
1answer
64 views

Meta Box Value not saving / populating?

Ok, I have a meta box setup now that populates with the all the registered post types. That part works fine. But, upon selecting an option in the dropdown list, and saving / updating, the value ...
0
votes
0answers
33 views

Add a button to custom meta fields

I am building a website using WP and Custom Meta boxes The website is for a training provider and requires multiple dates for each course e.g. they may run fortnightly. Now my question is, can I add ...
4
votes
1answer
369 views

Unable to get Preview of Uploaded image within a Custom Meta box

I first followed the steps in this tutorial. Added the Image Uploader, tried it out but I realized it's an older version of the WP Uploader... So I then found this post, and now my uploader is ...
0
votes
2answers
131 views

Custom metabox not displaying multiselect data in edit mode

I have a custom metabox in a custom post type that records system outages across the campus that I work at. One of the fields in the metabox is a multiselect box listing all the buildings on campus. ...
0
votes
1answer
122 views

Related posts and custom meta_box?

I am trying to code the ability to pick which posts should be included as related to the current post the user is editing. I have used @MikeSchinkel very helpfull post here, to include a list of ...
0
votes
1answer
913 views

Creating a Custom Post Types dropdown in a Meta Box

Is it possible to populate a meta box with a drop down list of custom post types? I plan on trying to create a template for a client that will allow them to create a new page in the dashboard, and ...
0
votes
0answers
47 views

Customer portal (posts as checklist)

This is a pretty difficult one: We are extending our services for our customers. Our customers have to do some things like, buy a apple developer account, generate google analytics key, buy a google ...
0
votes
1answer
224 views

Move Title and the Content WYSIWYG editor position

Right now, the Title is the first thing at the top of the page, then we have next the WYSIWYG Editor. I would like to add a Custom Meta Box and insert it before the title or WYSIWYG editor. How can ...
0
votes
1answer
21 views

Hybrid meta box, how to show?

As a designer I'm not that well in PHP. I've created a (hybrid) meta box. Now I want to show the meta stuff on my template. For some reason I can't get it hooked in my template. The meta box is ...
0
votes
2answers
88 views

Creating a function that sanitizes the custom metabox excerpt

I'm still getting to grips with functions and experimenting with different php functions. I've created a function what I want to use in sync with my custom metabox excerpt. It will basically sanitize ...
0
votes
0answers
40 views

Custom Meta Boxes not saving in latest version of WP

I'm having a problem with saving custom meta box data, when you fill in the textbox and update the post, the data doesn't save in the database. Here is my code: any help appreciated! if ( ...
0
votes
1answer
89 views

Saving div elements generated with jQuery [duplicate]

I have certain blocks of code like BlockA(a,b,c) and BlockB(b,d,e) and so on where these a,b,c, etc.. are all input fields. All these blocks are hidden initially with css and post editor has the ...
0
votes
0answers
150 views

Include Meta Box data in search

I have created a custom post type named archive with its own search filter, powered by: <form class="searchformcustom" action="<?php echo home_url( '/' ); ?>" method="get"> ...
0
votes
2answers
45 views

Get meta field value of all catgories

I'm setting a meta field for the category and getting the meta value of each field like this: $cat_meta = get_option( "meta_field_$cat1" ); if (isset($cat_meta['color'])){ $cat1_color = ...
0
votes
1answer
218 views

meta box not display data input in the textarea

I've had multiple errors with this metabox, first I thought Id fixed a undefined index error with the code below but now that doesn't appear my metabox doesn't save any data. code before the error: ...
1
vote
1answer
56 views

Security checking in meta_box save is reluctant?

For example, in this tutorial, the code suggested when saving meta box data is /* Verify the nonce before proceeding. */ if ( !isset( $_POST['smashing_post_class_nonce'] ) || !wp_verify_nonce( ...
-2
votes
1answer
89 views

metabox displaying on incorrect page

I've got two different functions that output different metabox's one is for the pages and the other is for just the post. For some reason the one I created for posts overwrites the one on pages and ...
0
votes
1answer
51 views

remove a single post_meta

I created a plugin that has multiple meta boxes. One meta box saves a single record by using update_post_meta(). Another meta box saves multiple record by using add_post_meta(). I do not have ...
0
votes
1answer
320 views

Post meta select input, if statement

I have created a meta box with a select input (drop down menu). It has a few values and I want to display different content depends on which value the user selects. I am just unsure how to display ...
0
votes
0answers
98 views

Customized featured image doesn't refresh in post admin metabox after upload/insert

I customized my featured image metabox position, the default name, and text for a custom post type. While I'm able to add/edit an image in post admin, after I have uploaded an image, the post admin ...
0
votes
0answers
78 views

Lost in creating multiple meta boxes

I've been working for days to get this working without luck. Hope someone can help me. I created multiple metaboxes but my backend shows the boxes empty, I am lost and don't know where to go with ...
1
vote
1answer
91 views

Add new post with predefined / preset date

The current situation The plugin I'm currently working on is an additional post list view: A calendar, as you can see in the following screenshot. Admin calendar view with MP6 and handheld screen ...
0
votes
1answer
97 views

How to validate select field in post meta?

I want to display a select dropdown field in the post meta. How can I validate the input before saving it? Currently, I am simply saving without validating like this: if ( isset( ...
0
votes
0answers
53 views

How to separate metabox data in front/backend

I just created a kind of long metabox using a tutorial at wptuts but I am lost in two things: The output of the metabox displays all data grouped (ex. in grouped checkboxes they are all in a whole ...
0
votes
1answer
269 views

Remove Custom Taxonomy Metabox from Custom Post Type Screen

I have two hierarchical custom taxonomies, each on a corresponding custom post type. I would like to remove the metabox for each on the post type's edit screen. I have read remove custom taxonomy ...