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

learn more… | top users | synonyms (2)

0
votes
0answers
22 views

custom meta boxes to dispay for specific categories

I'm new to WordPress and I am learning everyday. Being a newbie I am not being able to handle / solve a problem. I am currently working on a lighting website that will sell light bulbs, ballast and ...
0
votes
0answers
8 views

Redesigning the add new post form

This is a learning exercise. I'm trying to redesign the form that is rendered when a user tries to add a new post via the administration panel. So far i've tried messing around in ...
-1
votes
0answers
11 views

Creating Posts to Posts custom admin box in same style as the default boxes

The Posts to Posts wiki has a page on Custom admin boxes. But this page only provides a very basic example. An ideal starting place would be a custom metabox that appears identical to the plugin's ...
1
vote
0answers
9 views

Render P2P metabox per taxonomy term

I would like to display a Posts to Posts connection registration metabox for each term in a custom taxonomy. The post connection candidates will be split across the metaboxes depending on their term. ...
1
vote
1answer
17 views

Best Way to Remove WordPress Meta Box based on Post Status

I recently wrote a WordPress plugin called Organize Drafts, which creates a custom taxonomy called Draft Types (using the slug lswdrafttype). This taxonomy is used to organize drafts of pages and ...
0
votes
0answers
14 views

WordPress Meta Box + WooCommerce - Display for specific product type right away?

So I've created a custom product type 'MY_PRODUCT_TYPE' and a meta box and that displays for this product type: function MY_PRODUCT_TYPE_meta_box($post_type) { $post_types = array('product'); ...
1
vote
0answers
18 views

Show Custom Post Type meta boxes only on Page Edit

I've went through the laborious process of creating the CPT. I see it on the sidebar of my WP install, I can add new, save data, and on frontend I can output the data. Is it possible with WP to move ...
0
votes
0answers
17 views

How to save custom meta only for review data to see only in “Preview Changes”, not the actual post in the front end

I am trying to add custom meta and see at "Preview Changes". I can see the changes but also changes apply to the actual post at Front end. I want the changes will update to the actual post when it ...
0
votes
0answers
17 views

Wrap html tag around elements if condition is met

I have a metabox displaying a radio button. When this radio button is checked I want to add a wrapper around some code. A simplified bit of code to illustrate what I have at the moment: <div ...
0
votes
0answers
17 views

How do I hide a meta box properly?

I want to hide the main meta box where you put the text in for the page, if a condition is met, but then if a button is clicked, I want to show it. I used jQuery to do this but the style gets messed ...
0
votes
0answers
15 views

how to display meta box data on page?

i have this function in my function.php and i am trying to display the meta box data on my page. Can not do so. function designation_meta_box($post){ wp_nonce_field( ...
1
vote
1answer
21 views

Push metadata in array

Applying meta keys in search result Since I need to take on a different approach to get my data in javascript from wordpress, I am trying to apply (as follow up on my post earlier today ...
2
votes
0answers
105 views

How to remove items in quick edit panel-Function for remove items in wordpress quick-edit panel?

i need to remove some items in the quickedit panel .Let me know is there any way to hide product attribute list from quick edit window of product page in woocommerce? Currently iam doing this via css ...
0
votes
0answers
13 views

Search Post Types and the Meta Boxes

I have meta box called (orginalday), This i will save the post day when the user write post and save it in (pending), And i have form that have 2 input type to search post from day to day. So i need ...
1
vote
0answers
31 views

Visual/Text tabs in wp editor Not Showing

I have a wordpress website that i have added custom meta boxes to the post. Custom meta boxes have an editor using wp_editor(), but the editor is refusing to show the visual/text tabs on the editor ...
1
vote
1answer
34 views

Cannot save CPT meta box

I swear I have tried every tutorial, and looked through every Stack Overflow thread to figure out what I'm doing wrong... I'm creating a custom wordpress backend for a church that includes a place for ...
1
vote
0answers
33 views

Admin Dashboard with Custom Tab for Client

I am trying to create a basic Tour Date widget. When the user clicks on the Tour Date Tab from the admin dashboard I want them to be presented with five fields. Date Venue City, State or Country ...
0
votes
1answer
25 views

Change Post Title Edit Box

When editing a post, the title field displays the placeholder "Enter title here" (it's actually a label element that's made to look like a placeholder attribute, but whatever). I have a custom post ...
1
vote
2answers
21 views

Metabox will not save

I'm trying to create a metabox in a custom post type. When I attempt to insert information into the Listing Price box and update the post, the information is not saved and disappears once the page ...
0
votes
0answers
12 views

Button inside a custom meta box which deletes post meta

I have a custom meta box which allows a file upload. I want to add a button for my users to be able to remove the file (or at least clear the meta data for it). To delete the post meta, I know I can ...
1
vote
1answer
33 views

How to generate a featured image from a video embeded in a metabox

I have a metabox that allows me to add videos from Youtube and Vimeo on posts with video post format. I am now looking into automatically generate thumbnails for these post with video post format. ...
0
votes
1answer
33 views

Update caption for metabox gallery images

Just wondering how to make the caption on my metabox gallery images updatable. I have the caption on a textarea so it can be easily updated. I can change the contents of this textarea, cant seem to be ...
0
votes
1answer
33 views

How to show post format gallery metabox image caption in the post front end

After getting my images through a metabox for a gallery post format I have the following code to show them on the post front end: <?php if ( !empty( $images ) ) { foreach ( $images as ...
0
votes
1answer
50 views

Get image captions for images on gallery post format metabox

I have a post format gallery. I have created a metabox to add my images: function mytheme_show_post_gallery_metabox( $post ) { wp_nonce_field( 'mytheme_post_gallery_metabox', ...
0
votes
0answers
32 views

Inline Styling a div from a Custom Metabox

I am building a custom page with repeatable metaboxes that controls content, images and background image. I am having issues when it comes to displaying the background image as an inline style. As of ...
0
votes
0answers
27 views

Custom metabox with radio input not saving

I have a problem with saving data from a custom metabox, with a radio input type. I really don't know where the problem is, i have another metabox, similar to the one that is causing problems, and ...
0
votes
1answer
18 views

Why loop renders only last metabox from array? [closed]

The auestion is, why my foreach loop renders metabox only with information from last array? The code of class: class CusomMetaBox { /** * Hook into the appropriate actions when the class is ...
0
votes
1answer
17 views

Position right sidebar metabox right below the publish metabox?

I have a custom post meta box that I want to put in the right sidebar. When I set the priority to high it appears in the number 1 spot in sidebar above everything. If I set to core it appear at the ...
0
votes
0answers
15 views

Creating a metabox with media uploader for flexsilder gallery

I am trying to come up with a way to create a metabox on the post admin pages under the Wysiwyg editor in WordPress to allow me to use the WordPress media uploader. So, the goal is to have a metabox ...
0
votes
1answer
18 views

Delete custom post type metadata without deleting the post in admin area

I'm working on a plugin for a client and they need the ability to attach a couple of PDFs to a post as metadata. The client will need to occasionally update these attachments but without deleting the ...
1
vote
1answer
18 views

Troubles with saving metabox

So I used to have a few metaboxes, which were labelled poorly (meta_1, meta_2) and I went about renaming them to make it easier to understand for maintenance. When I went back to see how other users ...
0
votes
1answer
13 views

Meta Box - Javascript Datatable

Hello my fellow WP Developers, I am running into a wall with a custom theme I am creating for a personal project. Background It's a website that will be used by users that collect a specific ...
0
votes
0answers
12 views

How to add all the number given in field of metabox of wordpress?

I have added a field called number of question in post meta box. THe feild name is no_of_question. To get the number of question i can do echo get_post_meta($post->ID, $field['no_of_question'], ...
1
vote
1answer
14 views

custom-meta-box checkboxes from loop won't save

I tried to create a custom meta box with checkboxes, generated from a loop of a custom-post-type. I found this example here on WP Development, but I can not figure out why the boxes won't save. My ...
0
votes
1answer
27 views

Get content of publish box

is there any way how to safely get content of the publish box? For example via some hook or filter? I wasn't able to find anything. I need to place in in some different place.
1
vote
1answer
18 views

How to remove “publish metabox” from each post type

Is there any way, how to remove "Publish metabox" from each post type (post,page,custom_post_type) anything. I know how to remove it manually, for each post type, but how to do it globally? ...
0
votes
1answer
20 views

Get meta fields by meta box id

I created a meta box using this function: add_meta_box( $id, $title, $callback, $screen, $context, $priority, $callback_args ); How can I list all created meta boxes with their meta fields?
0
votes
0answers
30 views

Admin - Dequeue unnecessary scripts/styles

Currently, I'm working on a plugin where I use custom post type. In each post type edit page I've got meta data fields to set advanced functionalities. However, because the interface needs to take ...
1
vote
1answer
57 views

get_post_type() in in_array doesn't work for some reason

I am trying to create some function for metaboxes and some reason i can't get get_post_type to work in in_array. Everything else seems to work in testing but in_array nope. This is the function that ...
0
votes
2answers
23 views

Create metaboxes based on custom post type

I am using Metabox to create metaboxes for Worpdress Post and it works like a charm. Now I have installed MetaBox Custom Post Type Extension for create CPT and it works good to. I have Types plugin ...
0
votes
0answers
22 views

Create meta boxes globally

I am trying to create a smallish plugin for my needs where I can be able to add some information about people only visible to back-end - I don't want to have it like a post visible to public, and ...
0
votes
2answers
20 views

Access meta box checked value in another file

So basically I need to access the value of checked() in order to load diferent template parts in my single.php file. This is my meta box: <?php function ...
0
votes
1answer
69 views

Load different single.php templates according to post layout selection

I have created a way of choosing different layouts for posts(sidebar right, sidebar left, full width). This is done through a meta box that displays radio buttons with an image for each layout type. ...
0
votes
0answers
89 views

How to make multiple upload meta boxes in custom post type

First question here. Been spectating for a while. Great community. I've been writing a simple plugin to add an upload metabox to my custom post type 'video'. I can make the first upload field work. ...
0
votes
0answers
11 views

Conditional metabox jquery

I have a metabox where I am trying to hide a div inside of it whenever a option is selected, I also have another area but with radio buttons (separate div). Issue The issue I am running into is the ...
1
vote
1answer
30 views

Is it possible to sort metabox teaxtarea values?

Textarea is on an options page, is it possible to sort the values within that textarea by alpha? I looked in the Codex but do not see any mention of sorting these values.
0
votes
1answer
27 views

Create a select metabox that the user can pupolate?

I have been working on a plugin that uses text area metaboxes on an options page to populate drop downs in the CPT area. I was with the help of some others able to get the list to show in the select ...
0
votes
1answer
30 views

Display custom meta on page that has been check in custom post type

I have created a custom post type (cpt) and within each post type is a custom meta field. This custom meta field displays all the pages that can 'checked'. Code to generate the custom meta box: ...
0
votes
0answers
20 views

Add Postbox for Featured Image Caption in wp-admin/post-new.php

I'm newbie here. I want to add postbox / meta box in my wp-admin/post-new.php page. Someone please help me. Last days i have try to search it in any tutorial, but i cannt solve it. I try to modify ...
0
votes
3answers
37 views

Where WordPress Stores The Custom Fields Values

I have a custom Post type called product which has a Methabox with a Custom Field Called Price I entered $ for some of the products and I need to remove them from the WP table. Now can you please let ...