I am currently implementing a search function to search the post from wordpress
I would like to search the post by Tag , by title and return it as JSON
I found a plugin that generates the result as JSON (JSON API)
http://wordpress.org/plugins/json-api/other_notes/#2.1.-Core-controller-methods
In that plugin , there is a get_posts function that can return the query that supports WP_query parameter
I tried a query like that
where the &s= is the keyword to search while the &tag= is the tag to search
However, there are two problems
From the official website, it state search keyword ,but not limit to title only
http://codex.wordpress.org/Function_Reference/get_posts
So, to sum up , the goal is to search the post by Tag , by title and return it as JSON (actually is call the php through JSON), it doesnt matter using the plugin or not, any way achieve the goal is welcomed. Thanks for helping
I looked into plugin functions, This plugin does not support to get posts from multiple category. It just get one category by ID and return the posts and this category info. You need to make a custom plugin or try another to do this task.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments