-1

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() {
        add_meta_box( 
             'small_pic_video_song_id',
             'Upload media',
             'small_pic_video_song_function',
             'muplaod' 
          );                
    };

function small_pic_video_song_function()

 {



    global $post;


?>
    <div class="picurlid" >

    <br /><br />

    <label>  pic url

    <input type="text" name="small_pic_url" value="<?php echo get_post_meta( $post->ID,'small_pic_url', true );?>" style="width:500px;"/>

    </label>

    <br /><br />  

    </div><!-- end pic url -->


    <?



 }
2
  • How can't they use it? Not appearing, not working?? Also please include the code from your callback small_pic_video_song_function.
    – David Gard
    Commented Jan 22, 2015 at 13:14
  • @DavidGard i update my post see all function you need Commented Jan 22, 2015 at 13:19

1 Answer 1

1

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?

Screen Options

Source: Screen Options

9
  • the Contributors don't have "Screen Options" Commented Jan 22, 2015 at 13:38
  • You mean you do not see the Screen Options at all or just not your meta box listed?
    – kraftner
    Commented Jan 22, 2015 at 13:43
  • any user in Contributors roles not see Screen Options. but admin can see Screen Options and metabox above Commented Jan 22, 2015 at 14:07
  • 1
    Please try disabling all plugins and using a default theme to see if this persists. This is not WordPress default behaviour.
    – kraftner
    Commented Jan 22, 2015 at 14:11
  • i don't have any plugin and i use the default theme :) Commented Jan 22, 2015 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.