I am currently using the JSON API to get the data from wordpress


The plugin helps to retrieve the wordpress post data in JSON format

I notice that I can get the post within some category


And I can also search the post


However, are there anyway to implement search within some category? Thanks

Also if JSON API is not applicable , are there other approach, I have thought of using wp_query, but do I need to provide the login info if I use the WP sdk in PHP / android?



1 Answer 1


You can use get_posts (Method: get_posts) which returns posts according to WordPress WP_Query parameters and then pass parameters for category and search keyword in cat and s params respectively.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.