• I have the follwoing code:

    function create_custom_meta_box() {
          add_meta_box( 'Intro', __('Intro'), 'post_intro_meta_box', 'post', 'normal', 'high' );
          add_meta_box( 'Intro', __('Intro'), 'post_intro_meta_box', 'page', 'normal', 'high' );
          add_meta_box( 'RelatedImage', __('Related images'), 'related_images_meta_box', 'post', 'normal', 'high' );
          add_meta_box( 'RelatedImage', __('Related images'), 'related_images_meta_box', 'page', 'normal', 'high' );
          add_meta_box( 'GuestAuthor', __('Guest Author'), 'author_meta_box', 'post', 'normal', 'low' );
        }

    As you can see, I’m using ‘Intro’ and ‘RelatedImage’ twice. Is this wrong? Do they have to be unique?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need to clarify the usage of add_meta_box in WordPress’ is closed to new replies.