Hello friends, there is a valid type of record, or the main one, this is not the point. It is necessary to add a field to it that will write an array of images uploaded by the user (via the admin interface). In general, this is the whole task)
UPD Noted that requires editing, I will try to add
function my_meta_box() { add_meta_box( 'my_meta_box', 'My Meta Box', 'show_my_metabox', 'post', 'normal', 'high'); } add_action('add_meta_boxes', 'my_meta_box'); $meta_fields = array( array( 'label' => 'Галерея', 'desc' => '', 'id' => 'price', 'type' => 'text' // ?? )
In general, the standard code for creating your own data entry field. It is necessary to make it so that this field would accept the link from the images inserted by the user through the standard WP interface for working with media files. Actually interested in how to do it.
UPD2 Perhaps this can somehow be implemented through standard work with galleries wp [gallery ids = "1,2,3"] - is this an array and can it be taken as an array for the theme output? It is only necessary that this array be written to a separate variable in a separate field.