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

learn more… | top users | synonyms (2)

2
votes
1answer
56 views

make a excerpt on data from a meta box?

I have made a custom post type called news that has meta boxes. I would like to print the data from the metabox as a excerpt. How can I do that? This is the code that I use that prints the data : ...
2
votes
1answer
84 views

all tincymce's switch when updating page after changing from html to text in custom metabox

I have a custom metabox which uses wp_editor and when i switch to text editor instead of visual the main content tinymce also changes to text view when i update. I was wondering am i doing something ...
1
vote
3answers
148 views

Loading scripts to the Post Edit page only

I have added a few meta boxes for the posts and pages, so I want to load a js script only on the Create/Edit post and page. How can I do that? Currently I'm using following but that loads the scripts ...
0
votes
0answers
37 views

Displaying additional meta from a custom post type on the page?

I have added the custom field which displays in the custom post type "portfolio" just fine. // Add more custom field function woo_metaboxes_add($woo_metaboxes) { // Check for post type = ...
0
votes
0answers
61 views

when saveing $meta_box i get Undefined index error

I need help to fix these Notices: PHP Notice: Undefined index: person-name in testimonials.php on line 112 PHP Notice: Undefined index: position in testimonials.php on line 112 PHP Notice: Undefined ...
0
votes
1answer
27 views

Script dependencies for post.js

I have already got the built in meta boxes displaying on the front, but some of them require the accompanying wp-admin/js/post.js to function correctly. I'd rather not rewrite anything here and just ...
0
votes
0answers
210 views

Display a Meta Box on the frontend and allow user to update it there

I run a multiple author platform where many users have editorial privileges. I'm in the process of moving all editorial tasks from the Post edit page to the front-end (Post preview). I have added an ...
0
votes
1answer
39 views

Data won't save if metabox within conditional in admin. What am I missing?

What is wrong with this setup? Metaboxes inside this conditional will not get saved. // Only shows for the admin front-page assigned page. $front_page_id = get_option( 'page_on_front' ); $post_id = ...
0
votes
1answer
180 views

Custom post type meta box empty after save

I'm trying to make a meta box to include a date picker but my initial attempt to have the textbox data seems to fail as each time its either posted or saved again the text disapears <? /* ...
0
votes
1answer
74 views

Metabox Input Not saving

I haven't made any meta-box's in quite some time so quickly threw together this one for a website I'm developing. My problem is that when I input some text in the box's and hit save the text ...
0
votes
2answers
80 views

WP Alchemy - stripping my paragraph tags from textarea metaboxes

I cant seem to get my custom Metaboxes to display paragraphs. Here is my code: page.php <?php // Custom Excerpt $custom_metabox = get_post_meta($post->ID,'_custom_meta',TRUE); ...
0
votes
1answer
97 views

JQuery multiple toggle values

I'm trying to hide/show metaboxes dependant on the page template chosen. This has been working fine until I have come to show a metabox on more than one chosen page template. The below code displays ...
0
votes
1answer
46 views

Query Custom Posts - Add To Selection

Which I have working, but not correctly. When I add this metabox to my page it messes up the permalink to always display the slug of one of the organization post types. When I remove this metabox the ...
0
votes
2answers
598 views

How to add editable/dynamic values to dropdown of a Custom Post Type Meta Box

I am new to custom post types so I might not be explaining this the right way (apologies), but I am developing a WP project based on football games - with a major part of this involving which teams ...
0
votes
0answers
56 views

Adding a Custom 'Now' button under 'Published on' header to return current date and time

I want to add a new 'Now' button under the 'Published on' header so as to return the current date and time to the post update time. This would help people who want to update their post with a recent ...
0
votes
2answers
126 views

Can i categorise my meta box?

I have this code <?php $prefix = 'wtf_'; $meta_box = array( 'id' => 'propertybox', 'title' => 'Property listing details', 'page' => 'listings', 'context' => 'normal', ...
0
votes
2answers
108 views

Hide metabox dependant on page template chosen

I'm using the following JQuery script from this answer to toggle the display of metaboxes dependant on the Page Template selected. The example below shows the featured image metabox when the default ...
0
votes
0answers
30 views

How to use native wordpress tag metabox in a widget?

I'm developing a custom theme for a client and one of the requirements is to allow the home page to be configured via widgets. One of the widgets that I'm also developing will allow the client to ...
0
votes
1answer
97 views

How to add a class to meta boxes (to customize them in CSS)?

I have an situation: I just can't figure out how to add classes to some meta boxes. I read these post from here, I tried this solution, but it did not work as I wanted. Is there a way to add classes ...
0
votes
1answer
95 views

Users Select inside custom metabox

I'm using human made's custom meta boxes framework (https://github.com/humanmade/Custom-Meta-Boxes). I want to add a select drop down in my metabox wich is populated from the users with multiple roles ...
4
votes
1answer
188 views

WordPress: Sortable Metabox Fields Not Saving Position

I've run into a problem that has got me stumped: after upgrading to WP 3.6 my sortable metabox fields are not saving their position when you re-order them. Below is my code: PHP: function save_box( ...
0
votes
1answer
46 views

HM CMB: Role Select

I'm using human made's custom meta boxes framework (https://github.com/humanmade/Custom-Meta-Boxes). I want to add a select drop down in my metabox wich is populated from the roles on my WP site. ...
0
votes
3answers
616 views

How to create a button click counter meta box?

I am trying to create button click counter meta box in a custom post type, but I can't get it to work. What I want to do is when a user click the submit button, then it will do update_post_meta in the ...
0
votes
1answer
174 views

Save JSON object attributes to custom metabox

Case: I use a imagepicker.js script to create a image picker for my custom meta box. But this doesn't work for WP 3.6 anymore, So i'm trying to create a image picker metabox with the new media ...
0
votes
1answer
396 views

How to get custom metabox image field?

i have custom metabox with the image field, i can upload image from wp-admin to this metabox, metabox code array( 'name' => 'Burst Image', 'desc' => 'Crop your image to ...
0
votes
0answers
22 views

Automatically Create Handler For Newly Generated Form Table

I have a mwtabox with form that will create similar form table with different input name when a button is clicked. It is by adding an incremented number after the name, so it will be like this: name ...
0
votes
0answers
23 views

Dynamic Post Meta Boxes Within custom post type [duplicate]

I want to create a custom meta box within a custom post type that supports multiple inputs; e.g. People Involved In Race: Person One Field : Person Two Field : Person Three Field : ect. The ...
1
vote
3answers
213 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 ...
0
votes
2answers
74 views

CMB select with data from CPT

I'm using the CMB framework for creating metaboxes (https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress) and I want to add a select box which prepopulates with titles from a custom ...
0
votes
0answers
40 views

Use Meta Box in Plugin of WordPress

Any one let me give an suggestion is much appreciated. I trying to create a plugin in wordpress. I do this in WP_LIST_TABLE In this we have an button add new option by this it get it into default ...
0
votes
1answer
103 views

Simple Custom Metabox Not Saving

I'm not quite sure why but I've been playing around with all kinds of different solutions but none seem to work. I've traded update_post_meta with add_post_meta and even broke it up into 3 ...
0
votes
1answer
94 views

Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”

My custom post type have a meta box that is listing another custom post types in its meta box. And it is causing error each time I try to publish a post with that custom post type. It is always bring ...
0
votes
1answer
36 views

Make meta box appear if the previous if not empty?

I have created a custom post type with the ability to have multiple featured images. However, it would be nice if i didn't have 10 empty boxes on the post page asking for images... I would like a ...
0
votes
0answers
119 views

Updating post meta and Meta Box plugin

I've installed Meta Box wordpress plugin and create a text field meta box with clone option: add_action( 'admin_init', 'rw_register_meta_boxes' ); function rw_register_meta_boxes() { $meta_boxes ...
0
votes
0answers
13 views

How to create list of “tags” in meta box from post title [duplicate]

I am trying to create a simple plugin where I will create a list of tags from the title of a post and display it within a meta box. I've already created the meta box, but how do I retrieve content ...
2
votes
1answer
67 views

How WordPress autosave can save plugin fields?

Setup: WordPress Add/Edit Post/Page A plugin that have its own postbox with several hidden fields. Issue: How these custom hidden fields can be saved along with the other post data within the ...
1
vote
0answers
198 views

Set default value for radio button in WP Alchemy custom meta box?

I'm using the WP Alchemy Metabox PHP class (www.farinspace.com/wpalchemy-metabox/) to add a custom meta box with a radio select to a custom post type. The code below shows the code I'm using for the ...
0
votes
0answers
138 views

WP Alchemy Meta Box for Custom Post Type

I'm using the WP Alchemy Metabox class to create two meta boxes. One meta box is used on posts, pages and my custom post type, via_fest. This meta box is showing up fine on all 3 of the post types. ...
0
votes
0answers
59 views

How do I get jQuery working on the current instance of some repeatable metaboxes?

I hope I can be able to explain my issue. I have a select element that is part of some repeatable metaboxes. I use the select element to show/hide metaboxes. It works fine as long I don't ...
1
vote
1answer
170 views

Simultaneous admin updates causes custom fields to not update

Okay, I have another doozie of a problem and although I'm still in the middle of trying to figure out exactly what's going on and what kind of help I might need, I thought I'd throw something up here ...
0
votes
1answer
37 views

quicktags “link” button doesn't work, but all other buttons do

I've added quicktags to a plain ol' textarea field which sits inside a metabox on a custom post type page. I can see the link button on the toolbar, along with the rest of the buttons, but when ...
1
vote
1answer
100 views

How do you List all Sidebars in a Metabox

I know this question has been answered many times before, including here where i came from so it'll probably be real simple. I've registered my sidebars as normal function wmw_sidebars() { // ...
0
votes
0answers
108 views

Filter CPT based on meta box value using Flexible Posts widget?

I'm using the Flexible Posts Widget to display a list of "deals" (a custom post type) in my sidebar. I'm also using that plugin's capacity to use a custom template to control the display of that ...
0
votes
0answers
15 views

Wordpress media upload by arrays

I have followed http://themefoundation.com/wordpress-meta-boxes-guide/ to create meta boxes.Now I have one question about media upload metabox used here.Can we make it more flexible like multiple ...
0
votes
1answer
460 views

Custom fields to save multiple values

I’m adding custom meta-box, by means of jquery I can create in it several custom fields with a key “test”. There can be one or several custom fields, but the key is only “test”. I can also delete key ...
0
votes
1answer
157 views

Adding Custom Metaboxes to Custom Pages

I want to be able to add a metabox to a new submenu page that I have created. I have the following basic code which I was hoping would work but it seems not to: add_action("init", ...
0
votes
0answers
46 views

Uploaded images wont display properly if they have spaces in their filenames

I'm using the Meta Box plugin to create some custom meta boxes for a client's site and I'm having an issue with uploading images. If I try and upload and image with a space in the filename (sample ...
0
votes
1answer
109 views

Advanced Custom Field User Help URL

Hi I'm using ACF or Advanced Custom Fields which i saw here a while ago.. What i want is to output a second featured image in the homepage.. Question: 1 <div class="jpl-widgets-d" ...
0
votes
0answers
264 views

How I Save Value Created In My Dynamic Custom Meta Box Form

So, I have successfully created my dynamic custom meta box that can add and remove form field using jquery, but I have no idea on how to save its entered data and retrieve it in the front end. Have ...
0
votes
1answer
129 views

Custom post type in submenu with custom meta box as a title with custom html

I am trying to create a menu in wordpress using a custom post type as the main menu item at the top level and all of its childs are going to be included from the posts i create inside it. The html i ...