Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › wpml permalink problem
This topic contains 8 replies, has 2 voices, and was last updated by erdcck 6 years, 1 month ago.
- AuthorPosts
- August 25, 2017 at 8:25 am #14495
Dear dir / madam
I have use wocommerce and wpml. Primary language is Turkish. English product permalinks wrong in ajax search pro, other site links working correctly
urun (turkish) => product
Turkish permalink valid and running
frontend turkish language product permalink valid and running : hhttps://maksdisplays.com/urun/wind-sign-silver-frame-30-x-40-poster-size/English permalink wrong and get 404, urun (turkish) must be product (ajax search pro result link)
frontend english language product permalink get 404 error : https://maksdisplays.com/en/urun/wind-sign-silver-frame-30-x-40-poster-size/English working permalink
frontend english language product permalink get 404 error : https://maksdisplays.com/en/product/wind-sign-silver-frame-30-x-40-poster-size/Attachments:
You must be logged in to view attached files.August 25, 2017 at 10:02 am #14504Dear customer,
Thank you very much for the proper details, it made my work much easier. I’ve looked at the issue directly via FTP, but somehow the WPML translation returns the incorrect post type slug. I have tried to look on the WPML forums and their support page to see if this is a known issue, or if there is any solution to initialize the slug translation, but I have not found anything.
I have solved the issue with a custom code, that I placed in the child theme directory, into the functions.php file. The links should be correct now.
For future reference, the code is:
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 25, 2017 at 10:10 am #14506Dear Ernest, thank you so much for your support,
August 25, 2017 at 11:37 am #14507You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 25, 2017 at 11:46 am #14508Dear Ernest, I have found something and trying. I have temporary remove your custom function
so sorry my english very bad.
When I changed english language products permalink. wp or wpml (I don’t know) redirect turkish url to en url and working. (all product duplicated with wpml duplicate function and wpml duplicated all products title and permalinks to english language)
please go to this url, wp redirect url to english url
https://maksdisplays.com/en/urun/pop-up-stand-corner/ => https://maksdisplays.com/en/product/pop-up-stand-corner/please check it for me about this issue is true or false
August 25, 2017 at 11:51 am #14509Hi,
Yes, it redirects me as well, it looks correct:
(english test)
This URL: https://maksdisplays.com/en/urun/pop-up-stand-corner/
redirects to: https://maksdisplays.com/en/product/pop-up-stand-corner/..and also, it works backwards as well:
(turkish test)
This URL: https://maksdisplays.com/product/orumcek-stand-corner/
redirects to: https://maksdisplays.com/urun/orumcek-stand-corner/It looks like it recognizes the language correctly, and redirects as it supposed to. I believe this is correct 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 25, 2017 at 11:59 am #14510Hi
I have a new problem 🙂
product title pop up stand corner
product url https://maksdisplays.com/en/product/pop-up-stand-corner/not display with this keywords
pop up stand, pop up, popdisplay product with this keywords
corner, pop up stand cornerAugust 25, 2017 at 12:05 pm #14511Hi,
Sorry, my mistake. I have forgot to remove a debugging code from the plugin files. Now it should be displayed for those keywords correctly.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 25, 2017 at 12:10 pm #14512Thank you so much, I have rated ASP from codecanyon
- AuthorPosts
You must be logged in to reply to this topic.