WordPress Custom Field

Tạo Custom Field Upload Media trên WordPress

Bài viết sau mình sẽ hướng dẫn các bạn tạo 1 custom field trong WordPress có button upload media để upload ảnh: Bước 1: Đầu tiên chúng ta tạo ra 1 metabox có giao diện như bên trên: <?php function vinasupport_custom_meta_boxes( $post_type, $post ) { add_meta_box( ‘vinasupport-meta-box’, __( ‘Custom Image’ ), ‘render_vinasupport_meta_box’, array(‘post’, ‘page’), //post […]