vafour / vafpress-framework

Wordpress theme options framework, check out the demo.
http://demo.vafpress.com/vafpress-framework
Other
240 stars 98 forks source link

Adding the possibility to pick a specified size #104

Open s43 opened 9 years ago

s43 commented 9 years ago

Basically the variable "attachment.url" gives in return the full size of the image, I've been through a case where I needed to pick a specific cropped size, otherwise the images shows up in a bad resolution on the front-end.

The Wp media editor gives in return two arguments, props has an object with the selected size, and attachment has almost everything about the file, including the sizes with it urls.

I fixed it for my self, and I wanted to share it with others, and hopefully it may be helpful :).

Thanks for the good work guys, keep it up!

scrobbleme commented 8 years ago

@s43 Maybe, you are interested to create a similar pull request for https://github.com/moewe-io/favpress.com

Thanks,

Adrian