Skip to content

No acf field in custom taxonomies #62

@InsitesDigital-MO

Description

@InsitesDigital-MO

I had the issue where custom taxonomies weren't showing the 'acf' field to retrieve data from custom fields.

Would you be able to patch your plugin to include this at some point.

Other than that, it's great plugin. 🙌🏻

I've added a suggested temporary fix in place for anyone with a similar problem:

$types = get_taxonomies(array( 'public' => true, '_builtin' => false )); foreach($types as $key => $type) { register_rest_field( $type, 'acf', array( 'get_callback' => array( $this, 'addACFDataTermV2cb' ), 'update_callback' => null, 'schema' => null, ) ); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions