Input select option Change Content in Metabox

This is totally wrong. Metaboxes are shown on post/page editing screen, so if you submit your own form, the whole page will be submitted/refreshed. Look up what a metabox is here => SO Thread You should use WP’s own functions to deal with this. Look add_meta_box() and check this tutorial to know how you should … Read more

CSS styling not working in a custom metabox

The metabox div gets an ID of ‘meta_’ + your metabox ID, thus: Sorry, that was me looking at my own metaboxes, forgetting that I actually prefix them like that to differentiate the container from elements within the container 🙁 Let’s work through your code and see if we can find the answer. First, your … Read more

How do I allow Authors and Contributors to use the metabox

Maybe they are just disabled? I’ve already seen a lot of people tripping over this one: On the top right of the edit screen you can see “Screen Options”. If you open this section you can enable and disable meta boxes. Maybe yours is deactivated? Source: Screen Options

Saving an upload media meta box field

use these: $imgurl = isset( $values[‘upload_image’] ) ? esc_attr( $values[‘upload_image’][0] ) : ”; <input id=”upload_image” type=”text” size=”36″ name=”upload_image” value=”<?php echo $imgurl; ?>” /> <input id=”upload_image_button” type=”button” value=”Upload Image” /> if( isset( $_POST[‘upload_image’] ) ) update_post_meta( $post_id, ‘upload_image’, wp_kses_data( $_POST[‘upload_image’] ) );