Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No acf field in custom taxonomies #62

Open
InsitesDigital-MO opened this issue Mar 12, 2020 · 1 comment
Open

No acf field in custom taxonomies #62

InsitesDigital-MO opened this issue Mar 12, 2020 · 1 comment

Comments

@InsitesDigital-MO
Copy link

InsitesDigital-MO commented Mar 12, 2020

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, ) ); }

@SamiSousa
Copy link

Seems that there's a PR that addresses this issue: #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants