add level categories in search

Home Forums Product Support Forums Ajax Search Pro for WordPress Support add level categories in search

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14873
    wildlukas
    wildlukas
    Participant

    Hello,
    I have sugestion/ Would like to aks You for little faver.
    Is it possible for next up date to add one level before or main category to “show categories in search result”? This feature works great but on my site I have many similar categories like: womans, mans, boys, girls, baby boy, baby girl clouths so when some body write key-word “shoes” it’s showing:
    shoes
    shoes
    shoes
    shoes
    shoes
    Is it possible to make something like:
    woman clouthes>shoes
    man clouthes>shoes
    boy clouthes>shoes
    girls clouthes>shoes
    baby boy clouthes>shoes

    Or maybe ther is some code i could add to my theme?
    All the best
    Lukas K

    #14876
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Lukas,

    I probably won’t be able to add this in a future release, due to many complications, but with a custom code this should be possible without problems.

    I constructed a possible solution for you, which should do the trick πŸ™‚

    Add this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

    Let me know if you need help with this. After the change, the results should be outputted in a layout like this: https://i.imgur.com/vsgcN2r.png

    I hope this helps.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14882
    wildlukas
    wildlukas
    Participant

    Wow mate, thanks a lot. works great πŸ™‚ πŸ™‚ πŸ™‚
    All the best
    Lukas

    #14883
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.