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

learn more… | top users | synonyms (2)

1
vote
1answer
61 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
54 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
588 views

Parent Page and Breadcrumb URL's for Custom Post Types Not Working

What I Have Set Up I have three custom post types, they are named "brands", "careers", and "news". I have three page templates, they are named "page-brands", "page-careers", and "page-news". The ...
1
vote
2answers
5k 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 ...
1
vote
1answer
89 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
1
vote
2answers
28 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
1answer
43 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 ...
0
votes
0answers
18 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 ...
0
votes
2answers
220 views

WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]

I'm currently working with WPAlchemy class to create a metabox in a custom post type (Events from EventEspresso plugin more precisely). This metabox should be able to call the media uploader and ...
0
votes
1answer
75 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 ...
2
votes
1answer
75 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
90 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
141 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
1answer
701 views

save_post not working with attachments

I've made a Meta Box for Posts and Pages, and while testing added Attachments too. But, curiously, the hook save_post does not fire. $cpts = apply_filters( 'my_filter', array( 'post', 'page' ) ); // ...
0
votes
0answers
64 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
45 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 it'...
0
votes
1answer
24 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
70 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
24 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 ...
4
votes
4answers
2k views

How can i add some static text above the editor?

I created a custom post type and i want to display some text on the editor page below the title and above the text editor. How can i do this? I tried using add_meta_box, but i wasn't able to move it ...
7
votes
2answers
599 views

How to make open/closed and hidden/shown metaboxes status saved on a per-post basis?

My real problem is a bit complex, so I'll try here to abstract it and keep it simple. I'm working on a custom app based on WordPress. I registered a custom post type, let's call it "people" where I ...
1
vote
3answers
2k 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
1answer
21 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
25 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
18 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
13 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
48 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
32 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
51 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
2answers
398 views

Second select list values are not saved after clicking update

I have a select list in a metabox which value is saved successfully after clicking "Update" when editing post. Of course, the values are custom taxonomies. But i don't know how to add another select ...
0
votes
0answers
48 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?
1
vote
2answers
7k views

Woocommerce with metabox plugin

I'm using woocommerce as my e-commerce solution and the metabox plugin ( http://www.deluxeblogtips.com/meta-box/ ) to make my life a lot easier when implementing meta boxes. I've never had any issues ...
1
vote
1answer
122 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
0answers
69 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 ...
2
votes
2answers
2k views

Conditional Meta Boxes

I am creating multiple meta boxes in WordPress, and I want the user to be able to toggle certain boxes on or off. So, they click a radio button (in a separate meta box), update the options, and an ...
0
votes
2answers
25 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
24 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
26 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 ...
15
votes
6answers
13k views

Add a Meta Box for uploading a SECOND Featured Image?

I'd like to add a meta box to my posts and page editor that will allow me to upload an image and use it as sort of a SECOND featured image. The idea is that my client will be able to upload an image ...
0
votes
1answer
149 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
1answer
48 views

Category Template - to be editable from the backend?

I have different categories that includes posts of the category. I want to add text and images before or after the posts of the categories are displayed on the frontend. I want to solve this via ...
0
votes
0answers
170 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. ...
11
votes
4answers
16k views

How to set default screen options?

I'd love to be able to hide meta boxes using screen options, instead of removing them or restricting them to user roles, the goal is to just "uncheck" the meta box for the user. I see how this would ...
0
votes
2answers
136 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
0answers
20 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
34 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
35 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
36 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
1answer
83 views

How do I make this Metabox show current DB value?

<p> <?php $options = get_option( 'city' ); $names = explode( PHP_EOL, $options ); ?> <label for="City" class="timeshare-row-title"><?php _e( '...
0
votes
0answers
33 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 ...