WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
[resolved] Using get_search_results controller (2 posts)

  1. ahalls
    Member
    Posted 2 years ago #

    I've been looking around and I can't find an example or instructions on how to use the get_search_results controller. What is the format of the search argument or how do I dynamically construct a search results page?

    I would like to return the posts where the title contains a given string or keywords contain the same string.

    Help for a newbie would be appreciated.

    http://wordpress.org/extend/plugins/json-api/

  2. ahalls
    Member
    Posted 2 years ago #

    Found that the search argument passes the words off to the standard search which returns the blog posts with that search term in the title (might search more but that was all I tested)

    The following will return all blog posts with 'house' in the title.

    http://myserver.com/myblog/?json=get_search_request&search=house

    I then added the plugin "Search Tags" so the standard search also includes searching the tags for the supplied phrase.

    I'm happy ... love the WorldPress eco-system!

    -- A

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic