Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Lukasz

    (@wpfed)

    This is currently not possible but there is an active ticket:

    https://core.trac.ww.wp.xz.cn/ticket/39696

    Assume that you use react, you can do this with props

    
    {post._embedded["wp:term"]
    ? post._embedded["wp:term"][0][0].name : ""}

    And you can see your terms in your application.

    Hi

    Was there ever an answer to this, I’m having exactly the same issue.

    The ticket mentioned earlier allows _embed to specify individual fields, but I still can’t get _embed to work if I’m also using _fields as a parameter?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘REST API Global parameter: _fields=_embedded[wp:term][1][0].name’ is closed to new replies.