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

Different type of response

NBibikov opened this issue · comments

Hi! Thanks for plugin!

I want get url for category with ACF to WP API, but have problem. When data exist, plugin send through JSON - dictionary, when not - bool value. How it can fix? I need response with dictionary in both situation

{
    ID = 178;
    acf =     {
        imageforcategory = "http://xxx/wp-content/uploads/2015/09/image.jpg";
    };
 {
        ID = 24;
        acf = 0;

Hey @NBibikov,

I'm not sure I entirely understand what you're expecting, could you post your ACF configuration so I can re-produce it locally? It'd be good to know what you're expected output is too.

Thanks!