• Resolved Hembo Pagi

    (@hembopagi)


    Hello there,

    I am working with the project where al the WP data is asked over API. To optimise the speen I try to reduce API calls to minimum.

    Currently when I ask page content via API i get my custom taxonomy information attaced as array of IDs (for example “my_type”:[285,286]). Is it possible to have the name/slug instead of ID (for example “my_type”:[‘type1′,’type2’])? Tha would reduce my API calls to one.

    All the best
    Hembo

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    That’s a WP REST API question. You should ask over in their forums as once you create a taxonomy and enable REST API, their endpoint takes over the handling.

    My guess would be add the parameter ?style=[term_id]

Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomy name and ID in API’ is closed to new replies.