• Resolved jasghar

    (@jasghar)


    hey, thanks for the plugin. i used the shortocde to show the search terms on frontend. i just want to know how can I also add link to those search terms like if there is a search term of “best cars 2022” then it should have a link inside it so when users click on it it should automatically search this term for them. but for now there’s simple li elements are shown

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author Cornel Raiu

    (@cornelraiu-1)

    @jasghar the container class can be changed using the shortcode parameter: wrapper_class:

    [mwtsa_display_latest_searches unit="month" count="10" only_with_results="false" wrapper_class="some-class"]

    Regarding the other request, I will prepare another gist for you to make it work now and then I have to put together another update since I believe there will be many users asking for this.

    The thing is that it can be done easily by pulling all the searches from the database and then filtering them in PHP to only get the unique values but that can cause performance issues on the long run. So, I came up with a SQL only solution for this which will definitely perform very well even when you’ll supposedly have 100k+ searches saved in the database.

    I will keep you posted later today.

    In the meantime, if you like my plugin and if it helps, please write a review. That will keep me motivated to improve it and will also help others find it.

    Thanks!
    Cornel

    Plugin Author Cornel Raiu

    (@cornelraiu-1)

    Hi @jasghar ,

    I have just released V1.4.3 . Updating to this version should fix the issue with the duplicates without you having to make any other change to the code.

    Let me know how that went.

    Thanks!

    Thread Starter jasghar

    (@jasghar)

    @cornelraiu-1 I’m stunned. don’t know how to say thanks to you. you’re a legit man. and this plugin too. now getting the results as I want them to be. Thanks for the support, this awesome plugin and your help dear

    Plugin Author Cornel Raiu

    (@cornelraiu-1)

    Hi @jasghar ,

    I am glad you’ve finally got them working as you need them to.

    You may say thank by writing a review for my plugin 🙂

    Glad I could help.

    If you have any other ideas, please open a new support ticket.

    I will close this one as resolved now.

    Have a great day!

    Cornel

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘how to direct users on the specified search term’ is closed to new replies.