Get multiple sizes of same image?
-
I’m building a gallery plugin. I have an array of image IDs, and I want the most efficient way to get the full url of those images, but in multiple sizes. For example, I need the “Full” url for the expanded view, and the “Thumbnail” url for the slider control.
I’ve noticed that wp_get_attachment_image will return the “file” but that’s relative to the directory it’s uploaded to (which might be set to month/year).
What’s the best way to return the entire url?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get multiple sizes of same image?’ is closed to new replies.