AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
870 stars 181 forks source link

ACF for Tags not working in REST API - wp 6.0, acf v 5.12.2 #664

Open xitex opened 2 years ago

xitex commented 2 years ago

ACF are not displayed on the tag endpoint, but they are present in the admin panel. Show in rest turned on. Thank you!

mattgrshaw commented 2 years ago

@xitex thanks for this report as well. I believe tags were working at one point, so we'll definitely want to look into this further and get it fixed up.

jellesiderius commented 2 years ago

Experiencing the same issue, can this please be looked into? WP 6.2 + ACF 5.12.3.

SkyleLai commented 1 year ago

hotfix based on this comment

on plugins/advanced-custom-fields/includes/rest-api/class-acf-rest-api.php line 58

$base = $this->request->object_sub_type; // line 58
$base = ( 'post_tag' === $base ) ? 'tag' : $base; // add this line
jellesiderius commented 5 months ago

Any chance this can get looked into? We're still having this issue, quite annoying.

salvimateus commented 3 months ago

same problem here, latest version ACF PRO

AnatoleT commented 3 weeks ago

Same problem here, latest pro version too