E
E
Evgeny Samsonov2016-03-21 11:11:25
WordPress
Evgeny Samsonov, 2016-03-21 11:11:25

How to get an image of the right size in Wordpress?

The task is this. Images of completely different sizes are inserted into the post, that is, large, medium, etc.
I need to get links to images and change them to my custom-size from function.php.
Previously, I did this: I changed all the pictures to 150x150, and then, depending on the needs, I substituted another ending like "-1920x1080.jpg". But all good things come to an end quickly and this crutch is no longer relevant, images with a free height were required.
The question is how do I match the pictures from the posts with my required size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Samsonov, 2016-03-21
@kentastik

So far, the best idea is to search by part of the name in the folder for a suitable picture, but is there really nothing built into the VI in this regard?...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question