REST API: Display Category names in JSON?


Using the WordPress REST API, I retrieve all my posts into a Angular 6 service. The category field in the JSON displays the ID of the category as an array of numbers.

"category": [ 6 ],

Is there a way, hopefully on the WordPress end, to have the API use the category name instead? Or add another node to the JSON?

, , , Steve 5 years 2018-07-25T08:02:20-05:00 0 Answers 64 views 0

Leave an answer