grappler / polylang-slug

A unique post slug within the language in Polylang. This allows for a page to have same/identical slug in multiple languages.
275 stars 84 forks source link

Not working on production server #18

Closed jorenvh closed 8 years ago

jorenvh commented 8 years ago

Hi,

I use your code to be able to use the same slug for different pages across the languages on my site. This works totally fine on my local server but on my production server it just won't work.

I get the right url in my links but it keeps redirecting me to the other language then the selected one. WP versions ect are the same across all env. Only difference is that the production server is a microsoft Azure server.

I placed the file in 'mythemesfolder/polylang-slug.php' and then I require that file in my functions.php file of the theme above.

Do you have any suggestions on how to fix this?

Kind regards, Joren

jorenvh commented 8 years ago

Seems like it always takes the first records that it finds (over all the languages).

grappler commented 8 years ago

I have had that problem in the past. I was able to solve it by re-saving the permalink settings.

I am trying to take a more scientific approach to make sure it works in all situations.

grappler commented 8 years ago

Please try the latest version that just pushed. https://github.com/grappler/polylang-slug/archive/master.zip

grappler commented 8 years ago

I am going to release v0.2.0 tomorrow, it would be nice if you were able to test it beforehand.

grappler commented 8 years ago

I am going close this as I have not received any feedback.