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

learn more… | top users | synonyms (2)

0
votes
0answers
7 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
1answer
16 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 ...
1
vote
1answer
19 views

Display custom post on home page based on a metabox selection

I am trying to display an post to my home page based on a selection. What I mean is in the backend I have a custom post that has a metabox labeled Assign to Home with a drop down that has a selection ...
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
1answer
13 views

How to Arrange Support => Thumbnail

Good Afternoon, I've created a CPT that mainly uses Featured Images, I would like to know how to rearrange this box to appear in the center where 'content editor' would go instead of the right ...
1
vote
0answers
19 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 ...
0
votes
0answers
7 views

Multiple meta boxes class won't save [closed]

I'm trying to add 2 custom meta boxes to my posts. For efficiency I decided to make a class and run everything through it. This is my current result: $postintro = array( "meta_id" => ...
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
65 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
1answer
25 views

saving dropdown menu data on custom post type

I'm following this tutorial on how to make a custom field. I already used it before and it worked, but I only did it for text inputs. Now I'd like to make a drop down menu and I'm unable. The thing ...
0
votes
1answer
20 views

Problem in custom meta boxes

I am trying to create a custom meta box "Set your mood" which will display the mood of user but unfortunately meta box is not saving value. Please help This is my code <?php /** * Adds a box ...
0
votes
1answer
8 views

Default taxonomy 'post_tag' added to CPT managing by custom role : nothing in the metabox

I've created a Custom post type, which a custom role can manage : it has only the capabilities for managing this CPT. When registering the CPT, I've set the argument : 'taxonomies' => array( ...
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
1answer
23 views

How can i get multi checkboxes value in metbox?

I make list of check boxes by WordPress meta-box and i can not get this value in my theme. i can get my text value with this code <? echo get_post_meta($post->ID, $prefix . 'text', true); ...
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
14 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
8 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
0
votes
1answer
24 views

Metaboxes - why they don't render php in expected manner?

I was playing with metaboxes following one tutorial. I came to a point where I could add any code and it would be displayed in the metabox. I tried echoing something and it was ok. Then I wanted to ...
0
votes
0answers
54 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
55 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
19 views

Ridiculous problem with CDATA [duplicate]

I'm using this great metabox plugin: https://github.com/WebDevStudios/CMB2 I created a repeatable field (with only one textarea that you can duplicate) It's working great. Now, I want to export some ...
0
votes
1answer
42 views

How do I add an item to the WP admin menu?

I want to add an item to my WordPress admin menu - "News" - it's to contain a list of articles written about my company. Each article will consist of the following metadata: Headline Date Link to ...
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
17 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
1answer
11 views

Issue with file paths after porting metabox from main theme to child theme

Ive got a custom metabox written for another site that im porting over, originally this was written directly onto the theme (rather than using a child theme). The metabox itself was developed using ...
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
3answers
42 views

Custom meta box in custom post type not working

As a wordpress newbie I am having problems in adding custom meta box in my "slider" custom post type which I used in some old wp theme. I'm getting a warning: Warning: call_user_func() expects ...
1
vote
1answer
36 views

Are there any standard HTML markup for metabox?

The add_meta_box HTML callback is rather low level that we need to code the HTML by ourself, e.g. echo the HTML form markup function myplugin_meta_box_callback( $post ) { // Add an nonce field ...
0
votes
1answer
64 views

Set Default Option Value as Blank for Meta Box

My custom Meta Box has a drop down field, but how do I set the default Option Value to be blank? It is currently populating via the CPT's meta_value, but I'd like that to change. Here's a screenshot ...
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
67 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
1answer
24 views

Date format - Meta Box plugin

I am getting a date using the plugin Meta Box. The output is: "2014-10-30" and i'd like: "30/oct/2014" There is a way to change the default format? This is the register of the metabox: $prefix = ...
0
votes
1answer
53 views

Call the latest posts from a custom field group to be displayed on front-page

i have this custom Metabox field group from https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress/wiki/Field-Types#group containing 3 fields and displayed on the Products page ...
0
votes
1answer
21 views

Error in get post by met_key

I have this code, $type = get_the_ID(); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $units3 = new wp_query( array( 'post_type' => 'units' , ...
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
1answer
26 views

Show button if meta box has content, else hide

I have a meta box setup that allows the article creator to post a link to the forum topic of the same article subject. I display this meta data with the following: <div class="discuss"> ...
0
votes
1answer
25 views

Moving meta boxes in admin

I have added tags to my custom post type and by default the tag meta box appears under the 'publish' meta box on the right. I can manually drag the meta box to reposition it under the rest of my meta ...
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
1answer
62 views

Multiple wp_editor instances in custom post type using Ajax

In a custom metabox, I need to generate a tinny wysiwyg wp_editor everytime we click on a button.. I struggled a lot with this and couldn't achieve it. The js $.ajax({ url: ajaxurl, data: ...
2
votes
2answers
90 views

Consolidate Metaboxes into 1 Big Metabox

I have a post type with 7 (count it SEVEN!) taxonomy tag boxes. By default, the only options to display these metaboxes are - 7 small metaboxes on the right side stacking or turn these tag metaboxes ...
0
votes
0answers
45 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
62 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 ...