How to upload multiple images to a record(post)?

Started to learn WordPress. After MODx is tight.

Pulled layout on WP.
How to download multiple photos in one entry (each entry there is a slider of images)? And how they then withdraw?
July 9th 19 at 13:18
2 answers
July 9th 19 at 13:20
Solution
Recently answered a similar question: https://toster.ru/answer?answer_id=814248
You need to use the plugin PODS and custom field to upload images. The response code is output many images. The code is easily adapted to any slider.
In the admin interface of add/editing photos will look as follows:
6a02ecac29ef46b2bcc665a53f05d385.png
I recommend you examine the PODS plugin will be very useful in working with WordPress.
Thanks for the reply! This is what you need!
I was surprised that a couple of days looking for a solution and have not found a sensible answer. - kara.Hu commented on July 9th 19 at 13:23
also wanted to ask, I can't find where to change the caption of this field - you have it named "Image". - kara.Hu commented on July 9th 19 at 13:26
in Pods admin > Edit pods, find there the advanced post type or a new type, click edit. Then find your additional field and in its settings you can change the name. Reproduce the sequence from memory, so the response can be inaccurate. - santina90 commented on July 9th 19 at 13:29
: you probably misunderstood me, I meant how to edit the Title of this window (you have the picture named "Image"). By default, it is named More Fields. How to change - I don't know. - kara.Hu commented on July 9th 19 at 13:32
itself asked - itself answered :)
Solution: add to functions.php piece:
add_filter( 'pods_meta_default_box_title', 'slug_pods_metabox_title' );
slug_pods_metabox_title function( $title ) {
$title = __( 'Images slider', 'pods' );
return $title;
}

I should add, surprised how such a simple plugin there is no field for the title, because often, we developers have to make a product for ordinary people, and the title "More Fields" will not suffice. - kara.Hu commented on July 9th 19 at 13:35
: Yes, all right. By the way, alternatively you can create multiple groups of Windows and immediately ask the name of the group:
add_action( 'pods_meta_groups', 'my_metaboxes', 10, 2 );
my_metaboxes function ( $type, $name ) {
// Add a new meta group for the example post type
pods_group_add( 'example_pod', 'field Group', 'field1, field2' );
} - santina90 commented on July 9th 19 at 13:38
Thanks, will add to the notebook so as not to forget :) - kara.Hu commented on July 9th 19 at 13:41
July 9th 19 at 13:22
Multiple image upload wordpress supports by default pressing the button add Media files.

To insert into the record (page) of several images in the open media window click on the image adriannas SHIFt, there will be show after click in Insert record

fd9e1c3a8e2c44bebf40df20153897ab.PNG
Thanks for the reply! But, this is not suitable, because this function puts the media files into the input field content. - kara.Hu commented on July 9th 19 at 13:25
: Where you need to put them? - kara.Hu commented on July 9th 19 at 13:28
The point is that there is a template post, which on the page has a content part with text. Followed by a slider (using the Swiper).
As necessary, answered .

Explain why it is so: input Field images in a slider for an ordinary user who will create posts, very convenient and intuitive than the mess of text and images in a single input box. Plus, really don't want to write a content parser that will look for the group of pictures and wrap them in the desired container. - santina90 commented on July 9th 19 at 13:31

Find more questions by tags WordPress