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

learn more… | top users | synonyms (2)

0
votes
1answer
9 views

How to add metabox for post of specific category

I want to add Metabox for the posts of category=18 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
1answer
11 views

Unable to Call More than One Meta Box Output

I have a custom meta box with multiple text fields. I use this to call the information in the first box: <?php the_post(); echo get_post_meta( get_the_ID(), 'dbt_text', true ); ?> And this to ...
0
votes
1answer
35 views

Using radio button meta data from a custom meta box

Very new to attempting PHP and am hacking together my first plugin using tutorials.. I have a custom meta box with a Yes/No radio button on all WordPress pages (in the editor). EDIT- I removed the ...
0
votes
0answers
19 views

How to add jquery to my custom post type wp plugin

I want to include a jquery to my wordpress custom post type plugin which i have created. i have two doubt,,, the jquery script will work only on widget options (i.e) Sidebar. So when i use the ...
0
votes
0answers
8 views

Hooking into the Meta Boxes (Name/Web Address/Description) on the 'Add New Link' Page

Is there a way to modify/adjust the meta boxes (Name/Web Address/Description) on the 'Add New Link' page? I'm trying to add some jQuery functionality to them but am unsure how to 'hook' into them.
0
votes
0answers
35 views

WordPress check if value equals and echo “checked”

Having some trouble with checking a query against another and outputting a value of checked if it matches. Have tried placing the get_post_meta in a foreach loop and it didn't work, It needs to pull ...
0
votes
0answers
23 views

add_meta_box issues

I have the following code in functions.php: add_action( 'add_meta_boxes', 'create_meta' ); function create_meta(){ add_meta_box( 'Session details', 'Details', 'create_details', 'portfolio', ...
0
votes
1answer
25 views

save_post not called in plugin / custom field still saving overwriting metaboxes

I have a plugin that writes metaboxes to certain pages. It writes the metaboxes fine and everything works as should...until I save. The save_post is not getting called, and I can't figure out why. ...
0
votes
1answer
46 views

Adding a metabox shortcode “paypal accept payment” in my custom post type back-end

I have created a science journal with annotum theme, now I want users to pay when they publish an article, but I don't have programming skills to do this when they click publish to pay with paypal, so ...
0
votes
1answer
31 views

Correct way to make meta box with more than one meta field secure

I used several online tutorials to make a plugin that has a meta box that contains more than one field. It seems to work fine and save the data however I just want to ensure that my plugin is secure. ...
0
votes
0answers
22 views

Individual page data in one page template

So I am trying to create a one page template but still allow the user to add separate pages in the admin panel. What I did to output all the pages in one template file is as followed: <?php ...
0
votes
0answers
17 views

Change taxonomy to metabox?

I created a custom taxonomy, but I need the taxonomy values in a metabox within the same post. How can I archive this? I tried several plugins for taxonomy management, but none of them could do what ...
0
votes
0answers
27 views

Post Categories Meta Box: Customize Most Used Tab

On the Edit Post page, within the Categories meta box, I’m looking for a way to put custom categories into the Most Used tab for easy category selection. The issue: There are a large amount of ...
0
votes
0answers
15 views

Can't drag and expand meta boxes when adding post

When I try to add a post, I can't expand and drag meta boxes, however, when I try to edit posts, I can. I already have re-uploaded the original files of post-new.php and post.php Why is this ...
1
vote
1answer
25 views

How to access global $wp_meta_boxes variable on front-end?

Is there a way to take the global $wp_meta_boxes variable to be used in the front-end? Currently the $wp_meta_boxes is accessible on specific admin pages only. I've found a similar question about ...
0
votes
1answer
27 views

Second select list values are not saved after clicking update

I have a select list in a metabox which value is saved successfully after clicking "Update" when editing post. Of course, the values are custom taxonomies. But i don't know how to add another select ...
0
votes
1answer
16 views

Save data of select list after clicking save

I already have a meta box in the edit post that has a select list with custom taxonomies. But after i save the post the select list returns it value to none, so i don't know how to save the selected ...
0
votes
0answers
24 views

Change author of custom post to meta key

i have custom post type with custom meta key called "show_program_editors" , and when "admin" add new post in it, i need to save post author as show_program_editors value,not save to admin. how can ...
0
votes
2answers
58 views

remove_meta_box for all post types doesn't seem to work

To remove a metabox from all post types at once, using a foreach seems like the logical thing to do. However it doesn't always work and I don't understand why. For examlple viewing the "Post" post ...
0
votes
0answers
27 views

Undefined index error when saving content on metabox

I am trying to debug 'undefined index' errors on the WP backend when debug is set to TRUE. The offending lines are: if ( !wp_verify_nonce( $_POST['pdwt_meta_noncename'], ...
0
votes
1answer
28 views

Query to get all the posts of more than 2 meta_value having same meta_key?

Meta_value will have checkbox infront of them so when both the check box is selected posts related to both the meta_value will be displayed.
0
votes
1answer
43 views

Repeatable field within repeatable group of fields

Compounding on Saving metabox repeatable fields ... I've created a metabox with a series of fields that are repeatable. However, within those fields, I'd like to create another field named Choices ...
0
votes
0answers
26 views

Toggle a metabox based on a selection

Is there a way to toggle a custom metabox based on a custom drop down selection for a custom post type? What I mean is I would like my custom post "proposal" to display different metaboxes based on ...
1
vote
1answer
42 views

Wordpress metabox file upload in custom post [duplicate]

I'm relatively new to wordpres development and am stuck at this issue. I have created a custom post type which shows up in the admin menu. I need a metabox in it with a file upload field. The metabox ...
0
votes
1answer
25 views

Dynamically replicate custom metabox in custom post type

I'm building a custom post type in Wordpress which will be used to author and display BuzzFeed style quizzes on a clients blog. Within the custom post type there are custom meta-boxes which represent ...
0
votes
2answers
42 views

How to add multiple images to a custom post type single post?

I have created a custom post type and I need to add multiple images to every single post, so I can create a loop and use them in a slider. So far my search on Google etc. has turned up nothing. ...
0
votes
1answer
25 views

Get post related to particular meta box? [closed]

I have created few metaboxes and i would like to show the post related to that particular metabox value. Just like we get the post related to tags or categories.
0
votes
2answers
37 views

Questions regarding add_meta_box()

Registered a custom post type (xyz) and after that added a meta box using this excellent Tuts+ tutorial, so then I can reduce the usage of 'Advanced Custom Fields' where I can (but I love ACF most). ...
0
votes
1answer
29 views

Display a post count from a custom metabox selection

I was wondering if this is possible. I have a custom post type call projects that displays a metabox with drop down menu. In that drop down menu I have a few choices listed, draft, open, pending, ...
0
votes
1answer
13 views

Set post title to same value as a tow meta box

I've removed "Title" from a custom post type that I created. Which makes it that all new posts gets the name "Auto Draft". To get around this I want to be able to fetch a value/post name from a meta ...
0
votes
1answer
28 views

Custom post type's slug gets wrong when adding a custom meta box

I'm trying for hours now to find the error moving back and forth. I have a custom post type. Everything works fine until I add my custom meta box. Now suddenly the slug gets the title of one of ...
0
votes
0answers
23 views

How to get rid of error message of custom metabox in dashboard when moving out of edit page?

in plugins folder i'have custom-post-metabox folder, inside it custom-post-metabox.php, admin.js and admin.css. //code of custom-post-metabox.php <?php /** * Plugin Name: Custom Post Meta Box * ...
0
votes
1answer
49 views

How to store the value of a custom field dropdown select for post referencing?

I'm trying to reference posts to each other. Editors should have a custom field select list of certain post's titles to link the current post with other posts. I got quite far, I think. The select ...
1
vote
0answers
23 views

Including a meta box on a plugin page

I want to include the 'Comments' meta box (the one usually seen on the post creation page) on my plugin's admin page. Is there a way to do that? I am aware of how you can use add_meta_box() to add a ...
0
votes
1answer
26 views

Meta box not appearing in my custom post type

I followed this tutorial on how to create a metabox on a custom post type I made and, at the time, it worked perfectly. the fist time worked like a charm. This time though, In a very similar ...
0
votes
1answer
29 views

Custom SINGLE page with custom metaboxes and custom template

I run in this situation where I must create complex contacts page with custom template, custom meta boxes. I know how to make custom post type, add meta boxes and display all information in custom ...
0
votes
0answers
36 views

Adding Radio Options or Select Options to Meta Box Title

I am adding Radio Options and Select Options to miscellaneous Meta Box titles. The HTML is rendering just fine in the title of each appropriate Meta Box title. There seems to be a bit of ...
0
votes
0answers
19 views

Contact form with dynamic recipient

I am creating profiles of people where each person is a custompost; I need my customposts have a contact form send mail to different recipient. I have already created a Metabox in which to put the ...
1
vote
1answer
72 views

How to create a Custom Meta Box with Name/Value Admin User Input Fields?

I have researched many tutorials on how to create/add Custom Meta Boxes using the add_meta_box() Wordpress function. I can not find any example where the finished Meta Box has the option for an Admin ...
0
votes
1answer
32 views

Hiding Metabox from Screen Options Pull Down

I've created a Custom Post Type (CPT) which has 2 metaboxes. On the Edit Page for the CPT, the screen options pull down (at top) displays the metaboxes and gives the user the option to "Show on ...
0
votes
1answer
43 views

Add character count to custom metabox

I know of a way to add a character counter to the excerpt metabox in WP, but I would like to add a character counter to a custom metabox. The following script is getting the counter in the metabox, ...
0
votes
0answers
16 views

Sort posts of custom_post_type according other post_type with metabox

I'll try to be as specific as possible because it's a bit confusing what I require. I'm trying to make a connection between two post_types with the help of a Metabox; This Metabox is showing in ...
0
votes
0answers
17 views

Nested Meta boxes?

I am trying to set up a plugin that will add a meta box to the posts admin page asking one simple question: How many authors will add their 2 cents? The question is in a dropdown with a possible 4 ...
0
votes
2answers
63 views

Display custom meta box in my template file

Need help displaying my custom meta boxes on a template file. Following a tutorial Here's the code from my functions.php: function get_custom_field( $value ) { global $post; $custom_field = ...
0
votes
1answer
29 views

WPAlchemy Metabox rewriting slug

So here's my problem: I've created a Custom Post Type called "Projects". I've successfully added several metaboxes via WPAlchemy already. Those work fine. Where I'm having a problem is when I create a ...
1
vote
1answer
37 views

Using POST method in meta box, no results

I'm having trouble figuring out what's going wrong with my code. I created a meta box for a custom post type (project) that adds people to the project via the edit project page. The box also displays ...
0
votes
0answers
21 views

Media upload freezes according to metabox order

I created a custom post type and 3 metaboxes for it in the admin section. It looks great and the admin panel for that custom post has, indeed, the 3 boxes. These boxes have all the same code (with a ...
0
votes
0answers
25 views

Meta box not displaying properly

I am creating a plugin that will display list of a few posts at the bottom of each post. I created a meta box which content will be displaying with the each list of posts. Problem is, if I give ...
0
votes
2answers
63 views

Save checkboxes of a metabox with a foreach loop (invalid argument)

I'm new to Wordpress plugin development and I'm trying to create a list of checkboxes (from a WP Query) to associate as custom fields for a specific post type. Nothing wrong with the display function, ...
0
votes
0answers
22 views

Default value in wordpress metabox

I would like to set as default 'small_post_size' on my metabox options. I set 'std' options but it doesn't work. Can you help me? $meta_boxes[] = array( 'id' => 'post_size', ...