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

learn more… | top users | synonyms (2)

2
votes
0answers
67 views

Check for and enforce unique value in user-entered custom meta field in WP Admin

I am trying to figure out how, on a new or edit post screen, to allow the user to enter a custom meta item, BUT force it to be unique. Ideally the process would work like so: Contributor logs into ...
1
vote
0answers
15 views

Add custom buttons with custom actions in Edit Post screen in WordPress?

I am creating something for a client and I have a Class that I created with a Custom Post Type called 'PuSH Feeds' and when the user adds a new post and publishes it they can then click on one of two ...
1
vote
0answers
112 views

adding checkbox to meta

I have a custom post type that is working well and displaying/saving all the text fields. The issue is now I need to add 4 check boxes but not sure how to do that. Any ideas? function fitter_info() { ...
1
vote
0answers
35 views

cannot grab post meta from extended Walker_Category class properly

Trying to show some custom post meta inside an extended Walker_Category class. I am very inexperienced with Object Oriented Design so this issue is quite difficult for me to solve I am essentially ...
1
vote
0answers
24 views

Page template no longer exists - metaboxes won't save

Ok, this is a weird one. I first experienced this on an older theme that I developed - I assumed I had some buggy code in there somewhere, but couldn't figure it out even with the help of another ...
1
vote
0answers
39 views

How can I edit the 'Most Used' tab in the categories meta-box to show another custom taxonomy?

The 'Most Used' tab in the categories meta-box is the one that can be seen in the Edit Post section. I want to replace the Most Used tab, with a tab that lists another Custom Taxonomy, or edit the ...
1
vote
0answers
82 views

Undefined index error when saving content on metabox

I am trying to debug 'undefined index' errors on the WP backend when debug is set to TRUE. The offending lines are: if ( !wp_verify_nonce( $_POST['pdwt_meta_noncename'], plugin_basename(__FILE__) )) ...
1
vote
0answers
30 views

Including a meta box on a plugin page

I want to include the 'Comments' meta box (the one usually seen on the post creation page) on my plugin's admin page. Is there a way to do that? I am aware of how you can use add_meta_box() to add a ...
1
vote
0answers
89 views

Category Search functionality on category metabox (wordpress admin)

I have lots of categories on my blog site. When I add new post and select category, I need to scroll down to find the category. Is it possible to add a search category functionality in category ...
1
vote
0answers
55 views

Resetting admin post form on JS validation fail

I've got a custom plugin with a metabox and dynamic form (the user can ask for more elements of the form), with jQuery Validation plugin working great. The problem is when the validation comes back ...
1
vote
0answers
51 views

Retrieving Meta from Image Attachment

I currently have added a meta box to the media library popup using the following: // ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY function AddLibraryFields( $form_fields, $post ) { ...
1
vote
0answers
86 views

Custom Sortable Meta Boxes

I've looked all over and can't seem to find what I'm looking for (probably because I don't even know the terminology for what I need to do). I need to make some custom meta boxes that are similar to ...
1
vote
0answers
585 views

wp_dropdown_categories in custom post type with custom taxonomy

I have a custom post type with its own taxonomy, basically 'show venues' is the post type and venue-regions is the taxonomy. Seeing how a venue cant exsist in mutiple regions, I've removed the ...
1
vote
0answers
143 views

wp_editor loses data, perhaps an html_entity_decode problem?

I have a custom meta box that I created with WP Alchemy. It has two wp_editor fields. These fields are behaving very strangely. If I just type simple text into them, they work just fine. But if I ...
1
vote
0answers
276 views

Set default value for radio button in WP Alchemy custom meta box?

I'm using the WP Alchemy Metabox PHP class (www.farinspace.com/wpalchemy-metabox/) to add a custom meta box with a radio select to a custom post type. The code below shows the code I'm using for the ...
1
vote
0answers
50 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 ...
1
vote
0answers
61 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
85 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
126 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
94 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
305 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
59 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
361 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
4 views

user profile how to make site field required

In the user profile page there is a site url text box. how can i adjust the site input field to required? how can i validate that it is true site? thank u
0
votes
0answers
8 views

When post is updated, custom metadata in text area field is overwritten

I have set up 2 new post meta fields in order to add functionality to a custom post type. The custom fields generally work as expected, with a couple exceptions. I set up a checkbox (called ...
0
votes
0answers
7 views

changing specific text in the categories meta box

I'd like to customize the categories meta box (the one you see when adding or editing a post). I need to rename the word "Categories" and "Category" to something else, please see the screenshot for ...
0
votes
0answers
7 views

Meta Box size issue. How to resize it properly?

I cant figure it out how to resize meta box . I did try to add something like rows="5" cols="60" but no luck. With width and height box resizes but when text fills the box it continues to the right it ...
0
votes
0answers
29 views

A correct hook for saving meta boxes data

Nothing happens when I do the var_dump() in a callback on post save. Here are the hooks I've tried: save_post as shown in the codex pre_post_update as suggested here wp_insert_post_data found in ...
0
votes
0answers
23 views

Does a codex exist for creating meta boxes in taxonomy

I am looking for WordPress official documentation to create meta boxes in a taxonomy. There are many tutorials, but each of them is completely different. I don't want to use any plugins. I need the ...
0
votes
0answers
25 views

Multiple Checkboxes Metabox

My goal is this: I've added an additional metabox to my post page. Within this metabox there are multiple checkboxes. Each checkbox is associated with a person's name. The idea is that, if a person ...
0
votes
0answers
59 views

Adding jQuery datepicker to Custom Post Type Metabox

I've created a custom post type metabox which displays and functions fine. The problem is with the datepicker it just doesn't seem to work, when clicking the metabox youre able to type in it rather ...
0
votes
0answers
16 views

Pages checkboxes in a metabox

This is regarding the post reply you made here: Listing Pages With Checkboxes In a Metabox (and saving them) I am also trying to implement the same with the same code you posted, on function.php. But ...
0
votes
0answers
16 views

How do I make multiple image uploads with WordPress metabox?

HelloI created an Image upload with WordPress Meta-box, but it works only with "JPG" extension By this code function add_custom_meta_boxes() { // Define the custom attachment for posts ...
0
votes
0answers
19 views

Reusable Custom WordPress Meta Boxes tax_select field into repeatable fields

i'm using this https://github.com/tammyhart/Reusable-Custom-WordPress-Meta-Boxes and when i try to insert taxonomy select into some repeatable field i have some trouble and no options are displayed. ...
0
votes
0answers
13 views

Options.php metabox options submit hook

Good day ! Please advice what hook to use, when user click submit button at options.php page in metabox with settings_fields ? Thanks ! //Vladimir
0
votes
0answers
53 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
0answers
54 views

custom field meta-box with dropdown/autocomplete

Is it possible to have a custom metabox with the ability to either: enter a new meta_value in a certain meta_key OR choose from a list of the existing meta_keys, from a dropdown/select-box, ...
0
votes
0answers
37 views

Display a post based on its metabox selection

I created a client portal where a client can view their projects. I have two user accounts "Clients" and "Administrator. Both clients and administrator are redirected to the frontend of the site to a ...
0
votes
0answers
16 views

I'm able to export a post type with all items + metadata, but not seeing it when importing

I'm trying to export some of the post types that I have on my wordpress website. These post types have metaboxes with data. I am able to export the post types with that data succesfully. The problem ...
0
votes
0answers
15 views

Metabox creating another meta group / slide each time page is saved / updated

Ive got a metabox as part of a theme that allows you to add multiple pieces of content to a page, by default there is one content space / slide, but at the bottom of the metabox there is an option to ...
0
votes
0answers
23 views

save_post is not firing when I only edit custom meta fields

I've come across the action hook save_post few days back and I like to take advantage of it. I've custom post post type "Property" with Meta fields associated with it. The problem is that when I ...
0
votes
0answers
35 views

register_post_type, add_meta_box, add_rewrite_rule

I'm working on custom post type with some custom fields setup using add_meta_box. register_post_type("sample"); add_meta_box("sample_type"); add_meta_box("sample_brand"); I want to get it working ...
0
votes
0answers
66 views

How do I get attachment_id?

This is trivial, but I can't really find an answer, I've seen some hints like search in database etc., but this is madness. Basically, I have a metabox with upload button that allows you to upload or ...
0
votes
0answers
31 views

Add different meta box based on taxonomy

i created a plugin with a custom post type. I added a new custom taxonomy also under that post type . How can i add the meta boxes based on different taxonomy. if( is_object_in_term('', 'name of ...
0
votes
0answers
32 views

WordPress Custom File upload meta box saving 0 bytes as File size

I am trying to save custom images with the custom post type , so i added a custom meta box for file upload . it seems it is working fine but when i upload any file it save the file size is 0 Bytes . I ...
0
votes
0answers
41 views

WP_Meta_Query object with conditionals

I have a custom post type (Books) that is connected with a second custom post type (People). The Books CPT has an additional author meta box that if checked, it should appear on the additional People ...
0
votes
0answers
43 views

Get a “featured” taxonomy term using a custom field checkbox

I'm using Advanced Custom Fields to add a true/false checkbox to the taxonomy management screen. I want to show (a) the most recent term in the taxonomy that (b) has the checkbox selected to true. I ...
0
votes
0answers
20 views

selected into metabox doesn't show up

I have been using the very known metabox switch code but something weird happens. In the metabox, only checked boxes have been saving. The selected field doesn't show up the selected option ...
0
votes
0answers
32 views

Custom Post Type Meta Box Content Showing In Search Results

When I search my site it doesn't seem to pick up the content I have in my custom post type meta boxes. This is the code for some of the meta boxes in my function.php file. // Add the Course Meta ...
0
votes
0answers
61 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...