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

learn more… | top users | synonyms (2)

0
votes
0answers
12 views

Need WordPress metabox with multiple checkbox [on hold]

I need a metabox with multiple checkbox,could somebody telss the code
1
vote
0answers
18 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
1
vote
1answer
28 views

Custom Post Type with Templates using Meta Boxes?

I have this issue where I need a CPT to have several layout options and use templates. Originally, WP does not support templates for custom posts, however I know its possible to do it manually via ...
0
votes
1answer
21 views

How do I allow Authors and Contributors to use the metabox

i add meta box for custom post type and all user no-admin cannot show it. How can solved this ?? add_action( 'add_meta_boxes', 'comic_meta_box' ); function comic_meta_box() { ...
-2
votes
1answer
23 views

Canot save post if any meta box was empty

I need to dont save new post from custom post type if any meta box empty. So we must check the meta if empty, we mus show me " You must fill all meta box value before save post" else if all meta ...
0
votes
0answers
7 views

Add another field with javascript or delete field

I need Help with code for wordpress I have a new field with price and i want to know how do i add button to add the new service in February filduri seerviciului name and price I ued this code ...
0
votes
0answers
15 views

Meta box Custom Validation Not working [closed]

In the latest version of Meta Box plugin there is a new 'validation' meta-box argument that allows specifying validation rules and messages using jquery.validate syntax. I tried this for my project. ...
0
votes
0answers
19 views

Custom meta-box for all custom post types

I want to create a custom meta-box for all custom post types: post, page, and every custom post type (portfolio, testimonials, FAQs, quotes, reviews...). But without writing them into the array: ...
0
votes
1answer
26 views

Edit post meta direct from post.php?

Does anyone know of an easy way to be able to edit ALL of a single post's meta at once ie on the post.php &action=edit page? As some of the meta has been put in there with the update_post_meta() ...
0
votes
0answers
10 views

How to enable certain screen options on particular page page

In my screen options i have 5 different options, they are 1) Camp schedule 2) Services 3) Map 4) Address 5) Opinion form I want to enable/check these options on certain particular page not ...
0
votes
0answers
15 views

Create a custom profile field that will have a selectable list of a particular CPT by the same author

My situation is this - I have 4 CPTs - Projects, Drafts, Collab request, and Query. Now, each of the 3 latter CPTs will always have a project CPT associated with it. For example, Drafts will always ...
0
votes
1answer
22 views

How can add metabox for post of specific category before save post and after save post

I want to add Metabox for the posts of category=5 and i am using the following code but unable to do so . So please help me out-> add_action('admin_init','my_meta_init'); function my_meta_init() { ...
0
votes
0answers
9 views

Disable drag metaboxes, create many functions using js not to work!

when i Disable dragging metaboxes in admin, it seems to make some problems. when i use this code: function disable_drag_metaboxs() { wp_deregister_script('postbox'); } add_action( 'admin_init', ...
0
votes
2answers
19 views

Looking for suggestions on creating simple database (Help!!)

I'm working on creating a basic database for a theatre and really need some suggestions as the best way to approach this. Each production from this theatre will have its own page. The page should ...
0
votes
1answer
23 views

Admin Panel - Disable Moving Selected Terms To Top of Metabox

By default whenever you select a category it moved it to the top of the term list, which in most cases it pretty user friendly. I want to disable this featured and leave my term list in the default ...
2
votes
1answer
51 views

Move excerpt to always be directly below post content in admin

Sometimes, due to meta boxes added by plugins, the excerpt gets moved down the order in the admin page. Is there a way I can force it to always be directly below the post content? Here is the way ...
0
votes
1answer
23 views

Some comment box wordpress in 1 post [closed]

Can I add more sections to comment on the same post? For example, I have an Entry and it has 4 tabs, In every tab you need a comments section, Is this possible? Thanks
0
votes
1answer
31 views

Using Meta Boxes in a Custom Page Template

I'm doing some custom coding and creating a new page template to use for a new page within Wordpress. I'm trying to add a meta box to the page to be displayed as output to the user. I tried to do the ...
0
votes
1answer
13 views

Is it possible to dynamically register menus?

I have a template, lets call it menu.php, which contains a menu. I would like the user to set the menu on this page by using WordPress's own menus, so I don't have to create something custom for it. ...
0
votes
1answer
22 views

Should meta boxes for specific pages be save in their own plugins?

I realize this is a subjective question, but I need some opinions on where to put functionality like meta boxes that belong to specific pages. Let's say I have a template called Gallery Page. On that ...
1
vote
0answers
68 views

How to add meta boxes(repeater fields) from WordPress back end?

I have a custom post type 'service'. Each service will have items. For each item there would be 'name of item' and 'price'. Earlier i created meta boxes for 5 items i.e 10 meta boxes in total, which i ...
0
votes
1answer
15 views

meta_box: update_post_meta for <input disabled>

I have code (add custom field to post edit page): case 'text': echo '<input type="text" name="', $field['id'], '" id="', $field['id'], '" value="', $meta ? $meta : $field['std'], '" ...
0
votes
1answer
50 views

How can i embbed two different galleries in custom post type

I have a created a custom post type 'services'.I want to upload and embed two different galleries. I researched and got various codes to create meta boxes from where one can upload the image. But ...
0
votes
1answer
19 views

Editor meta box Showing but not saving

I am trying to create an editor meta box and I have been following tips found in other similar questions without luck in getting the meta box to save and display its content. The meta box shows but ...
0
votes
2answers
67 views

How to show/hide a meta box using categories, with a different post type

The following code hides a meta box when certain categories are selected using jquery, in post editor. It works with post as the custom post type. I need it to work with a custom post type called ...
0
votes
1answer
26 views

Get all Custom Post Types

I am creating a WP theme with a built in custom post type (and I am using WPAlchemy to add a couple of custom metaboxes). $theme_custom_metabox = new WPAlchemy_MetaBox( array( 'id' => ...
0
votes
1answer
21 views

Meta box checkbox won't save

I have several fields mostly text inputs to save additional info to the posts, all the text boxes save but i cant't get the checkbox to save the value! Wondered whether any of you geniuses out there ...
0
votes
2answers
33 views

Global Variable vs Local Variable

// MOVE REVISIONS METABOX TO BOTTOM OF EDIT-FORM.PHP $post_types = get_post_types(); add_action('do_meta_boxes', 'batteryboys_reorder_meta_boxes'); function batteryboys_reorder_meta_boxes(){ ...
0
votes
1answer
27 views

When post is updated, custom metadata in text area field is overwritten

I have set up 2 new post meta fields in order to add functionality to a custom post type. The custom fields generally work as expected, with a couple exceptions. I set up a checkbox (called ...
1
vote
1answer
42 views

Display custom post on home page based on a metabox selection

I am trying to display an post to my home page based on a selection. What I mean is in the backend I have a custom post that has a metabox labeled Assign to Home with a drop down that has a selection ...
0
votes
0answers
8 views

changing specific text in the categories meta box

I'd like to customize the categories meta box (the one you see when adding or editing a post). I need to rename the word "Categories" and "Category" to something else, please see the screenshot for ...
0
votes
0answers
14 views

Meta Box size issue. How to resize it properly?

I cant figure it out how to resize meta box . I did try to add something like rows="5" cols="60" but no luck. With width and height box resizes but when text fills the box it continues to the right it ...
0
votes
1answer
15 views

How to Arrange Support => Thumbnail

Good Afternoon, I've created a CPT that mainly uses Featured Images, I would like to know how to rearrange this box to appear in the center where 'content editor' would go instead of the right ...
1
vote
0answers
23 views

Add custom buttons with custom actions in Edit Post screen in WordPress?

I am creating something for a client and I have a Class that I created with a Custom Post Type called 'PuSH Feeds' and when the user adds a new post and publishes it they can then click on one of two ...
0
votes
0answers
40 views

A correct hook for saving meta boxes data

Nothing happens when I do the var_dump() in a callback on post save. Here are the hooks I've tried: save_post as shown in the codex pre_post_update as suggested here wp_insert_post_data found in ...
0
votes
0answers
24 views

Does a codex exist for creating meta boxes in taxonomy

I am looking for WordPress official documentation to create meta boxes in a taxonomy. There are many tutorials, but each of them is completely different. I don't want to use any plugins. I need the ...
0
votes
0answers
93 views

Multiple Checkboxes Metabox

My goal is this: I've added an additional metabox to my post page. Within this metabox there are multiple checkboxes. Each checkbox is associated with a person's name. The idea is that, if a person ...
0
votes
0answers
243 views

Adding jQuery datepicker to Custom Post Type Metabox

I've created a custom post type metabox which displays and functions fine. The problem is with the datepicker it just doesn't seem to work, when clicking the metabox youre able to type in it rather ...
0
votes
0answers
19 views

Pages checkboxes in a metabox

This is regarding the post reply you made here: Listing Pages With Checkboxes In a Metabox (and saving them) I am also trying to implement the same with the same code you posted, on function.php. But ...
0
votes
1answer
39 views

saving dropdown menu data on custom post type

I'm following this tutorial on how to make a custom field. I already used it before and it worked, but I only did it for text inputs. Now I'd like to make a drop down menu and I'm unable. The thing ...
0
votes
1answer
24 views

Problem in custom meta boxes

I am trying to create a custom meta box "Set your mood" which will display the mood of user but unfortunately meta box is not saving value. Please help This is my code <?php /** * Adds a box ...
0
votes
1answer
14 views

Default taxonomy 'post_tag' added to CPT managing by custom role : nothing in the metabox

I've created a Custom post type, which a custom role can manage : it has only the capabilities for managing this CPT. When registering the CPT, I've set the argument : 'taxonomies' => array( ...
0
votes
0answers
25 views

How do I make multiple image uploads with WordPress metabox?

HelloI created an Image upload with WordPress Meta-box, but it works only with "JPG" extension By this code function add_custom_meta_boxes() { // Define the custom attachment for posts ...
0
votes
1answer
60 views

How can i get multi checkboxes value in metbox?

I make list of check boxes by WordPress meta-box and i can not get this value in my theme. i can get my text value with this code <? echo get_post_meta($post->ID, $prefix . 'text', true); ...
0
votes
0answers
23 views

Reusable Custom WordPress Meta Boxes tax_select field into repeatable fields

i'm using this https://github.com/tammyhart/Reusable-Custom-WordPress-Meta-Boxes and when i try to insert taxonomy select into some repeatable field i have some trouble and no options are displayed. ...
0
votes
0answers
20 views

Options.php metabox options submit hook

Good day ! Please advice what hook to use, when user click submit button at options.php page in metabox with settings_fields ? Thanks ! //Vladimir
0
votes
0answers
9 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
0
votes
1answer
25 views

Metaboxes - why they don't render php in expected manner?

I was playing with metaboxes following one tutorial. I came to a point where I could add any code and it would be displayed in the metabox. I tried echoing something and it was ok. Then I wanted to ...
1
vote
0answers
112 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
0answers
95 views

custom field meta-box with dropdown/autocomplete

Is it possible to have a custom metabox with the ability to either: enter a new meta_value in a certain meta_key OR choose from a list of the existing meta_keys, from a dropdown/select-box, ...