times / acf-to-wp-api

Puts all ACF fields from posts, pages, custom post types, attachments and taxonomy terms, into the WP-API output under the 'acf' key

Home Page:http://wordpress.org/plugins/acf-to-wp-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ACF Image size

apsolut opened this issue · comments

Can we somehow output Custom Image Size, so its not original (image) url in Output of ACF?

I've just tested this and you are already able to do this via ACF (see attached screenshot of example ACF data in the WP-API json output). This allows you to get a full listing of all available image sizes, under the sizes key.

To do so, make sure when you set up your Image custom field in ACF, you set the Return Value to Image Object (see second screenshot).

Let me know if this solves your problem.

Example output
screen shot 2015-05-11 at 10 11 28

ACF Image config
screen shot 2015-05-11 at 10 12 46

Thanks just realized that, easier and safer for future to use (not to edit json output),
ACF5 is "Image Array" Thanks @chrishutchinson