How do I put a media input in the metabox? The only code I found was this:
<input type="text" name="produto_post_name1" class="regular-text content2" value="<?php echo $produto_post_name1; ?>">
<a href="#" class="button insert-media add_media" data-editor="content" title="Adicionar Imagem">
<span class="wp-media-buttons-icon"></span> Adicionar Imagem
</a>
But instead of putting in the input text up there, it puts in the content of the post, what can I do to correct it?