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

learn more… | top users | synonyms (2)

1
vote
0answers
17 views

How to write an efficient metabox with repetitive fields [duplicate]

Possible Duplicate: Create more Meta Boxes as needed I’m having a hard time to write an efficient code for the below Metabox. Since I do not want to use any third-party class, I’m trying to ...
2
votes
1answer
148 views

My metabox class

I'm using the class My Metabox class *-- Custom Post Init Begin --*/ function mypost_types(){ register_post_type('video', array( $labels = array( 'name' => __( ...
0
votes
1answer
56 views

Understanding WordPress' post type support

I was hoping if someone could help me better understand WordPress' post type support. remove_post_type_support( 'post', 'author' ); Above in example doesn't seem to actually remove the support, ...
1
vote
2answers
109 views

How to activate “Description” metabox for menu item programmatically?

I'm creating custom wordpress theme. How can I enable "Description" metabox for menu items (on nav-menu page) by default programmatically?
0
votes
1answer
81 views

Need Advice to Working with Custom Post Meta

I'm working with some quiz script which is using javascript to init the script, the data structure which I working on is look like this var quizArray = { 'contents': [{ 'question': 'First ...
0
votes
1answer
169 views

dynamically add a custom field or metabox to custom post type [duplicate]

Possible Duplicate: Create more Meta Boxes as needed I am creating a plugin that registers a Custom Post Type. Let's call it "Cars". I am looking to be able to add custom fields(or ...
3
votes
0answers
713 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 ...
-1
votes
3answers
2k views

Sizing textarea field in custom metabox

Here's the code for a custom metabox. Very simply, how would I resize the textarea box? I'd like to add an expression such as cols="50" rows="5". // Echo out the field echo '<p>Enter the ...
0
votes
1answer
107 views

loop through custom post-type with two meta_keys

I have a custom-post-type named my_project. This post-type has two meta-boxes: is_featured is_featured_position So essentially in my backend of the post-type I can set a checkbox for is_featured ...
0
votes
3answers
365 views

How to select one major category (or custom taxonomy) for a custom post type?

I've created a hierarchical custom taxonomy (genre) and want to use it for a custom post type (radio station). But I don't only want to assign some genres to a radio station. I also want to be able to ...
1
vote
1answer
102 views

Adding content to a taxonomy metabox

I want to add some custom content to the default metabox for a custom taxonomy. Ideally I'd be able to insert this content above the tag cloud where it says Choose from the most used [tag]s. Is there ...
3
votes
1answer
131 views

Remove unusable metaboxes in nav menu management screen

When you visit wp-admin/nav-menus.php and there is no menu you get a set of metaboxes you cannot use. The only thing they do is drawing attention away from the Create Menu dialog. I want to hide ...
0
votes
1answer
45 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
74 views

Function to return values from metabox

I have created two custom metaboxes using the Meta Box plugin for my cpt called books, and I am confused how to output the values. The values need to be used in sperate places in one of my templates. ...
8
votes
3answers
3k views

Passing error/warning messages from a meta box to “admin_notices”

I have a simple meta box that updates the post custom fields (using update_post_meta()). How can I send a error or warning message to the next page after the user publishes/updates the post and ...
9
votes
2answers
2k views

Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?

I need to create a custom post meta box(es) for my custom post type "Slideshow" (this post type is already created). Each metabox will hold the content in each slide slide and save it to ...
5
votes
1answer
156 views

Best practices for meta box placement?

I was wondering if there were any cut and dry rules to placing meta boxes? I have a meta box for a custom post type for a TV series that holds extra information for said series: when it began airing, ...
1
vote
2answers
285 views

Using My-Meta-Box-Class plugin, how is 'Date' value stored?

I've created some custom fields in a custom post type using the my-meta-box-class plugin which comes with a built in 'date' type of meta box input. I'm having a hard time ordering my custom posts by ...
0
votes
0answers
185 views

add_meta_box to attachment or edit media in admin [closed]

is it possible to use add_meta_box or similar for the attachment edit page? Need to add quite a lot of custom fields/functions. function reference says no but seems odd that we can't or that there's ...
1
vote
2answers
3k views

Upload multiple images in a custom metabox

I am new to theme development. I am trying to create a custom metabox that has the ability to upload a image. I am doing this on a page not a post. I want to output the images (multiple) onto the page ...
0
votes
1answer
142 views

How to make remove display none to this div container in post meta box?

I am adding meta box via add_meta_box hook but it is not showing in the admin panel, I double check the source code and it seems hidden because of this line: <div class="postbox-container" ...
9
votes
5answers
4k views

meta_query with meta values as serialize arrays

I'm working on a project in which I'm creating a custom post type and custom data entered via meta boxes associated with my custom post type. For whatever reason I decided to code the meta boxes in ...
-1
votes
1answer
309 views

How to add standard wordpress post_submit_meta_box at front end? [closed]

I need to use wordpress standard post_submit_meta_box at front end. I registed the box in a class, then, at front_end on the posting page, I added all required wp post API php files. My codes doesn't ...
3
votes
6answers
1k views

Re Order Editor to be after meta box

i want to reorder stuff in a custom post.. i got the meta box and editor working 2ghter but currently the editor is above the meta box and i need it to be the other way around.. This is the code for ...
2
votes
6answers
2k views

Dynamically Creating Meta Boxes

So I was wondering if it's possible to dynamically create meta boxes in the post admin. I have a lot of data but don't want to hardcode every meta box needed in functions.php. An example would be a ...
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 ...
0
votes
1answer
67 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, ...
0
votes
1answer
95 views

Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?

I'm trying to implement AJAX into my post edit form in order to hook a custom wp function into a link click. So far I've been able to register my custom js file into my admin header. However when ...
0
votes
1answer
313 views

Invalid file type when using wp_upload_bits to upload PDF to a custom post type

I'm trying to upload a PDF file for a custom post type called Products using wp_upload_bits. I'm only doing this in my wp-admin. I don't want these files added to the media library, I just want to ...
0
votes
2answers
95 views

Get all meta boxes values

I want to list all the values of a custom metabox in a custom post type. Here is the code to get the one meta box in a single post <?php echo get_post_meta($post->ID, 'institution_location', ...
1
vote
1answer
164 views

Checking if $_FILE isset for an array of file upload metaboxes

I have been struggling with this for almost 2 days with no avail. I have a custom post type of PRODUCTS that has a group of metaboxes for uploading PDF files in the wp-admin. I've created the ...
1
vote
0answers
83 views

Custom Meta Box white screen [closed]

I'm trying to create a simple Custom Meta Box for a film post. I need a text box for Title and Director and a textarea for Description. Everything seemed to working until I added the textarea, I ...
2
votes
1answer
204 views

Remove metabox from specific page template in admin

I would like to programatically remove some meta boxes when a user is editing a specific page in the admin. The page itself is using a template (tpl-about.php). I know I can remove all meta boxes from ...
1
vote
2answers
4k views

Custom Post Type Metabox - Not Saving

I've added a custom post type, which is working great; I've also added two metaboxes, which appear to work well, but the content in them always disappears after a few minutes. If anyone could help ...
1
vote
2answers
369 views

How to Create an Image Upload Box for Custom Posts?

Is it possible to have an image upload box in a Custom Post Type? I would like the user to be able to upload specific images just for the CPT.
0
votes
1answer
202 views

Custom metabox with App Store / Google Play links

I've got a issue when trying to setup our app portfolio. (have a look at our portfolio page) Whats going on: I created a custom post type with 'apps'. Every post I'm going to create is a project we ...
5
votes
2answers
717 views

Add the sidebar/widget editor to the post edit screen?

There are (among others) two common ways of customizing the sidebar on an individual post: Create a new sidebar for the post, using code or plugins like Custom sidebars, WP Custom Sidebar, Per Page ...
3
votes
1answer
121 views

Adding an assisting editor box to Post page

I run a multiple author platform and to improve the moderation, I want to add a couple of assisting editors. I want to add a custom box to the Post page where the assisting editor can confirm which ...
0
votes
1answer
178 views

How to Convert Custom Fields from Text to Array?

I want to convert my old post data containing custom fields that are stored in a text format like : name , url $ name, url $ name, url etc. I want convert that data and store the new data as an ...
2
votes
1answer
378 views

How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?

My website allows uses to post posts of a custom post type ("place"). I would like to display the same "Categories" meta box seen in WordPress dashboard when you add or edit a post on frontend: ...
3
votes
2answers
108 views

Block metabox - No expanding, no moving around

I would like to make metaboxes as fixed elements, removing the expand function and the drag-and-drop function. Any ideas?
1
vote
1answer
119 views

One metabox for multiple post types

I have this code function add_custom_meta_box() { add_meta_box( 'custom_meta_box', // $id 'Custom Meta Box', // $title 'show_custom_meta_box', // $callback 'page', // $page ...
0
votes
1answer
76 views

Extending a CPT by Created by another plugin

I'm using WooCommerce for my store, and I need to be able to extend the Coupon post type... I need to add a selectable attribute of membership_term ... How do you extend a CPT created by another ...
0
votes
3answers
225 views

Custom metabox translation

I have created a custom post types and added some custom metaboxes and now I am wondering witch translation plugin I use for my site? I don't have experience with none of them, so I don't know who ...
1
vote
1answer
118 views

Add script to footer - on post editor

How do you add a script on the footer of the post editor ? I'm adding a meta box under the post editor and I need to include a javascript before the closing body tag (on the footer) How do I achieve ...
0
votes
1answer
65 views

populate array with posts

I want to generate an array of custom post types to add it to a options array. I'm doing this to show a checkbox group populated with custom post type. I have this array: 'options' => array ( ...
0
votes
1answer
368 views

display metabox on front end (my-metabox-class)

I would like to display metabox repeater fields on the frontend. Here is the code to setup the metabox repeater fields: $my_meta = new AT_Meta_Box($config); $repeater_fields[] = ...
3
votes
1answer
407 views

How to reorder meta box position?

I have a custom post type which have a lot of custom field that categories in meta box. The problem is how do I sorting the meta box in the order that I desired? As I know there is only ...
0
votes
2answers
77 views

Editing Screen: Make Update or Publish Button Follow The Page

The Problem: I am currently in the finishing stages of a premium theme I've been developing and all is mostly well. For pages I have a few custom meta boxes for adding in slideshows and other ...
0
votes
1answer
78 views

Help with if statement inside while loop

I have the following snippet of code, basically I get the set value of id from the metabox, get the current id based on the loop, try and match, if htey match I want to pull the values from the ...

1 3 4 5 6 7 13