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

learn more… | top users | synonyms (2)

0
votes
0answers
9 views

2 instances of same widget on the admin dashboard

I find the "Google Analytics Dashboard for WP" plugin very good and I especially like the admin dashboard widget/metabox (not sure about the right name). Problem is, it show only one stat at the time ...
0
votes
1answer
27 views

custom field not saved

help me please: my custom metabox not save !! #add a metabox add_action( 'add_meta_boxes', 'adding_meta_box' ); function adding_meta_box() { add_meta_box( 'meta_box_id', 'اطلاعات پست', ...
0
votes
0answers
24 views

filters to pass html correctly from tinyMCE meta box

I have a meta box that uses tinyMCE but all html tags I use are simply being passed as text instead of correctly encoded on the page. Seems to be a filters issue, but I have no idea where to apply ...
0
votes
1answer
37 views

Automating the process of shortcode generation in a plugin - how is it done?

Automatic short code generation is a technique that I see many plugin authors use but unfortunately, I have yet to come across a tutorial that details this subject so I am hoping that someone in this ...
1
vote
1answer
27 views

Understanding and using metaboxes in posts

I am developing my first theme that is not dependent on a parent theme but I am running into some back-end problems. I'm trying to add a metabox to all posts that are being written. This question is ...
0
votes
0answers
33 views

how to get post by metabox in wp_query

I want to WP_query by tag_id but i need to insert tag_id by metabox i cant do it and give wrong any one help me? $value = get_post_meta( $post->ID, '_my_meta_value_key', true ); <?php ...
0
votes
1answer
38 views

add_meta_box creating default form field types

I'm using add_meta_box as per the Codex entry. My question is about the 'callback' to print the form fields on the admin page. In the Codex, the form fields are echoed as written out HTML elements, ...
0
votes
0answers
15 views

Meta Checkbox To Do An Action

i have a meta box with a checkbox inside. I want it so if the check box is check and then the page updated for the page to remember that box box was checked and to also change the featured image. Any ...
0
votes
0answers
127 views

WP media manager in metabox to choose all media types

I'm trying to make a metabox for featured media on my posts, and would like to use the Media Manager like it is used in the editor, which is with all the options. I've tried this and similar things ...
0
votes
0answers
51 views

Saving an upload media meta box field

I'm using the answer for this previous question (link below) to generate a custom meta box with media upload functionality: Properly add an upload media button in a meta box field I've managed to ...
0
votes
0answers
44 views

Post structure for TV Shows or Shows

I wanted to know what is the proper way to structure post types or taxonomy for TV shows. Following below is what I am trying to accomplish using post type. - Series: Name,Title,Description -- ...
-1
votes
1answer
68 views

How to restrict the amount of categories/post tags/terms for a post type post

I'm in need of a solution that allows me to restrict the user/author to only use maximum of two categories per new post. One post can only have one or two categories. The only similar solution that ...
0
votes
1answer
49 views

Custom meta box save values issues - Deprecated: Function ereg() and more

I'm a WP theme dev nobie and I have problems with saving custom meta boxes values. I found some tutorial where its explained how to do this. I have included a file called custom-meta-boxes-save.php ...
0
votes
0answers
31 views

Custom metabox for multiple images gives a JQuery error saying a function does nog exist

I have a script that creates a custom metabox and makes it possible to upload multiple images to one page post. It gives me no error but the console tells me this: TypeError: add_field_row is not a ...
0
votes
3answers
86 views

Meta box data not saving

I have just started working with custom post types and meta fields/data. I'm able to get the custom post and meta field to appear. It just won't save. I've been staring at the code and reading up ...
1
vote
0answers
123 views

How to Add multiple instance of meta box to custom post type

I am able to make custom post type and custom meta box but my situation is that i want to attach multiple instance of custom meta box to custom post type. my custom post type is show which have ...
0
votes
1answer
74 views

WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox

I'm currently working with WPAlchemy class to create a metabox in a custom post type (Events from EventEspresso plugin more precisely). This metabox should be able to call the media uploader and ...
0
votes
0answers
7 views

Creating button in meta box that downloads CSV file [duplicate]

So I try to put a button in side a meta box in an admin page editor. <input id="csv" class="code" type="submit" name="emails-download" value="Download" /> after I submit it I can't see the ...
0
votes
0answers
9 views

Custom action in meta box

I have added a meta box to the order info page on WooCommerce but can grasp how I can run an action on the order? I have created the box using: /** * Part to add a meta box to the order info page ...
2
votes
3answers
64 views

How do I remove all the metaboxes for a custom post type?

What's an effective way of removing all the meta boxes for a specific post type in Wordpress? The only solution for removing metaboxes at all that I've found seems to be the remove_meta_box() ...
0
votes
1answer
60 views

save metabox with new values _wp_page_template

I created a metabox to display the page templates and select a different one with a radiobutton selection. This is a replacement for the current page attributes metabox. I'm missing something with ...
0
votes
1answer
77 views

Multiple category filters

I'm working on an events plugin for a client and I need several 'categories filters'. Now I have arguments for a post type, I've registered that post type and taxonomy, and I created another taxonomy. ...
1
vote
0answers
36 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
74 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 ...
-1
votes
1answer
24 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
43 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
9 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
35 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
48 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
14 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
28 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
67 views

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

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
23 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
40 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
49 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 ...
3
votes
1answer
110 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
24 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
52 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
18 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
37 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
130 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
31 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
58 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
36 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
219 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
39 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
37 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
51 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
48 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
93 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 ...