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

learn more… | top users | synonyms (2)

0
votes
1answer
11 views

What does the [0] Argument/Index Use for?

Trying to improve my PHP knowledge through test and try! I am confused on [0] arguments at following WordPress PHP code global $post; $custom = get_post_custom($post->ID); $price = ...
0
votes
1answer
28 views

Modifying the main editor priority

I want the main WordPress post editor to appear below some of my meta boxes (generated by Advanced Custom Fields). I know there are the add_meta_box() and remove_meta_box() functions, however it'd be ...
0
votes
1answer
68 views

Taxonomy as checkboxes

So I'm trying to get Wordpress to display the categories as a series of select boxes in a custom meta box and am using some examples from this tutorial, but when I go to save the selection it ...
0
votes
1answer
57 views

How To Display A List Of CPT Posts In A Meta Box On Menus Page?

Is it possible to display a list of the custom post type POSTS, not archive link, inside a meta box on the nav menus page? Currently, it displays each CPT post inside it's own metabox, but I would ...
0
votes
0answers
22 views

Select Options Meta Data is Not Updating in Edit Meta Box

I have a Meta box with two user inputs 1: Text-field and 2:a Select drop Down options. I used following Save Method in mt Meta box and second part of the code belong to saving the Selected option from ...
0
votes
1answer
38 views

input radio 'checked' saves, but select option 'selected' doesn't

So I followed a tutorial on how to create a meta box w/ the taxonomy terms shown in radio buttons. (Tutorial here for others if interested: ...
0
votes
2answers
30 views

How to Display Custom Meta Box only on Specific Page IDs

I am using Magic Fields 2 for custom meta boxes and custom fields, but this situation pertains to any meta box. I have a custom meta box that I want to display on only 3 specific page IDs. function ...
1
vote
1answer
21 views

How to use MarkDown in a custom textarea field?

I've created a custom metabox with a textarea in it. How would I go about using Markdown in this textarea? I've seen some WP plugins but they seem to only be for the main editor.
0
votes
1answer
19 views

Problem On Retrieving Post Meta Data on Custom Column [closed]

I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
0
votes
0answers
14 views

Return to Post Editing Screen after a bulk action from the Custom Meta Box

Trying to adapt Custom List Table Example plugin for my own needs. Here the page field is responsible for specifying the plugin page to which the form containing List Table posts to: <form ...
0
votes
1answer
23 views

How to Put Custom Taxanomy Meta Box in Main Column

WordPress added the Custom Taxonomy Meta box at sidebar, Is there any way which we can relocate it in the main column , Under Edit box? Thansk
1
vote
1answer
27 views

Undefined function error when creating Custom Meta Box

Following this tutorial, I am trying to create a custom Meta Box on my theme by adding following codes to the function.php file: enter code here add_meta_box( 'my-meta-box-id', 'My First Meta Box', ...
0
votes
1answer
57 views

Convert textarea with wp_editor

I have a custom tabbed menu which has some input fields that works properly. I followed this tutorial: ...
0
votes
0answers
15 views

Dynamic Custom Menus [closed]

I've created a meta box so my client can choose which custom menus to use on certain pages. That seems to be working fine. However, I've created a second menu but only the original menu is showing up ...
1
vote
1answer
32 views

Customize Welcome Panel Plugin

I am trying to create custom welcome panel in dashboard for WP and can't see where I went wrong. It's not allowing me to add html. function custom_welcome_panel() { $customwelcome_panel = ...
0
votes
0answers
5 views

Need Metabox show the values [duplicate]

I can show the metabox of my code but no works for save and get values into the field i save until <?php function reaction_buttons_meta2() { global $post; echo $_POST['reaction_buttons_off2']; ...
0
votes
0answers
22 views

Problem for recover and save metaboxes

I create metaboxes but i can“t save data and also no show data insert into field , this is my code <?php function reaction_buttons_meta2() { global $post; echo ...
0
votes
1answer
52 views

Save selected item from dropdown menu in a meta box as a metadata value for a custom post type

I have been beating my brains on this one for days now and my Google-fu is failing me. I have created a custom meta box with a dropdown menu that lists all of the terms from a custom taxonomy. What I ...
0
votes
0answers
16 views

Adding additional text fields and image upload to a Page?

I have a contact page: I would like to add an additional text field below the text editor and another image upload button. And then display it in the template as something like this: <?php ...
0
votes
2answers
28 views

How to Publish WP original Source metabox value on front-end webpage

I use a plugin called WP original Source. It lets me add the URL of the original article source, which is handy as it credits the original source of article extracts and summaries that I publish of ...
0
votes
0answers
22 views

How to display all values of a multicheck array if they are checked?

I'm really a rookie to PHP, i'm using the customfield fields&meta boxes plugin for wordpress. Normaly when i register a customfield, i display them by using: <?php if ( ...
2
votes
1answer
44 views

Removing meta boxes: remove-meta_box() or unset()?

I've seen two ways to remove meta boxes: remove_meta_box() and unset(). function TEST_remove_dashboard_widgets(){ remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); } ...
-1
votes
0answers
27 views

html to image featured image

hi how can i use the script below to be able to convert html to image in wordpress so that when i click a button it generates and set the image a featured image, i wanted to create a metabox in post ...
1
vote
1answer
64 views

Use Custom Post Type to as Custom Field

I am newbie of wordpress as well php programming. I want to create a custom post type for store that having all store names and it is working. Now I want to fetch the all stores in select box in ...
0
votes
1answer
38 views

Saving zero in meta box

So I have created a meta box for a review rating. Sometimes the value of the rating (out of 5) is zero. When you enter a 0 into the input and save the data, it doesn't process because of the fact 0 ...
0
votes
0answers
14 views

Display Term Metabox Only On Certain Term Edit and Add Pages In Admin

I have a simple metabox added to a taxonomy and in turn its terms, however I am looking for a way to only display the metabox on a single term of this taxonomy, is this possible? This metabox with ...
0
votes
0answers
15 views

Plugin works for default post types, but not for custom [duplicate]

I've coded a plugin that adds a meta box to the post page. When the post is published, the plugin will generate a random ID for the post, and insert the random ID and the post guid to a custom table ...
1
vote
1answer
45 views

How to remove a metabox from menu editor page?

I am not sure if it is much different for any page but I am wondering how to remove a metabox from the appearance>menu page without having to go into the wordpress core files and remove it. Is there ...
0
votes
0answers
64 views

Create multiple checkboxes in a metabox

I am trying to figure our how to modify this code so that it creates a checkbox for each entry in the meta_key. It is a meta box that will be used on the menu page. The meta_key has multiple ...
0
votes
1answer
25 views

Where can I find the code for the menu page meta boxes?

I want to add a meta box to the menu page. More specifically I want to basically clone the pages or category meta box and have it load the items into the list from a meta key, instead of pages or ...
0
votes
0answers
24 views

Dynamically add Meta Boxes

Is it possible to create dynamic meta boxes? Let's say: I want some buttons to create columns. So i'd have the following buttons: 1 column 2 columns 3 columns and so forth If the user clicks "2 ...
3
votes
1answer
82 views

Adding another state (spam, reject, approve) to wordpress comments?

i know this might sound a bit weird, but what I'm trying to do is rather simple in mind but may be technically difficult. I'm running small contests on my wordpress site where I ask users to leave a ...
0
votes
0answers
38 views

Using strtotime() and update_post_meta not saving

I would like to take a date entered in a meta box field, & convert it into a Unix timestamp (dd/mm/yyyy) and save it in the wp_postmeta table. But my code isn't working: function ...
2
votes
1answer
49 views

unable to save post meta on single field with multiple selects

I set up two select boxes in one meta field by putting two arrays inside the 'options' array of my callback. The HTML is outputting fine, but the meta is not being saved to the database... Here is a ...
1
vote
1answer
37 views

Why is my select meta data not saving?

I am working on a site at the moment where I need to save several different types of meta data for a custom post type. At present I have a text input that is saving with no problem but am struggling ...
0
votes
2answers
49 views

How to make a meta box field a requirement

I'm building a plugin that has a meta box. Some of the fields in the meta box are required. Is using Jquery the only method for achieving this? Can I require that a field is filled in using php? ...
0
votes
0answers
34 views

How to tell if string is null or empty in meta value? [closed]

I am trying to figure out how to find out if a string is null or empty in php. The place I am pulling the value from is a meta value that is stored from a meta box on the post page. I want to check ...
0
votes
1answer
35 views

How can I create a menu items from meta box based on users input

I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
1
vote
1answer
20 views

Trying to retrieve post meta

I have created a meta box that allows users to add an additional name/id to their post. From what I can tell it is adding the meta information correctly because when I edit a post that has a custom ...
0
votes
1answer
65 views

Get post meta retrieving wrong value

I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
0
votes
1answer
22 views

Is 'repeatable' a field type for meta boxes?

This is probably a silly question, but I'm new to wordpress development so easily confused at the moment. Code: array( 'label' => 'Repeatable', 'desc' => 'A description for the ...
0
votes
0answers
24 views

field of metabox is not visisible outside the function

I have a metabox with two static fields and one more field I add in ingredients_show_box function. All three fields are visible by $_POST when I save data. But the two static fields are visible by ...
0
votes
1answer
27 views

Tabbed navigation in widget backend

I have just created a widget and i am trying to implement a tabbed navigation in the wp backend but it just seems more difficult than writing all the php code! The categories metabox is an example of ...
0
votes
0answers
35 views

Have I structured my arrays correctly for this repeatable meta box?

I'm creating a meta box that'll have repeatable fields, when the user clicks a button to add a new field in the meta box. One of these repeatable fields is a drop down. I would like the dropdown to ...
1
vote
1answer
52 views

Custom Metabox additional item

I have a custom metabox that have 2 options: URL and a text box called "testimonial". The URL box is working great(when i put some text in this field on admin, the text appears on site), but the ...
0
votes
1answer
53 views

Dynamic number of fields in a meta box

I am working with a recipes blog and I use custom meta boxes. $food_box = array( 'id' => 'foodbox', 'title' => __('Ingredients details','splus'), 'page' => 'recipes', ...
1
vote
3answers
107 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 ...
0
votes
1answer
111 views

Meta boxes not showing on custom post type. Blank page?

I am working on my first plugin. I've got a custom post type, with a meta box which has 4 fields which uses update_post_meta, & these work 100% fine. I have then tried to create a meta box that ...
0
votes
1answer
25 views

Custom metaboxes not saving after switching themes

I recently switched themes and copied over my metaboxes from the old functions.php into the new one. They show up but when I click publish/edit they dont save add_action( 'add_meta_boxes', ...
0
votes
1answer
54 views

Adding different classes to different images depending on size for fine control of image layout in posts

I have all the CSS classes set to display images in a custom portfolio theme. I am allowing for images of different sizes and proportions (landscape, portrait, etc) to be tiled next to each other and ...

1 2 3 4 5 13