Hi!
THanks for reaching out!
Yes, you can. But unfortunately we don’t have any docs on the API so you’ll need to be a developer to understand how it’s coded and create your own calls
Kind Regards,
-Roch
Thread Starter
yajuve
(@yajuve)
Hi!
Thank you Rock 🙂 for your answer,
Would you give me just an example : the syntax of URI ?
Thanks,
Hi!
Sure, we have a couple of examples on this link:
https://ww.wp.xz.cn/support/topic/filters-in-wp-rest-api/
Let us know if that helps you, and if it doesn’t we’ll get our dev team to look into your issues.
Thanks!
Kind Regards,
-Roch
Thread Starter
yajuve
(@yajuve)
Hi Roch,
I tried this example : sportspress/v2/teams?filter[sp_league]=primary-league
of course i changed the slug ‘primary-league’ , but it didn’t work, it shows me all teams,
About what i need : i want to get all events for specified seasons
for example : sportspress/v2/events/?filter[seasons]=69 or with slug sportspress/v2/events/?filter[seasons]=slug,
sorry for my many requests
Thaaank you Rock,
Plugin Contributor
Savvas
(@savvasha)
Since WordPress 4.7 the filter argument for any post endpoint was removed.
Thread Starter
yajuve
(@yajuve)
So at this time no solutions to use filter with Sportspress ?
Thanks @rochesterj @savvasha
Hi!
Actually WordPress itself removed that so no plugins will have it.
Thanks!
Kind Regards,
-Roch
Thread Starter
yajuve
(@yajuve)
Hi!
Unfortunately 🙁 …
Thank you Rock for the information,
No worries! You could roll back WP itself, but that may cause you other issues such as security patches lost and bugs not fixed.
Thanks!
Kind Regards,
-Roch