This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Creating synonyms for search terms

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Creating synonyms for search terms

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10871
    Craig DeStefanoCkdestef
    Participant

    Hello,

    I need to create synonyms for certain search terms. For example, ATP=AutoTrim Pro. I have looked through the documentation and cannot find it.

    Thanks for your help.

    Best,
    Craig

    #10872
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Craig,

    Currently it is not yet possible on the plugin back-end, it’s an upcoming feature.

    However there is a programatical way with a custom code. This is only a very simple “replace” solution, use it by adding it to the functions.php file in your theme directory (from line 3 only):

    Basically, all you need to do is to change the $mapping array variable to the items you need. To the left side is the word you want to replace, to the right goes the replacement. You can add as many as you want 🙂 I hope this helps!

    #10928
    Craig DeStefanoCkdestef
    Participant

    Ernest,

    Thanks! However, I actually found a work-around in the product inline settings. By adding a keyword in the “Additional search tags for this post (space separated)” field on the product page. The search is now coming up. I attached a screenshot.

    http://bennetttrimtabs.com/search/

    Thanks,
    Craig

    #10936
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Creating synonyms for search terms’ is closed to new replies.