Site icon Hip-Hop Website Design and Development

Search WP API utilizing the publish title

I am utilizing the WP REST API v2 to try to seek for all posts with the identical title, what I am making an attempt to do is create a form of head-to-head/earlier conferences web page for two groups.

In the intervening time i can retrieve a single publish with a slug no drawback

.../wp-json/sportspress/v2/occasions?slug=team1-vs-team2

When i exploit a search it retrieves all of the occasions with team1 and team2, but in addition all references to team1 & 2 from publish content material which isn’t what I need…

.../wp-json/sportspress/v2/occasions?search=team1+team2

How do i retrieve a publish utilizing the search utilizing the precise publish title as proven beneath in title > rendered ??

0   
  id    60455
  date  "2016-11-22T19:30:00"
  date_gmt  "2016-11-22T19:30:00"
  modified  "2016-11-23T09:25:29"
  modified_gmt  "2016-11-23T07:25:29"
  slug  "team1-vs-team2"
  standing    "publish"
  kind  "sp_event"
  hyperlink  ".../occasion/team1-vs-team2/"
  title 
      rendered  "Team1 vs Team2"