Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Transposh search problem
- This topic has 14 replies, 2 voices, and was last updated 8 years, 4 months ago by
Ernest Marcinko.
-
AuthorPosts
-
January 3, 2018 at 2:58 pm #16131
Ludovico
ParticipantHello,
I have transposh on my site. The default language is Italian. When I do a search in French for example, when I click on a result, the post returns in Italian and not in French.
I saw that this problem was solved by you here:
https://wp-dreams.com/forums/topic/transposh-search-problem/
I think this guy had the same problem.
Thank you very much,
Ludovico-
This topic was modified 8 years, 5 months ago by
Ludovico.
January 3, 2018 at 10:42 pm #16135Ludovico
ParticipantYou cannot access this content.
January 3, 2018 at 11:14 pm #16136Ernest Marcinko
KeymasterHi,
Thank you very much for the proper details, I may have found a possible solution, which I already added to the functions.php file in your theme directory via FTP.
The problem was, that WordPress was not returning the translated URLs, as the translation language was not present during the search process. I have debugged through the transposh plugin code, and found a way to parse the language and correct the urls after the search process.
Please note that this solution may not be 100% correct, as the issue is not isolated to the search plugin only. I believe that it should hopefully work now. I have added the following code to the functions.php file, for future refernce:
January 3, 2018 at 11:37 pm #16137Ludovico
ParticipantYou cannot access this content.
January 3, 2018 at 11:59 pm #16138Ludovico
ParticipantYou cannot access this content.
January 4, 2018 at 12:02 am #16139Ernest Marcinko
KeymasterYou are welcome.
Yes, it is a bit different. I have made a tiny modification, now it should work with both lite and pro versions at the same time.
For future reference, this is the current code there:
January 4, 2018 at 12:28 am #16140Ludovico
ParticipantYou cannot access this content.
January 4, 2018 at 12:59 am #16141Ludovico
ParticipantAnother question, where I have to insert this variable in your search:
<?php echo $citysearch; ?>
As you can see, I created a div that overlaps your search when you go to the post because I could not do it directly in the search.
it’s possible to do it?
p.s. I attached 2 screenshots
Thank
January 4, 2018 at 10:37 am #16146Ludovico
ParticipantYou cannot access this content.
January 4, 2018 at 3:04 pm #16151Ernest Marcinko
KeymasterHi,
If I understand correctly, you want to replace the search placeholder text with a custom value. You can actually do that with a custom filter function (similar to the previous solutions).
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Just change the $placeholder variable value on line 7 to anything you want it to.
January 4, 2018 at 3:09 pm #16152Ernest Marcinko
KeymasterI have also corrected the issue, where the search automatically triggered whenever the user hit the browser ‘back’ button – if that was the problem. I will make sure to include this fix in the next release.
January 16, 2018 at 11:29 am #16320Ludovico
ParticipantYou cannot access this content.
January 16, 2018 at 2:12 pm #16325Ernest Marcinko
KeymasterHi!
Thank you for letting me know this issue. I was able to replicate it on an apple device. It looks like it does not trigger the ‘keyup’ event to which the live search is attached.
I won’t be able to add a quick-fix for this, as the event handlers are hard-coded within the script files. I will make sure however to fix this in the upcoming release.
January 16, 2018 at 2:24 pm #16326Ludovico
ParticipantYou cannot access this content.
January 16, 2018 at 2:31 pm #16327Ernest Marcinko
KeymasterYes, apparently only Apple mobile devices seem to be affected. I will run more test though to make sure.
-
This topic was modified 8 years, 5 months ago by
-
AuthorPosts
- The topic ‘Transposh search problem’ is closed to new replies.