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

Taxonomy results only in current language

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5020
    ivansivans
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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.

    #5058
    ivansivans
    Participant

    works perfect!
    thanks

    #5059
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.