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

Custom taxonomy archive with WPML broken #106

Open
abombelli opened this issue Jan 15, 2021 · 3 comments
Open

Custom taxonomy archive with WPML broken #106

abombelli opened this issue Jan 15, 2021 · 3 comments

Comments

@abombelli
Copy link

Hi @torounit

We came across an issue when custom permalink of custom taxonomy archive is active using in combination with WPML

We created a CPT "Work" and a associated a custom taxonomy "Services".
The main language is german, secondary english.

Now we created two Projects in the CPT works (including translations) and added a different service taxonomies to each one.

Here you can access the archive pages:
http://serious-seahorse-ek7qx0y9.sandboxcms.com/arbeit/
http://serious-seahorse-ek7qx0y9.sandboxcms.com/en/work/

Now with the Custom Post Type Permalinks plugin we filter by taxonomy like this:
http://serious-seahorse-ek7qx0y9.sandboxcms.com/en/work/service/brand-identity/ (returns two projects)
http://serious-seahorse-ek7qx0y9.sandboxcms.com/en/work/service/packaging/ (returns one project)
As you can see this works in the translated english version of the site.

But for some reason not in the main language, we get 404:
http://serious-seahorse-ek7qx0y9.sandboxcms.com/arbeit/leistung/markenidentitaet/
http://serious-seahorse-ek7qx0y9.sandboxcms.com/arbeit/leistung/verpackung/

Is there any way this could be fixed?

Thanks,
Aldo

Originally posted by @abombelli in #98 (comment)

@abombelli
Copy link
Author

@torounit Did you had a chance to look into it? Let me know if you need anything.

@abombelli
Copy link
Author

@torounit It has been a while, and the links added are not valid anymore. But did you had a chance to check the issue?

@torounit
Copy link
Owner

@abombelli hello, Have you tried any of the solutions mentioned in the WPML forum?

https://wpml.org/forums/topic/custom-post-type-permalinks-compatibility/#post-7785229

Our compatibility developers are already looking in to all possibilities to make it work. As of now you should consider disabling the feature, custom taxonomy permalink in Settings > Permalinks (If you check this, the custom taxonomy's permalinks will be) which is conflicting with WPML

I'm not familiar with WPML, so I don't know, but I think you need to disable the ability to change taxonomy permalinks.

And I think the solution is to set slug for register_taxomomy.

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

2 participants