Add Category Name to REST API

I am using the URL: http://website-url.com/wp-json/wp/v2/qd_leadership to get the data for that custom post type. I then created custom taxonomies for this post type. That only displays the taxonomy IDs in the JSON object like so:

“sub_brand”: [
28,
29,
30
],
“service_area”: [
31,
32,
33
],
“location”: [
34,
35,
36
],

Is there a way to add additional information to the wordpress REST API to also add in the taxonomy name along with its ID?

Read more here:: Add Category Name to REST API

Leave a Reply

Your email address will not be published. Required fields are marked *