Can auto-suggest show post titles rather than keywords, like a live-search?

  • pseudo visitor
    Participant
    5 years, 7 months ago #6856

    For example I have a post type which only contains the title field. I would like the search to only suggest full titles.

    For instance if I have a post type with title “Ways to clean your car”, when the user types “car” I want the auto suggest to show the full title.

    wpsolr
    Keymaster
    5 years, 7 months ago #6857

    Yes.

    Please select “Suggest products” in screen 2.1;
    Settings suggest products

    This will perform a search in the auto-suggestions, and show titles + content, instead of keywords.

    You can hide the content then with some css.

    For WooCommerce users: if you activate the Yith Woocommerce Ajax Search extension, you will get a better control of how your products suggestions are displayed.
    Yith Ajax search extension

     

    • This reply was modified 5 years, 7 months ago by wpsolr.
    • This reply was modified 5 years, 7 months ago by wpsolr.
    • This reply was modified 4 years, 9 months ago by wpsolr. Reason: https
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.