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

learn more… | top users | synonyms (2)

0
votes
1answer
111 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
2answers
185 views

How to customize the Categories meta box to allow only one category?

I'm trying to customize the Categories meta-box when adding a post. I have added a custom post and I need the administrator to post a new post without the ability to use the top level categories ...
1
vote
1answer
105 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
140 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
47 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
79 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. ...
5
votes
1answer
170 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
1answer
69 views

Embed 'New Post' Form Inside 'New Post' Form

Is it possible to embed a 'New Post' form for one Custom Post Type inside of a 'New Post' form for another Custom Post Type? When a user adds a new post for the custom type 'Event', they should also ...
6
votes
7answers
423 views

Individual Widgets per Page

In my (page-only, no posts) Wordpress site I have a number of static blobs in need to put in a sidebar. We could call/tream thoses 'blobs' as widgets. At least they'll have a fixed html content, like ...
0
votes
1answer
39 views

why esc_url not working in smartmetabox

Have you ever tried http://www.wproots.com/ultimate-guide-to-meta-boxes-in-wordpress/ ? It's good classes to create metabox. But I'm having problem with the validation. I tried the sanitize_callback ...
0
votes
1answer
166 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" ...
0
votes
1answer
217 views

Image display from custom field

I am trying to display image from my custom meta box but cant make it: function.php file: add_action( 'admin_init', 'order_box' ); function order_box() { add_meta_box( 'meta-box-id', 'My Custom ...
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
3answers
316 views

Only one category per post

How to make each post/page have one and only one category. Categories could have radio box instead of checkbox next to each.
0
votes
1answer
69 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
141 views

Help integrating Custom post type meta field with custom profile fields

I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them. I have added some spots to the profile using ...
0
votes
1answer
100 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
43 views

Remove duplicated values from meta box values

I use the code to get all the meta boxes values in a custom type <?php $args = array('post_type' => 'posttype'); $emptyvalue = ""; $optionname = "optionname"; $the_query = new WP_Query($args); ...
0
votes
2answers
107 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', ...
0
votes
1answer
344 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 ...
1
vote
1answer
177 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
87 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
236 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 ...
0
votes
1answer
256 views

Why my meta boxes won't show in front post page?

I see it everywhere: in single post, in category archives etc, but in front page post not. I display the metaboxes in this way: <?php if (get_post_meta($post->ID, 'test_1', true) != '' ) { ...
5
votes
1answer
78 views

Listen to Post action

I am writing a plugin that adds a custom metabox to the post page. I would like to trigger an event when the user navigates away from the edit post page or when a user stops editing a specific post. ...
1
vote
1answer
149 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
77 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 ...
1
vote
1answer
131 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
67 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
2answers
128 views

How to query custom post then display sections by meta value

This seems like an easy thing to do but I am missing something here. I have a custom post type called "recipient" and a meta check box called "yes_current" - (we help children with cancer and run ...
0
votes
2answers
85 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
87 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 ...
0
votes
1answer
217 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 ...
3
votes
2answers
120 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
31 views

Trying to limit access to custom meta box without success

I have this meta box that I have added to my site: // Assistant Editor Box add_action( 'add_meta_boxes', 'assistant_editor_box' ); function assistant_editor_box() { add_meta_box( ...
3
votes
1answer
124 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
2answers
67 views

Using custom post type as taxonomy

I have two custom post types, Books and Authors. Now, each book will have its corresponding author(s). I know how to associate books with authors using custom metas. However, over time, there will be ...
2
votes
1answer
97 views

Adding a custom field or metabox to the post-thumbnail widget?

Is it possible to add a custom field to an existing "widget" in the backend? What I wanna do is provide a way to have a checkbox to apply a thumbnail that is double the size of the normal one on the ...
0
votes
1answer
38 views

Add a meta field to the list of results for a custom post type

I've created a Custom Post Type for "Books" ... I've also added several meta fields (custom fields) to each book, and I'd like to be able to display some of those fields in the table of results. Is ...
2
votes
1answer
385 views

Listing Pages With Checkboxes In a Metabox (and saving them)

Here is what I'm basically trying to accomplish: I have a custom post type called 'quotes' I have a number of wordpress pages What I am trying to do is this: each time when I create a new "QUOTES" ...
1
vote
1answer
172 views

Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible

I'm trying to create a custom post type and I've had the same problem that's described here; my custom meta information was properly saved, when saving manually, but got lost as soon as the autosave ...
0
votes
1answer
115 views

Metabox does not show in custom post type

I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
5
votes
4answers
1k views

WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins

I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
0
votes
1answer
62 views

Exclude posts based on an array

I'm using a custom meta box to output a list of post IDs within a particular post type ("Publications" in this example). Is there a way I can output this array into a custom loop to only show posts ...
1
vote
1answer
109 views

Get Order of Meta Box in a Page/Post

I'm using the Posts 2 Posts plugin specifically, but I think this applies to any meta box. I have three Posts 2 Posts metaboxes on the side: "Related Case Studies", "Related White Papers" and ...
0
votes
0answers
13 views

Metabox checkbox not save value when post is updated [duplicate]

Possible Duplicate: checkbox in post not saving value My metabox checkbox not save value when I update my post. Here is my code: add_action('add_meta_boxes', 'my_meta_box'); ...
3
votes
2answers
155 views

Use meta box value in CPT as post title

This has been addressed in another post, but the solution was too specific to apply here. My goal is to use a metabox value (ecpt_name) as the post title so that the user only needs to input their ...
0
votes
1answer
211 views

Checkbox in post not saving value

I have a checkbox above my metabox in a custom post. When I check it and publish/update the post, it become unchecked again meaning it's not saving it's value. Here is my code for the checkbox: ...
1
vote
1answer
83 views

Ordering values entered in Custom Taxonomies

I found a great article on Custom Taxonomies here. I have a specific requirement related to ordering values entered in the Custom Taxonomies. How do I display the terms entered in the meta boxes in ...

1 2 3 4 5 13