You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a WP installation that is not providing _embedded with the embed() function provided in wpapi.
Upon investigation, I have found that the WP installation responds in the following way:
/wp-json/wp/v2/posts?_embed=true (does not work)
/wp-json/wp/v2/posts?_embed (works)
I have tried using .embed() and .param('_embed', true), but, both force the key/value combination (_embed=true) rather than just the key (_embed).
Any suggestions on this?
The text was updated successfully, but these errors were encountered:
@paulmeller Can you share the server you're using? Do you know if it's Nginx or Apache, for example? _embed=true should work as far as the API's PHP code is concerned, and embed functionality is working for me on all of our test servers, so I will need some additional information to be able to replicate the bug.
Firstly, thanks for your work on this library.
I have a WP installation that is not providing _embedded with the embed() function provided in wpapi.
Upon investigation, I have found that the WP installation responds in the following way:
/wp-json/wp/v2/posts?_embed=true (does not work)
/wp-json/wp/v2/posts?_embed (works)
I have tried using .embed() and .param('_embed', true), but, both force the key/value combination (_embed=true) rather than just the key (_embed).
Any suggestions on this?
The text was updated successfully, but these errors were encountered: