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

learn more… | top users | synonyms (2)

3
votes
1answer
790 views

Custom Meta Boxes: multiple fields within a repeatable field

I am working on a meta box for events. Each event has it's own page with a meta box for the line-up, background image, tickets page URL and some text. To create the line-up I would like to use the ...
2
votes
1answer
50 views

Save list from a custom meta box?

I have a simple list (ul>li) which is manipulated with jQuery UI in a custom meta box. How would I go about saving the contents of the list during post save? I already have the save function ...
1
vote
1answer
138 views

Better Method for Multiple Meta Boxes

I'm learning about meta boxes and have gotten them to appear on my local dev, but I can't figure out how to avoid creating new functions for saving multiple meta boxes. I assume that I could call an ...
1
vote
1answer
83 views

Ordering values entered in Custom Taxonomies

I found a great article on Custom Taxonomies here. I have a specific requirement related to ordering values entered in the Custom Taxonomies. How do I display the terms entered in the meta boxes in ...
0
votes
1answer
30 views

Get a different size of Image thumbnail While working with custom metabox

I am using custom metabox for a page in my new project, I am using it for uploading image, and attaching it to the page. It's working fine, I can select image or upload the image using WordPress' ...
0
votes
1answer
30 views

How to callback custom field text

I have a plugin where the user can click a button to feature a post. I added a text field but i want the text field to call back whatever is posted in it Here is how it looks now ...
0
votes
1answer
30 views

Problem for recover and save metaboxes

I create metaboxes but i can´t save data and also no show data insert into field , this is my code <?php function reaction_buttons_meta2() { global $post; echo ...
0
votes
1answer
44 views

How can I create a menu items from meta box based on users input

I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
0
votes
1answer
38 views

Tabbed navigation in widget backend

I have just created a widget and i am trying to implement a tabbed navigation in the wp backend but it just seems more difficult than writing all the php code! The categories metabox is an example of ...
0
votes
1answer
72 views

Dynamic number of fields in a meta box

I am working with a recipes blog and I use custom meta boxes. $food_box = array( 'id' => 'foodbox', 'title' => __('Ingredients details','splus'), 'page' => 'recipes', ...
0
votes
1answer
28 views

Custom metaboxes not saving after switching themes

I recently switched themes and copied over my metaboxes from the old functions.php into the new one. They show up but when I click publish/edit they dont save add_action( 'add_meta_boxes', ...
0
votes
1answer
72 views

Adding different classes to different images depending on size for fine control of image layout in posts

I have all the CSS classes set to display images in a custom portfolio theme. I am allowing for images of different sizes and proportions (landscape, portrait, etc) to be tiled next to each other and ...
0
votes
1answer
155 views

Plugin admin page meta_box toggle and order state not saving

I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0 I'm using meta boxes to hold sections of menu for a plugin. ...
0
votes
1answer
141 views

Displaying Meta Box Image

I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart. I'm able to display the textfields using ...
0
votes
1answer
29 views

Meta boxes not showing up

Okay so I'm trying to render a meta box. This is what I have so far, trying to keep it as basic as possible: add_action('load-post.php', 'ad_templates_callback' ); add_action('load-post-new.php', ...
0
votes
1answer
166 views

save_post action inside a custom metabox class not working

I am writing a class to create metaboxes and save the form data. The problem is, I keep getting a warning when I click "publish": Warning: call_user_func_array() expects parameter 1 to be a valid ...
0
votes
1answer
47 views

Option to delete value in metabox

I'm making a metabox with a textbox that displays the value of the metakey if I user types and saves data. What I need help with is how the user can delete previous entries as well as edit them if ...
0
votes
1answer
71 views

Filter categories/tags to display in multiple metaboxes for selection in back-end

My site uses a lot of categories and tags for author selection in the back-end. To make it more user friendly for authors I need to arrange the categories and post tags in numerous metaboxes for ...
0
votes
1answer
49 views

Custom post type - permalink

Is it possible to change the permalink of a custom posttype? I have a custom post type called "events", I have made a page called archive-event.php and this is reached by /event.php is it possible ...
0
votes
1answer
42 views

dynamically get post attachment while editing

I want to show a meta box on the post edit screen, that contains a list of the images attached to the post. I need the meta box to work for new posts as they are being created. It should update ...
0
votes
1answer
277 views

Add Standard Page Attributes Metabox for Page Parent

I have a custom post type 'product' supplied to me by a Wordpress eCommerce plugin that does not offer the option to change the Page Parent in the Page Attributes Metabox. I'd like to remedy that. I ...
0
votes
1answer
43 views

When editing a post with a custom meta box the values aren't displaying correctly

I followed this tutorial to create a custom meta box with a simple two option drop down. My code is below. The custom fields are saved when creating a post, and edit when I change the value and ...
0
votes
1answer
442 views

Repeatable custom meta fields

I am working on creating custom meta boxes for the back-end of WordPress. I would like to add a metabox with several fields, in my case an image upload and a text input, but with a button that can ...
0
votes
1answer
47 views

Meta Boxes causing Header errors

I'm attempting to move some meta boxes and custom post types to a plugin file (to survive future theme updates). One issue is that now, all my wp_nonce values are returning an "undefined index" notice ...
0
votes
1answer
39 views

why esc_url not working in smartmetabox

Have you ever tried http://www.wproots.com/ultimate-guide-to-meta-boxes-in-wordpress/ ? It's good classes to create metabox. But I'm having problem with the validation. I tried the sanitize_callback ...
0
votes
1answer
69 views

How to add all categories into an array and extract the categories names and use it with a custom meta box

Basically I need to add custom meta boxes to pages and one of this options must be a list of categories from previous posts. I've managed to add the metaboxes and wrapped the categories in a array, ...
1
vote
0answers
67 views

metabox / select custom post in custom post list to display metavalues only the selected cpt

So i have a "select post field" in a dropdown list to select "artist custom post" on a "gallery custom post" and i want to display the photos (from my gallery custom post) only on the selected ...
1
vote
0answers
40 views

How to prevent further updates of custom meta when using actions to set one meta based on another

I'm using rilwis' Meta Box plugin (see https://github.com/rilwis/meta-box) to add custom meta boxes to a custom post type. I then want to populate one piece of meta data based on the value of ...
1
vote
0answers
211 views

Getting jQuery sortable items in custom metabox

I've gottent this far: I have a list of featured image thumbnails loading into a metabox on my home-page template. I'm stumped: I'm looking to make them sortable with jQuery but I'm really new to ...
1
vote
0answers
62 views

Listing custom terms in custom post meta

I'm trying to list custom taxonomy terms (using get_terms) from within the custom post meta code (i.e., via the add_meta_boxes action). I am getting "Invalid taxonomy" return from the call to ...
1
vote
0answers
82 views

metaboxes disappear on saved pages

Ok I have a wierd issue with custom meta boxes that I am at a loss for. I am using this class <?php class ARIXWP_Meta { private $meta = null; public $postid = null; private ...
1
vote
0answers
81 views

My custom write panels won't save data. What am I missing?

So far I've been reading some tutorials about ways to create Custom Write Panels. It seems that none of them will really work without some bug. I'd like to discuss one of those tuts here: ...
1
vote
0answers
198 views

WPAlchemy: How to output values?

I am using http://www.farinspace.com/wpalchemy-metabox/ and have created my meta boxes and the data is being saved successfully (See below) but I don't know how to output these 'ingredients' on the ...
1
vote
0answers
47 views

How to list all tags as radio buttons in a meta box?

I tried to search this issue but I never found anything.. I'd like to put in post-new.php admin page a list of tags (all tags present in the blog) as radio buttons. How can I do that?
1
vote
0answers
232 views

How to reload a select box of posts dynamically?

I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ...
0
votes
0answers
27 views

Wordpress metaboxes sorting and replication

I am not an experienced developer with Wordpress. I'm working on the development of a wordpress app for a manufacturing process. Every product has certain no.of stages and a single stage can be ...
0
votes
0answers
15 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
0answers
42 views

Reload meta box content with AJAX

I want to build a meta box that contains multiple textfields which get filled if a submit button is pressed. The data is set by a function which should get called if the button is pressed. How can I ...
0
votes
0answers
33 views

Select Options Meta Data is Not Updating in Edit Meta Box

I have a Meta box with two user inputs 1: Text-field and 2:a Select drop Down options. I used following Save Method in mt Meta box and second part of the code belong to saving the Selected option from ...
0
votes
0answers
22 views

Return to Post Editing Screen after a bulk action from the Custom Meta Box

Trying to adapt Custom List Table Example plugin for my own needs. Here the page field is responsible for specifying the plugin page to which the form containing List Table posts to: <form ...
0
votes
0answers
20 views

Adding additional text fields and image upload to a Page?

I have a contact page: I would like to add an additional text field below the text editor and another image upload button. And then display it in the template as something like this: <?php ...
0
votes
0answers
31 views

How to display all values of a multicheck array if they are checked?

I'm really a rookie to PHP, i'm using the customfield fields&meta boxes plugin for wordpress. Normaly when i register a customfield, i display them by using: <?php if ( ...
0
votes
0answers
17 views

Display Term Metabox Only On Certain Term Edit and Add Pages In Admin

I have a simple metabox added to a taxonomy and in turn its terms, however I am looking for a way to only display the metabox on a single term of this taxonomy, is this possible? This metabox with ...
0
votes
0answers
102 views

Create multiple checkboxes in a metabox

I am trying to figure our how to modify this code so that it creates a checkbox for each entry in the meta_key. It is a meta box that will be used on the menu page. The meta_key has multiple ...
0
votes
0answers
27 views

Dynamically add Meta Boxes

Is it possible to create dynamic meta boxes? Let's say: I want some buttons to create columns. So i'd have the following buttons: 1 column 2 columns 3 columns and so forth If the user clicks "2 ...
0
votes
0answers
43 views

Using strtotime() and update_post_meta not saving

I would like to take a date entered in a meta box field, & convert it into a Unix timestamp (dd/mm/yyyy) and save it in the wp_postmeta table. But my code isn't working: function ...
0
votes
0answers
25 views

field of metabox is not visisible outside the function

I have a metabox with two static fields and one more field I add in ingredients_show_box function. All three fields are visible by $_POST when I save data. But the two static fields are visible by ...
0
votes
0answers
40 views

Have I structured my arrays correctly for this repeatable meta box?

I'm creating a meta box that'll have repeatable fields, when the user clicks a button to add a new field in the meta box. One of these repeatable fields is a drop down. I would like the dropdown to ...
0
votes
0answers
125 views

Need help on 3-level taxonomy dropdown

I have a code for 3-level taxonomy dropdown. It is working ok till I publish my post. On edit page It isn't showing corectly terms that I selected. $brand_taxonomy = 'county'; $taxonomy_name = ...
0
votes
0answers
32 views

Check Types custom checkbox and metadata when publish post

I´m using Types to create metaboxes with custom checkboxes to make some custom functions. The problem I have is with this function I created: function check_zone_tag(){ $postid = get_the_ID(); ...

1 2