Taxonomy results only in current language

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Taxonomy results only in current language

This topic contains 3 replies, has 2 voices, and was last updated by

 
Keymaster
6 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5020

    Participant

    I’m using plugin Ajax Search Pro with WPML.
    When searching in custom post types results are correct: shows results only in current language.

    But when searching in taxonomies, gets results of all languages.
    I would expect to get results only in current language.

    In order to reproduce the error:
    go to http://woktowalk.com/new2015/
    scroll down up to “Restaurant locator”
    search “barcelona”
    You will see lots of “barcelona” taxonomy results. Should show only one.

    Thanks for your help.

    #5057

    Hi!

    I’ve checked the code and it looks like I forgot to include this feature from the term results, that’s why it’s not working.

    The only way around this is to make modifications to one of the files.

    You will have to open up the following file on your server: wp-content/plugins/ajax-search-pro/includes/search/search_terms.class.php and replace it’s contents with this: http://pastebin.com/raw.php?i=Zq8AWuui

    That should solve the problem.

    Best,
    Ernest Marcinko

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


    #5058

    Participant

    works perfect!
    thanks

    #5059

    Great! I’ll make sure to integrate it to the upcoming version so this problem won’t happen again.

    Thank you for the 5 star rating, I just noticed 🙂

    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.