M
M
mts20502016-02-23 12:20:00
Web development
mts2050, 2016-02-23 12:20:00

[WP] How to upload different image sizes?

Tell me how to make it so that different image sizes are loaded on WP.
Specifically, you need to make sure that when adding to a record, only one file is created, and when adding a thumbnail, 4 files of different sizes are created.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Kolesnichenko, 2016-02-23
@Negatiff

In functions.php

add_image_size( 'thumb1', 220, 180,true );
add_image_size( 'thumb2', 220, 180,true );
add_image_size( 'thumb3', 220, 180,true );
add_image_size( 'thumb4', 220, 180,true );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question