-2

I have a custom taxonomy "roles", which has an ACF custom post type "role_order". My understanding is that to retrieve the value I should do:

get_field('role_order', 'roles_222');

where 222 is the ID of the custom taxonomy term.

Nothing's being retrieved however. What have I missed?

JohnG
  • 486
  • 3
  • 22

1 Answers1

0

The problem was with the field name. I renamed it to "roleorder" without the underscore, and that solved the problem.

JohnG
  • 486
  • 3
  • 22