9 Comments

  1. Joe Marsden

    I like how this looks a lot, I hope Haskins continues to work on it. I’d like to be able to incorporate it into my theme’s search, but as a WordPress novice, I’m not sure if that’d even be doable yet (or perhaps Haskins is already working on it.)

    Report

    • Nick Haskins

      Thanks Joe! All you have to do is make a page called search and put the shortcode on the page. It’s just that simple! I’m also introducing a “compact” mode so that it can fit within a heading area like the search here on WP Tavern.

      And, custom post type support was released yesterday.

      Report

  2. marcoevich

    Hi Nick, awesome plugin you got here mate :) I am trying it out already on my site.

    I have a few questions for you:

    – How do you search for everything? Meaning posts, pages, CPT’s, all together? I would like to replace wordpress search with your plugin.

    – Searching trough custom post types doesn’t work very well. It just lists all instances of my CPT in the results, regardless of their relevance. Altering the search string also doesn’t change the results, so I think something is not working correctly there :)

    – Also one post of my CPT is never visible in the results, despite it’s a normal published post like all others.

    Again thanks for writing this great plugin. I hope some day I can use it to replace WP search with it :)

    Cheers!

    Report

    • Nick Haskins

      I’ll update the docs to include examples of searching for multiple.

      Searching through post types works just fine, in this example I passed “type=”ideas”” and its returning the first 20 results found for the “ideas” post type. http://cl.ly/image/3j3d1k2e3W1A

      It returns whatever the REST API returns, which theoretically returns the same result as yoursite.com?s=test

      You can test the REST API response this by appending the following to your sites url in your browser bar:
      wp-json/posts?type=MYPOSTTYPE&filter[s]=test

      Report

  3. marcoevich

    Fast response from Nick on Github, issue is fixed already. Great Plugin :)

    Report

  4. Vikas

    Great Plugin. Would like do do some penetration testing on it before installing though.

    Report

  5. Summer

    Started playing with this one a couple of sites, and I’m nearly giddy about how easy it seems to work. I’m curious about how it performs on a couple of sites with 10 years and several dozen thousand posts each.

    Enable shortcodes in widgets + replace default Search widget = Joy!

    Report

    • Nick Haskins

      Awesome to hear Summer!! So glad you’re enjoying it. You can definitely enable shortcodes in widgets with a simple filter, but sometimes themes will enable this, so we leave that to them.

      It should work super fast with lots of posts! It will return the results as fast as the REST API on your site can return them. The API just does a normal search query behind the scenes, so “theoretically” it should be as fast (it not faster) than searching for a normal post.

      Report

Comments are closed.

%d bloggers like this: