-
Notifications
You must be signed in to change notification settings - Fork 48
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
How to use? #10
Comments
With "jQuery + Promises" i use the plugin something like this:
Where:
|
@radhitee If you are looking to search by slug, you do not need to use this plugin: You can make the request
and you should get what you want. |
@kadamwhite That method did not work for me. My post also has a category specified, is it necessary that it is passed in the query? If I have a post with slug named "hello-world" with category of "learning-center" how would I retrieve that post? |
@produktive If the slug is "hello-world", then the code I posted should work; for example http://demo.wp-api.org/wp-json/wp/v2/posts?slug=this-is-a-test correctly returns a collection with only the post with the slug "this-is-a-test" on the API demo site. You're on WordPress 4.7.2? With |
@kadamwhite I will paste the full URL so you can see for yourself that something strange is going on. |
@produktive I tested it and it shows fine |
@DeLonge I discovered it was a plugin compatibility issue with Paid Memberships Pro which they just resolved a couple days ago. In fact, it wasn't even resolved yet. You need to install a second plugin called PMPro REST API which was just patched a few days ago to resolve the issue. |
i have installed this plugin, how to using this plugin, i try like this
http://mysite/wp-json/wp/v2/posts?filter[slug]=hello-world
, and not working. thanksThe text was updated successfully, but these errors were encountered: