Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded not working #342

Open
paulmeller opened this issue Oct 18, 2017 · 3 comments
Open

Embedded not working #342

paulmeller opened this issue Oct 18, 2017 · 3 comments
Labels

Comments

@paulmeller
Copy link

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?

@kadamwhite
Copy link
Collaborator

@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.

Thanks!

@kadamwhite
Copy link
Collaborator

@paulmeller I'd like to follow up to see if you're still experiencing this issue. If so, could you clarify your WP version and server environment?

@paulmeller
Copy link
Author

@kadamwhite - it's been a while since I used the library and hit the issue. I'll try to find some time over the weekend to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants