Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traduction dosen't work with WPML #59

Open
stefanogit opened this issue Jul 18, 2016 · 8 comments
Open

Traduction dosen't work with WPML #59

stefanogit opened this issue Jul 18, 2016 · 8 comments

Comments

@stefanogit
Copy link

Hi :-)
I installed latest version (2.0.1), I use WPML and I have a problem with the slug traduction. On WPML I checked string traduction and every option but everything looks goods.
I found this post:
https://wordpress.org/support/topic/not-compatible-with-wpml-wordpress-multilanguage?replies=4
And I tried that solution (with the new file the line is about 80) but I got this error:

Deprecated: Non-static method WPML_Slug_Translation::get_translated_slug() should not be called statically, assuming $this from incompatible context in /home/e41pymtn/public_html/wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Permalink.php on line 80
Any idea?
Thanks ;-)

https://wordpress.org/plugins/custom-post-type-permalinks/

@encodiaweb
Copy link

Hi, any update on this issue. We have the same problem.

@stefanogit did you find any solutions?

@torounit
Copy link
Owner

Sorry for late reply.

Replace CPTP_Module_Rewrite use CPTP_set_rewrite_module filter.

Sample code https://gist.github.com/torounit/86c3c140071d29cd1b2fd2900f23c813.

@encodiaweb
Copy link

encodiaweb commented Oct 31, 2016

Hello @torounit,

we used your filter, in our functions.php file.

We setup this file, according to your autoload rules:

./Module/Rewrite/Fix.php

It seems it still doesn't works, any idea on this issue? May I ask your further help?

Our CPT restaurants, still remains "restaurants" and not - for example - "ristoranti"

Thank you

@eleftrik
Copy link

eleftrik commented Nov 7, 2016

Replace CPTP_Module_Rewrite use CPTP_set_rewrite_module filter.

Hi, @torounit, what do you mean exactly?

@ChristianGiupponi
Copy link

I have the same problem, what does Replace CPTP_Module_Rewrite use CPTP_set_rewrite_module filter. means?

@eleftrik
Copy link

@torounit Are you still maintaining this repository?

@gabrielepiccinnu
Copy link

@torounit Hello! I'm interested too to follow this fix, I have same issue. Thank you for this awesome plugin!

@AsfalothDE
Copy link

Unfortunately I have the same problem, is there a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants