Refers to a box-like reusable user-interface component common in the WordPress backend.
0
votes
3answers
226 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
64 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
133 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
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 ...
1
vote
2answers
985 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
41 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
94 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
311 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
163 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
203 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
235 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
73 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
115 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 ...
1
vote
1answer
117 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
64 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
116 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
76 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 ...
0
votes
1answer
200 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
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
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
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
2answers
63 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
93 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
36 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
303 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
163 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
108 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
931 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
88 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
152 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
196 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
81 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 ...
0
votes
1answer
39 views
Meta boxes only displayed when editing normal (default wp post_type) posts
I've multiple meta boxes for my main/default post types.
I also have multiple post_types where this meta boxes make no sense.
Can you hint me on if/else function I would use on displaying meta boxes ...
1
vote
1answer
91 views
Metabox to list/store a certain type of post tag
I'm at an impasse here. I'm admin-ing a food blog for a friend. She enters the ingredients for each recipe post as post tags. Down the road I'm going to create a page where a user sees a list of all ...
2
votes
2answers
959 views
Properly add an upload media button in a meta box field
i have a custom post which has a meta tag that needs to be using a file upload (for video files). I am wondering, what is the correct way of adding an Upload button that points to the wordpress media ...
0
votes
1answer
36 views
Specific coditional usage [closed]
I have some trouble making work a conditional inside a Function.
check this out:
I'm using this function:
function get_spec_1(){
$desc1 = get_post_meta( get_the_ID(), 'eco_mb_tp_1', true!= "" );
...
0
votes
1answer
148 views
wysiwyg editor don´t export paragraph <p>
I use cmb for my custom metaboxes.
What I´ve done:
'type' => 'wysiwyg'
My WP-Backend: (HTML-Editor):
<h1>Headline</h1>
Paragraph
Browser-Source just looks like:
...
2
votes
1answer
376 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:
...
0
votes
1answer
268 views
problem saving/ retrieving custom meta with wp alchemy metabox
I am using WPalchemy metabox class to add a extra meta field to the pages editor which will allow me to attach galleries to pages. I use the class:
$gallery_metabox = new WPAlchemy_MetaBox(array(
...
0
votes
1answer
171 views
Empty meta-box returns publishdate if no value is set?
I have no idea why this would/could happen.
I have a custom metabox for an "event_end_date" set for a custom-post-type. If I leave this field blank it always puts out the publish-date of the post ...
2
votes
1answer
129 views
Create a Meta Box in the Admin User Screen?
My client wants the New User admin page to be composed of a meta box.
add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args );
But this seems to be for posts only ...
-1
votes
2answers
100 views
Conditonally check if Custom Meta Box has input
I currently display a URL from a custom meta box, but wanted to add a conditional check, so that if nothing has been entered, not to display the link text.
<a target="_blank" href="<?php ...
1
vote
0answers
210 views
Getting jQuery sortable items in custom metabox
I've gottent this far: I have a list of featured image thumbnails loading into a metabox on my home-page template.
I'm stumped: I'm looking to make them sortable with jQuery but I'm really new to ...
0
votes
2answers
236 views
How to change the title of a Meta Box on a specified Custom Post Type? [duplicate]
Possible Duplicate:
Change The Title Of a Meta Box
Is it possible to change the title of a Meta Box on a specific Custom Post Type add or edit page?
For example, if I'm viewing the post ...
0
votes
1answer
292 views
How to pass variable via $callback_args for add_meta_box
I trying to pass some variable to the callback function through add_meta_box. Knowing that there is $callback_args that can be use to pass the variable. But somehow I just can't get it work within a ...
