REST API and Passing Arrays
-
Dear WordPress:
I’m not sure where this question goes, so I’m posting it to the Miscellaneous Forum. It’s about your REST API. I just got WordPress on a new site, and the whole reason for my using WordPress at all is that my home page should list news in different categories even though the home page itself is written in ASP.net. I want to use the Posts REST API to get the posts from specific categories. But it is unclear from the documentation that any of the parameters are arrays. I have a hunch that the “categories” parameter might be an array. Should I write...&categories=category1&...or...&categories[]=category1...?
The topic ‘REST API and Passing Arrays’ is closed to new replies.