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

learn more… | top users | synonyms (2)

1
vote
2answers
5k views

Custom Post Type Metabox - Not Saving

I've added a custom post type, which is working great; I've also added two metaboxes, which appear to work well, but the content in them always disappears after a few minutes. If anyone could help ...
1
vote
1answer
3k views

How to add a select menu to this metabox code?

I'm using a metabox script that works great for having absolute control over the design and placement of the metabox fields. There is one problem: I can't remember where I found the script and need to ...
1
vote
2answers
680 views

How to Move the Author Metabox into the “Publish” metabox?

About a year ago I remember seeing a plugin or some code which allowed you to add an author dropdown menu to the post "publishing" metabox instead of it being on its own. I can't seem to find this ...
1
vote
4answers
59 views

MetaBox Layout for all users

I was wondering : You are an administrator : when you re-order the layout of your meta-box, in a page, or in a post, this layout is saved with your user profil : for example you drag the category box ...
1
vote
1answer
59 views

Customize 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.
1
vote
1answer
258 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 ...
1
vote
2answers
447 views

Create custom PAGE with register_post_type

The following code in functions.php outputs a post when I publish, not a Page: // custom post_type for agenda add_action( 'init', 'create_my_post_types' ); function create_my_post_types() { ...
1
vote
2answers
326 views

List of Posts in a Custom Field

I have a question. I have a custom post type called Place. I have a situation that there can be place in place. I want to have a custom field parent_place where I could choose a parent of place. The ...
1
vote
2answers
430 views

Undefined index: at_nonce in custom post metabox

I'm getting this error with my custom post metabox. The custom post and metabox works fine, but if i have debug on and when i try to save any other page or post, i will get an error: Notice: ...
1
vote
1answer
831 views

How to sort CPT by custom meta value (date), and return posts month by month

For future reference: I am using the great Meta Box Plugin to help expedite meta box creation for my custom post types. My goal: To build a highly customizable events section closely resembling a ...
1
vote
1answer
241 views

Show how many images are attached to a post/page on compose page

On the front-end, I'm using a query to show all attachments attached to the current post. However, on the compose page, there's no way for a user to see how many images are attached without opening up ...
1
vote
2answers
3k 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 ...
1
vote
1answer
40 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( ...
1
vote
1answer
330 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 ...
1
vote
2answers
332 views

special characters after saving draft interpreted as �

I am trying to create posts in hindi language. These characters UÉeÉMÑüqÉÉU after saving/publishing are interpreted as U�e�M��q��U. Though, the special characters are stored with no change in the ...
1
vote
2answers
978 views

Creating Custom Meta Boxes on Plugin Option Page

Right in my main plugin file, wp-email-capture.php I am calling this:- add_action( 'admin_init', 'wp_email_capture_add_custom_boxes'); This calls this function:- function ...
1
vote
3answers
632 views

Alternative to esc_textarea

I need an alternative function to use with textareas in meta boxes instead of esc_textarea. The problem is that when I use this function with textarea's it removes line breaks and paragraphs. Is ...
1
vote
2answers
349 views

Using My-Meta-Box-Class plugin, how is 'Date' value stored?

I've created some custom fields in a custom post type using the my-meta-box-class plugin which comes with a built in 'date' type of meta box input. I'm having a hard time ordering my custom posts by ...
1
vote
3answers
1k views

Add multiple images to a page sidebar

What I am trying to achieve is this: I have a simple page and I want to dynamically add multiple images to it on the sidebar one underneath another. I was thinking about either using meta boxes, post ...
1
vote
1answer
375 views

1 column admin screen options - move submitdiv to bottom

I'm using this code. add_filter('meta-box-order_post','one_column_for_all'); function one_column_for_all($result, $option, $user){ $result['normal'] = ...
1
vote
1answer
461 views

Changing the priority of a custom taxonomy's metabox

I'm creating a new custom taxonomy (not a custom post type). On the edit post page, this custom taxonomy is showing up above all of my other meta boxes. I'd like it to sink down lower in the group. ...
1
vote
1answer
206 views

Unbind postbox click handler

I'm trying to unbind the click handler on post metaboxes so they no longer hide when the handle is clicked. I need to do this because I use the handle to contain <select> elements & when ...
1
vote
1answer
908 views

How to display a custom post type's media library inline on meta box

I am trying to create a post type which only displays the Media Library Inline. I have got the example from this : https://gist.github.com/897503 However, nothing happens when I click "Insert ...
1
vote
1answer
79 views

dynamically generating plugin syntax

I have downloaded an audio player plugin for WP. the syntax is very simple. You just add the line [audio:my_file.mp3] to your post editor/excerpt, and call it in the loop with the_content() or ...
1
vote
2answers
398 views

Modules with meta box implementations

I am looking for some modules that implement add meta box as shown here perhaps with some ajax magic. If you have any modules I could check out would be welcome.
1
vote
1answer
309 views

Pull a post based on a meta value in a custom post type

I'm trying to display a post, from a custom post type based on a meta value in that post type, in this case a checkbox that says "if this is checked show it on the front page. Usually I write a ...
1
vote
1answer
628 views

I need a Simple image uploader with a simple screen. WP default has too many options.

Hi guys I'm looking for a metabox type plugin that can upload ONE image into the post, that works with custom post types. I don't want to use the default WP uploader because it has too many options, ...
1
vote
1answer
375 views

Is there a need for nonce with Post Metabox?

I looking at the docs for add_meta_box. They used a nonce. wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' ); I am wondering, probably the save post form itself should already ...
1
vote
1answer
301 views

Populate Custom Fields in a Custom Post Type?

I want to set up a basic 'post rating' system for my site - I don't want to use a plugin - so I want to add the custom field 'rating' to each new custom post and populate this field with the number 1. ...
1
vote
1answer
189 views

Multiple Meta Boxes in separate files

So here's the problem, I want to have a few different meta boxes on my sites, but I'd like to be able to store each of them in separate files and included them into functions, so I can just copy ...
1
vote
1answer
798 views

post-excerpt not one of the options under screen options

I want to turn the post-excerpt function on but it doesn't even show as an option under 'screen options' for posts. How do I get it to display as a check box under screen options? I have tried ...
1
vote
2answers
647 views

Metabox saves on Update or Publish, but not on Saving Draft

I have created custom post types that also have custom meta_boxes I've created. Currently, they save when I publish or update a post, but they don't save when I'm in draft mode making changes. ...
1
vote
1answer
367 views

Change meta box when the page's template is changed

For my WordPress theme I have a custom portfolio post type and a portfolio page template to display them. What I want to do is add a meta box to the edit page area, but only when the page has the ...
1
vote
1answer
440 views

metabox with custom post type values

I need to re-write a current WP website and I think Custom post types are required, combined with Meta Box. The basic layout is Author (custom) Books (custom) Photos (custom) All 3 custom post are ...
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 ...
1
vote
2answers
73 views

Access the environment of an admin page from another admin page

I've been busy thinking about a problem, and so far I didn't find a solution to it. The abstract scenario On admin page A, I would like to print the value of a (global) variable—in the context ...
1
vote
1answer
803 views

Image media upload metabox

I've created my first image upload metabox but seem to be having problems. The data doesn't get saved when I add an image then update the page - I'm sure this is a typo on my end which I'm failing ...
1
vote
1answer
435 views

Custom Taxonomy as checkbox or dropdown

I have registered a custom tax to my CPT. On the edit screen the tax meta box appears with an autocomplete field. Is it possible to display it as checkboxes or dropdown instead?
1
vote
1answer
91 views

Add new post with predefined / preset date

The current situation The plugin I'm currently working on is an additional post list view: A calendar, as you can see in the following screenshot. Admin calendar view with MP6 and handheld screen ...
1
vote
1answer
113 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.
1
vote
1answer
86 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
349 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 ...
1
vote
1answer
111 views

Category pie diagram meta box in post editing page

I am trying to build a plugin for showing a pie diagram based on the number of those categories which have maximum posts. This diagram is a meta box in post editing page. Here is my source of ...
1
vote
2answers
229 views

How to use get_post_custom function on the blog page?

First, I have a static page for homepage and for blog page too. I created a custom box for pages to setup unique background image for the pages. My idea is working on all page templates, but on blog ...
1
vote
1answer
195 views

Custom Metabox Not Saving

I've simplified a problem of saving custom metaboxes on update and still can't get the box to save the custom-field input to the database. This is the call from functions.php to an external file ...
1
vote
2answers
59 views

Make the Status, Visibility, or Date fields opened by default in the Publish box

By default, the Status, Visibility, and Date fields in the Publish metabox are closed, and you have to click Edit to show them. Is there a way to make these fields visible by default? The hidden ...
1
vote
1answer
110 views

Multiplicate entry on update_post_meta

I have a metabox with an array of input: <input type="text" name="activite_dates[]" size="30" /><br /> <input type="text" name="activite_dates[]" size="30" /><br /> <input ...
1
vote
2answers
50 views

Automatically add a tag according to custom metadata

I'm trying to figure out how to make a function to automatically add a "featured" tag to a post, based on a checkbox in a metabox I've added to the edit screen. I think the function I need to use is ...
1
vote
1answer
229 views

Better Method for Multiple Meta Boxes

I'm learning about meta boxes and have gotten them to appear on my local dev, but I can't figure out how to avoid creating new functions for saving multiple meta boxes. I assume that I could call an ...
1
vote
1answer
465 views

Arrange custom fields with drag and drop?

I am making theme for hotel and i made custom metabox with list of various custom fields that i would need in posts. What i did is i made a list of fields like booking wifienabled coffe pool spa ...