acf-to-rest-api icon indicating copy to clipboard operation
acf-to-rest-api copied to clipboard

Fix: Tag taxonomy returns empty array

Open Koli14 opened this issue 5 years ago • 4 comments

Based on @julesrenaud answer: https://github.com/airesvsg/acf-to-rest-api/issues/245#issuecomment-415484050

Koli14 avatar Feb 27 '20 15:02 Koli14

Hi @Koli14,

Thanks for your PR.

You've tried to use hide_empty in your endpoint?

http://localhost/wp-json/acf/v3/categories?hide_empty=0

Thanks

airesvsg avatar Feb 27 '20 15:02 airesvsg

Sorry, the PR Title is misleading: Here is my Issue detail: If I visit /wp-json/wp/v2/tags/471 there is no ACF field. By a Category or a Custom Taxonomy, it's working (e.g /wp-json/wp/v2/categories/4 or wp-json/wp/v2/folders/4. If I go to /wp-json/acf/v3/tags it's an empty array, but working for Categories or Custom Taxonomy. If I visit /wp-json/acf/v3/tags/471, then it has an ACF field as exepted.

Koli14 avatar Feb 27 '20 16:02 Koli14

@airesvsg pls consider to merge my pull request.

Koli14 avatar Jun 29 '20 13:06 Koli14

Pls consider to merge this PR!

Koli14 avatar Aug 04 '22 09:08 Koli14