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 Ernest Marcinko 8 years, 5 months ago.
- AuthorPosts
- June 17, 2015 at 8:19 am #5020
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.
June 18, 2015 at 2:07 pm #5057Hi!
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 :)
June 18, 2015 at 2:20 pm #5058works perfect!
thanksJune 18, 2015 at 2:26 pm #5059Great! 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 :)
- AuthorPosts
You must be logged in to reply to this topic.