ThemeBoy / SportsPress

An open source league statistics plugin for WordPress created by ThemeBoy.
Other
152 stars 98 forks source link

Empty Array response from API (tables, lists) #316

Closed burzumumbra closed 5 years ago

burzumumbra commented 5 years ago

I have tested the API in 2.6.13, but ther's a problem, I can't acces Tables, Lists and similars. The call to wp-json/sportspress/v2 Shows that for example in list I ther's 4 elements, and then if I go to wp-json/sportspress/v2/lists or wp-json/sportspress/v2/tables I got as response an empty array. api fail 2 api fail

brianmiyaji commented 5 years ago

@burzumumbra Thanks for testing this. You're right, the endpoints for secondary post types (tables, lists, etc) were still following the old logic. I've fix this and we've released version 2.6.14 which should resolve the issue.