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

learn more… | top users | synonyms (2)

0
votes
2answers
13 views

When creating a metabox do you have to create DB fields for the data?

I'm just getting to grips with metaboxes for the first time and after reading up on them one of the main question i have is do you need to specify fields in the DB to store the data got input. i.e. if ...
0
votes
1answer
17 views

Output richtext metabox value

I have rich text metabox.When I echo the out put it shows html tags.If I write <h1>Hi</h1> in editor metabox it ouput the same.My works so far <?php $valueeee2= ...
0
votes
1answer
15 views

Meta Box will not display

Im trying to get my Meta Box to display at the bottom of my post Excerpt on the blog index. Ive been working on the site for the last 10 hours so i think im being blind or have done it wrong , would ...
0
votes
0answers
30 views

Wordpress Media Upload Plugin 3.5 JS PHP

I have a small issue creating a small plugin. I am trying to achieve a gallery meta box using Media Upload 3.5. At this point I am able to upload images, but when trying to update the image. I wont ...
0
votes
0answers
24 views

Wordpress 4 and wp_editor() Not Showing Visual/Text tabs

I use wordpress a lot, i develop for it a lot too! I have a client website that i have added 10 custom meta boxes to the post edit screen in functions.php . All the meta boxes have an editor using ...
0
votes
0answers
11 views

Select value don't stay selected after save

I did a multiple select item that takes his options from another CPT, it works but after the saving the selected items don't stay selected. this is my code for the meta box global $post; echo ...
0
votes
1answer
38 views

Howto: use existing post_meta as options for a different metabox (checkboxes or list)

I want to create an "Employee" Custom Post Type ("Add New Employee") wherein the employee may belong to one or many offices. The user needs to be able to add/edit/delete offices via a separate ...
-1
votes
1answer
24 views

How to add metabox ONLY to specific WooCommerce product type [closed]

A little extra info: I have created a custom product type within WooCommerce. The add_meta_box function only accepts a 'post_type' argument. This means that I can get it on all products no problem, ...
0
votes
1answer
51 views

Enable a short code in the custom meta field

I was wondering if there is a filter that allows me to enable short codes to work inside the custom meta fields in my posts. I know the following code enables it in widgets: ...
0
votes
0answers
13 views

display meta value depending on post selection

I have created form for event.In which I have added selectbox for events I have created meta value for price in post Now I want to display meta value depending on post selection from selectbox how to ...
0
votes
1answer
17 views

Custom sortable pages on custom post type

I created a custom post type but I want to put a functionality like the Menu Options located on Appearance>Menu. Which I can just choose a page on the side metabox then add it on the sortable area. ...
-1
votes
1answer
31 views

Adding JS functionality to the Publish button in wp-admin/post.php

I've created a plugin with a new metabox in my post.php. It's working fine on it's own, but the problem is getting it to save it's values if the users choose to press the "Publish/Update/Save" in ...
0
votes
0answers
10 views

Let the user duplicate chunk of meta boxes

I have a CPT 'Product', that can be rented or sold multiple times over. Each time a transaction takes place, the admin would like to update some of the information (such as sale date, condition etc). ...
1
vote
0answers
42 views

adding checkbox to meta

I have a custom post type that is working well and displaying/saving all the text fields. The issue is now I need to add 4 check boxes but not sure how to do that. Any ideas? function fitter_info() { ...
0
votes
0answers
21 views

Add “Select” For Custom Post Type Metabox

My Question is partially based on this tutorial: http://code.tutsplus.com/tutorials/how-to-display-metaboxes-according-to-the-current-post-format--wp-27970 I'm trying to add a new "select" field. ...
1
vote
2answers
33 views

Admin auto-refresh is interfering with Firebug — how to prevent it?

I'm developing a plugin that adds a metabox to the post editing page. When I try to debug it with Firebug, about every 15 seconds the Firebug display refreshes as though the page has reloaded. This ...
0
votes
0answers
24 views

add_meta_box does not go 'side'

I'm trying to add some metabox to my custom post type. So I add this: add_meta_box('my_custom_meta_box_id', 'My-meta-box-title','my_custom_meta_box_callback', 'my-custom-post-type', 'side', ...
0
votes
2answers
53 views

Allow iframe in custom meta box

I've created a custom meta box called 'Location Map' and want to provide a functionality to the client to simply copy paste the location's google map's iframe embed code so that it directly appears on ...
0
votes
2answers
31 views

Custom meta box not saving values of radio buttons in Wordpress

I dont know where i am going wrong.I want to save the values of my radio buttons in custom meta box.Here is my code. <?php if (!function_exists('custom_meta_box')) { function ...
0
votes
0answers
26 views

Custom meta boxes ID prefix showing on first category but not others

I've created a custom post type and added some custom meta boxes using this great resource: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress The problem, I've found, is that ...
0
votes
0answers
16 views

WP Meta Box Not Saving

I've been trying to get this custom meta box to save but it is not working. I've browsed around but still haven't found a solution that works. function add_link_box() { add_meta_box( ...
0
votes
0answers
17 views

Default metadata for Custom Taxonomy when using Add New Item on Post Edit

I have created a custom post type, that has a hierarchical custom taxonomy. This taxonomy has extra custom fields tied to it that save to a custom table in the DB. These fields have default values set ...
1
vote
1answer
42 views

update_post_meta and get_post_meta not working

I am trying to get the input from a textbox and display it upon update. I don't know if the update_post_meta or get_post_meta is causing the problem. Code //Metabox Hook ...
0
votes
0answers
13 views

Run php code when user clicks button in plugin's meta-box?

I added a meta box to the publish entry page. I want to add a button so that when the user clicks it the post is sent by email, for that I need to run a function that get's the $post object when the ...
0
votes
1answer
24 views

List custom post types in metabox

Is there a function to list all custom post types in a metabox? I have wp_list_pages( $args ); to list the pages in metabox but now I need also to list all custom post types. Thanks for advices
3
votes
1answer
76 views

How to make open/closed and hidden/shown metaboxes status saved on a per-post basis?

My real problem is a bit complex, so I'll try here to abstract it and keep it simple. I'm working on a custom app based on WordPress. I registered a custom post type, let's call it "people" where I ...
1
vote
0answers
18 views

cannot grab post meta from extended Walker_Category class properly

Trying to show some custom post meta inside an extended Walker_Category class. I am very inexperienced with Object Oriented Design so this issue is quite difficult for me to solve I am essentially ...
0
votes
0answers
35 views

Cannot add custom image uploader for custome post type in custom wordpress theme

I am trying to set image uploader for a custom post type on a Theme I am developing. The aim is to get it to insert the image URL into the textbox of id "meta-image" but instead it inserts the image ...
0
votes
1answer
30 views

Adding to an array & passing it through do_action/apply_filters

For exercise I am working through a PHP class to add meta boxes I found on GitHub. I just copied the code and now I am playing around with it to understand it. It works like this: The file ...
0
votes
0answers
13 views

Long-Running Meta Box Save (Performance)

I have a meta box that's designed to allow the user to check a few boxes to (basically) tie two posts together. The problem is that we have so many posts in the system that the request takes up to 10 ...
0
votes
1answer
64 views

Using WP_Query to grab custom meta values, foreach to json object

So I have 4 custom meta boxes for each post on a wordpress site relating to the product this client sells. I have 3 dropdown boxes, one for category, and two for two of the custom meta boxes. The ...
0
votes
0answers
64 views

Get Metabox taxonomy value and create metabox for termmeta

I got a big problem here. What I want to do is: Create Taxonomy meta box in the post edit screen, lets call it "text_from" Then Depending on the value of the "text_from" meta box display a field ...
0
votes
0answers
24 views

unwanted redirect on saving custom post type / custom post not saving

I've added (or at least attempted to add) a custom post type that has a custom meta box allowing a file to be attached to the post. This function has been spotty at best, allowing some files to be ...
1
vote
0answers
19 views

Page template no longer exists - metaboxes won't save

Ok, this is a weird one. I first experienced this on an older theme that I developed - I assumed I had some buggy code in there somewhere, but couldn't figure it out even with the help of another ...
0
votes
0answers
15 views

WordPress trims an encrypted field

Problem is that when I try to insert a new post into WordPress, the password (encrypted, see code below) is cut. For example: encrypted Ivt9=f:;itKun+TiIarze-GyX5Rt is only Ivt in WordPress. ...
0
votes
1answer
31 views

Error showing in current page id in wordpress admin

I am trying to remove a metabox ID from a page ID in the admin screen. So I have coded the following: function ag_remove_cmb_metaboxes() { global $post; $id = $post->ID; if ($id == ...
0
votes
1answer
33 views

Meta Box value not been pulled in

Here is the code that creates my metabox on my CPT named clients it displays fine and seems to keep the value input upon clicking update. The problem is with displaying the value saved within the ...
0
votes
1answer
108 views

Show value of select dropdown in meta box

I have created a meta box which has a select dropdown list and i want to show it in the post as a user selects a particular option from meta box.I cant figure it out how its done.Here is my meta box ...
0
votes
1answer
51 views

Repeatable WordPress custom fields in a metabox

I would like to create a meta box where the user can add or remove a simple input field that holds an image url on posts.
0
votes
3answers
477 views

How to add multiple images to custom post type?

I would like to create a simple plugin to add multiple images to a custom post type. I have created a plugin to add a single image to a custom post type, but I am unable to figure out how to add ...
0
votes
0answers
73 views

How to create custom Admin Pages for Custom Post types and add meta boxes

What I'm trying to do is : Create custom Admin Menus and Submenus add_menu_page Test add_submenu_page Add New no problem so far, both pages appear in the menu. Now I'm not sure how to add the ...
1
vote
0answers
31 views

How can I edit the 'Most Used' tab in the categories meta-box to show another custom taxonomy?

The 'Most Used' tab in the categories meta-box is the one that can be seen in the Edit Post section. I want to replace the Most Used tab, with a tab that lists another Custom Taxonomy, or edit the ...
0
votes
1answer
44 views

Can't save drop down select date in meta boxes

I want to update my select options(drop down) but i don't know where i made a mistake.Here is my code. <?php function display_post_options(){ wp_nonce_field( basename( __FILE__ ), ...
0
votes
0answers
37 views

Meta-Box to add multiple items one at a time and on publish save all

My example custom content type is for recipes. There will be a meta-box for ingredients. In this meta-box there will be three attributes and a "add" button. Name Measurements Notes Add Button My ...
0
votes
0answers
59 views

Add icon near meta box title in posts/pages

I'm trying to add some "help icon" that will be use to show "help text" with the help of the tooltip or pointers to admin section. Now I'm trying to understand how can I add in the posts/pages in ...
0
votes
0answers
37 views

Attaching meta box to specific category/taxonomy in custom post type

I have this case here and can't figure out how to do it. I have a custom post type with taxonomies and a meta boxes to that specific post type. The idea is some metaboxes to appear only when ...
0
votes
0answers
43 views

How to save meta box check box values and show them on a post?

I added this codes on my child theme functions.php add_action( 'add_meta_boxes', 'cd_meta_box_add' ); function cd_meta_box_add() { add_meta_box( 'my-meta-box-id', 'My First Meta Box', ...
0
votes
1answer
23 views

Adding Metabox Value Using the content filter

I am able to show repeater metabox on index and single post .Now I want to show this using add_filter( 'the_content', 'theme_slug_filter_the_content' ); My code to get meta value <?php $data = ...
0
votes
0answers
10 views

Search taxonomies while creating a post inside metabox

I have a question how to add a "search" buttom to your metabox with taxonomies. Currently I have got around 200 taxonomies and it is really a pain to check the taxonomies. Is there a way so user can ...
0
votes
0answers
27 views

Parent (ID from meta box) not showing in permalink, only Grandparent

I'm working on a site inherited from a previous developer and I've run into a issue that's really confusing. There's a custom post type for Locations. The hierarchy for Location posts would look ...