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

learn more… | top users | synonyms (2)

0
votes
1answer
566 views

How do I display Youtube/Vimeo video ID on custom post type when user enters it in custom meta box?

I have created a 2x shortcodes that displays a youtube video and vimeo video when the user enters the videos id in it, for example: [youtube id=""] [vimeo id=""]. Instead of entering this in my post ...
0
votes
0answers
7 views

Improvements on portfolio CPT and Metabox

I've been developing a CPT that is going to be used as a portfolio to display my projects, I wanted to add some extra customisable options to display certain aspects of the CPT such as the caption ...
0
votes
2answers
15 views

Add multiple custom meta boxes to different custom post types

I want to add one custom meta box to a specific custom meta type "chifres" and two custom meta boxes to a specific custom meta type "presse". This is how far I've gotten: Here is my code: //Add ...
0
votes
1answer
286 views

save_post action inside a custom metabox class not working

I am writing a class to create metaboxes and save the form data. The problem is, I keep getting a warning when I click "publish": Warning: call_user_func_array() expects parameter 1 to be a valid ...
1
vote
2answers
221 views

Add custom field to existing meta box?

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works. My question is, is there a way for me to add a custom field to ...
1
vote
2answers
27 views

Post.php - Conditional statements for new post and edit post

This question came up when creating a custom meta box for the edit.php page. Is there a conditional statement to target posts that are already exist vs posts that are not created yet? The idea: If ...
0
votes
0answers
19 views

Image X or Image Y Based on Meta-Box Input Value

I have a meta box for a film review test site I'm trying to build. I have 3 fields in my meta box, they are $director, $starring and $rating. I want to take the rating, and put it into a page ...
0
votes
4answers
3k 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 ...
1
vote
1answer
464 views

Get all posts from custom post type and insert in select input as metabox

I would like to know if its possible to do something like this. I have Slider custom post type and Services custom post type. For slider posts I have created a metabox for URL value to display next ...
1
vote
1answer
23 views

The Best Way to always load the newest version of 3rd party code

There is a class for plugins and themes that makes custom meta boxes easier to develop called cmb_Meta_Box from Custom-Metaboxes-and-Fields-for-WordPress at ...
0
votes
1answer
399 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) != '' ) { ...
2
votes
1answer
352 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 ...
1
vote
1answer
31 views

meta box on custom post type

Okay I have look on the site and need more help! I am adding Learndash to my site and need a meta box to show on their custom post type pages. Here is the meta box code I have which works fine for ...
0
votes
1answer
780 views

Advanced Custom Fields Array Population

I'm trying to populate a ACF select field with an array from a custom $wpdb->get_results call, which is essentially a list of categories from my db. I have the following: global $wpdb; ...
1
vote
3answers
805 views

Adding upload button in metabox

I want to add upload image button for the images and retrieve url. Can someone pls help me, i have been trying this for quite a few days. I'm using code from this thread Create more Meta Boxes as ...
1
vote
1answer
1k views

How to Create Dynamic Fields in a Meta Box?

Could someone explain me with a little example how create a button that creates a new custom field dynamically? I'm working on a plugin and using add_meta_box, I need an input box ...
5
votes
1answer
343 views

How do I position meta_box on post edit screen after the title?

I am displaying a div in the Edit Post screen using add_meta_box(). This function provides very limited positioning options via "priority" and "context" params and these are not sufficient for my ...
0
votes
2answers
547 views

How to make a metabox that contains link categories?

I'm looking for some suggestions or tutorial links about how to create a meta box that allows users to choose from a list of link categories. So far I've been looking at this post about taxonomies in ...
0
votes
1answer
344 views

Plugin admin page meta_box toggle and order state not saving

I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0 I'm using meta boxes to hold sections of menu for a plugin. ...
1
vote
2answers
5k 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 ...
2
votes
1answer
64 views

WP_List_Table inside metabox not working on submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called 'service' which is registered to a custom post type called 'office'. The table columns contain input ...
-1
votes
2answers
95 views

Calling Data from Custom Meta Box

I have created a custom meta box which I have pasted in functions.php (minus the <?php call of course) I have two fields in this meta box, one is labeled 'Primary Title' and the other is labeled ...
0
votes
0answers
36 views

Support Multiple featured images

I've created a WordPress theme where in one of my pages I need to use two feature images, I know already how to add support for the featured image and I'm using it. My need is how to add a second ...
3
votes
2answers
1k views

wp_generate_attachment_metadata gives me an empty array

I have a custom post type and a metabox with a file input. I can insert the attachment, but I can't update the attachment metadata and I don't know how to fix it because I don't receive any error. ...
1
vote
2answers
453 views

Wordpress 3.5 Media Uploader - Only allow 1 upload and certain file types

I am trying to include the new WP Media Uploader in a Custom Meta Box. I found this tutorial: http://codestag.com/how-to-use-wordpress-3-5-media-uploader-in-theme-options/ However i am looking for ...
5
votes
1answer
2k views

How To Remove The “+ Add New Category” Link From A Category Metabox

Inside of a Wordpress category metabox or any custom taxonomy box for that matter there is a link with the text "+ Add New Category" is there a way this link can be removed preferably without ...
1
vote
2answers
516 views

Loop with slider (slider not loading)

In my slider.php I have a loop that calls for a custom post type. That custom post type has a meta box for a slide url (link/title/etc). I can see the loop and everything else is working because in ...
5
votes
2answers
264 views

Add default WordPress tag meta box to User Profile

I've set up my user profiles to allow custom taxonomies following this tutorial. Ideally, I'd like to use the default Tag meta box from the Post screen, so users can easily add new taxonomies and ...
1
vote
0answers
18 views

Upload File Metabox - Empty Files on POST

I'm creating a simple / generic upload file metabox. For some reason when I upload a file and update my post, it doesn't pull my uploaded file along with it, the $_FILES array will be completely ...
1
vote
1answer
463 views

Create Multiple File Upload Metabox in Wordpress

I am trying to create a metabox to upload multiple files (can be images or files). Currently I have the upload field and its working file till the time we press upload and saving the data. The only ...
1
vote
1answer
715 views

Displaying Meta Box Image

I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart. I'm able to display the textfields using ...
-2
votes
0answers
29 views

How to create custom meta box for custom taxonomy?

I created a custom taxonomy for my website, and I also would like to extend it with a custom meta box. I know how to create meta box for post types, but what about taxonomies? I found only plugin, but ...
1
vote
1answer
75 views

Dynamic page.php template for custom post types

I have a couple of custom post types registered. I would like to display all "posts" from each custom post type on its own page, and these pages must be visible in the nav menu. It would be great to ...
0
votes
2answers
26 views

add_post_meta Adds post meta but the value is blank

My plugin uses a metabox to save post meta. I have three option in the metabox. Everything is saving/updating/deleting correctly except for this: add_post_meta( $post_id, $meta_key_duration, ...
0
votes
0answers
23 views

URL field in metabox with page links select

I am building my first metabox and I need to add special field when user can write your own link (URL) to outside page (with http://) or select existing page/post. If user selected that he want to add ...
0
votes
1answer
79 views

Add metabox with media uploader in a custom post type

I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
2
votes
2answers
3k 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
39 views

Adding a meta box to determine the sidebar [closed]

I was trying to customize my WordPress, and I have added some custom meta boxes (it adds custom field) to add values in it, but I don't know how to do this one... I want to a Meta Box, which will be ...
0
votes
1answer
36 views

Hide custom metabox value from custom fields

Before I ask the question, I tried to added _ to the custom field, but it's not working, at least with my code. I just want to hide the value of my meta box from appearing in the custom fields. When ...
-1
votes
0answers
51 views

Woocommerce type product image gallery in post

i am just trying to create product gallery box like woocommerce. i just find the code from the woocommerce and tried to create product gallery images uploaders. unfortunately it is not saving then ...
0
votes
0answers
20 views

Serialization problem after auto-update

I am having a problem with WP serialization. To cut a long story short: the problem appeared two months after the site launch. All the strings of text that were stored as a theme_option or as a meta ...
0
votes
0answers
36 views

New WP_Query loop in admin causes problems

I am working on a project where I have a custom post type 'companies' and on this edit page in the Wordpress admin I have some custom made meta boxes, for saving company information, opening hours, ...
1
vote
1answer
209 views

Wordpress metaboxes - textfield suggestion automatically populated

[Long story short] Is there any Wordpress plugin/function that would allow the creation/integration of a metabox's textfield that automatically populates a dropdown menu (in the admin area, while in ...
1
vote
2answers
2k 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 ...
0
votes
1answer
32 views

Selecting a dynamic sidebar via metabox in wordpress

I am developing a wordpress theme where are 3 sideboxes. I want to select a sidebox through metabox in my admin page so that particular sidebar shows up in front-end. My codes are:- In function ...
1
vote
0answers
28 views

Retrieving Meta from Image Attachment

I currently have added a meta box to the media library popup using the following: // ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY function AddLibraryFields( $form_fields, $post ) { ...
-1
votes
0answers
20 views

Styles and Scripts For Meta box Not Works in Child Theme

I'm using Rilwis Metabox V.4.3.8, The metaboxes works perfectly in Parent Theme. But the CSS and SCRIPTS are not works in child theme, because the styles and scripts are load from child theme folder ...
0
votes
0answers
29 views

Add custom metabox in posts

I tried to add a custom meta box following some tutorials like this one but I don't why it doesn't saves any value in the box. There is my code: ...
0
votes
1answer
254 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
0answers
12 views

Hook on Add new category from post editor [duplicate]

How can I "hook" on Add new category metabox from post editor page? I need to add some default values to DB when adding new category