I want to display posts from WordPress REST API, it's a custom post type where I wanna display in my case :
I have single custom post type post from REST API, point is to get taxonomy term from REST, e.g.
...
"wp:term": [
{
"taxonomy": "examplestatus",
"embeddable": true,
"href": "domain.com/wp-json/wp/v2/category?post=217"
}
]
...
I can get an example term but I must create one new request to "href"
part, it can be robust. How to solve in a different way? New field? Register one : https://developer.wordpress.org/reference/functions/register_rest_field/
Thanks!