airesvsg / acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API
https://wordpress.org/plugins/acf-to-rest-api/
1.33k stars 111 forks source link

ACF field showing in posts and not tags #54

Closed bradmsmith closed 8 years ago

bradmsmith commented 8 years ago

Any idea why the acf field shows up in the REST API for posts but not tags?

I use ACF to add a "featured image" to each tag. Here is the ACF function from the multi-site network activated plugin that loads the definition:

acf_add_local_field_group(array (
    'key' => 'group_578497be9e603',
    'title' => 'Series Feature Image (Tag)',
    'fields' => array (
        array (
            'key' => 'field_578497dd46a45',
            'label' => 'Sermon Series Featured Image',
            'name' => 'series_image',
            'type' => 'image',
            'instructions' => '',
            'required' => 0,
            'conditional_logic' => 0,
            'wrapper' => array (
                'width' => '',
                'class' => '',
                'id' => '',
            ),
            'return_format' => 'array',
            'preview_size' => 'thumbnail',
            'library' => 'all',
            'min_width' => '',
            'min_height' => '',
            'min_size' => '',
            'max_width' => '',
            'max_height' => '',
            'max_size' => '',
            'mime_types' => '',
        ),
    ),
    'location' => array (
        array (
            array (
                'param' => 'taxonomy',
                'operator' => '==',
                'value' => 'post_tag',
            ),
        ),
    ),
    'menu_order' => 0,
    'position' => 'normal',
    'style' => 'default',
    'label_placement' => 'top',
    'instruction_placement' => 'label',
    'hide_on_screen' => '',
    'active' => 1,
    'description' => '',
));
airesvsg commented 8 years ago

Hi @bradmsmith, please, look this issue: https://github.com/airesvsg/acf-to-rest-api/issues/43

Thanks

bradmsmith commented 8 years ago

Using the work-around in #43 until new version of plugin is available. Thank you.

airesvsg commented 8 years ago

@bradmsmith I want to release the new version in August.

Thanks