• Resolved Scott Paterson

    (@scottpaterson)


    I’m been using this plugin for years and with the recent update, how can I limit live search results to show only the top 10?

    Are there any hooks or filters for this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alright, I found where it is in the code: functions-actions-ajax.php:18 – Can you please add a filter for this?

    Plugin Author iova.mihai

    (@iovamihai)

    Hey Scott,

    Good catch! And yes, I’ll be adding a filter in the very next version.

    I’m also considering adding this as an option in settings, and if there are more results than that number to display a “View all (X number) articles” link that would redirect the user to the search page. What do you think about this functionality?

    Cheers,
    Mihai

    Hey Mihai,

    Thanks for getting back to me. An option in the settings page for this would be nice. It really depends on how many users want to change this. If you don’t think many would want to, then a filter would be fine.

    I don’t think a “View all articles” link in the live search would make much sense, as you can already hit enter to view that same list.

    Good job on the plugin though, I do like the new theme a lot.

    Thanks,
    Scott

    Plugin Author iova.mihai

    (@iovamihai)

    Hey Scott,

    I’m really glad you enjoy the new version. Some cool new little things will come in the following weeks.

    As for the live search limit in setting, I believe it’s going to remain on paper for now, as it wasn’t requested yet. I’ll keep an eye out though. Thank you for the feedback!

    As for the filter, it will be available sometime next week, with the next patch.

    Cheers,
    Mihai

    Plugin Author iova.mihai

    (@iovamihai)

    Hey Scott,

    Just wanted to let you know the filter for limiting search results is available in version 1.3.1. It’s named “kbe_live_search_results_count” and it has only one argument, the number of articles.

    Let me know how it goes.

    Cheers,
    Mihai

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.