Skip Navigation

[Resolved] Taxonomy archive does not appear in secondary languages

This thread is resolved. Here is a description of the problem and solution.

Problem: I am using a Divi module to display a custom View on a Taxonomy Archive page. I have created a PHP template file for this archive page, and the View works as expected on the primary language. When I switch languages, the View disappears.

Solution: Make sure the Divi Module is translated into all languages.

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by jozsefG 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#727960

Thank you Christian, you helped me out quickly as usual. Sorry to bother you with such a simple problem, it work just fine now.

But with the same CPT I found another problem which seems more complicated. And it's WPML related. I have a taxonomy archive to show the activity categories, but I used Divi Builder to create my layout and I created the taxonomy-activity-category.php where I inserted the layout as shortcode. The problem is that when switching languages the posts don't show in the other languages except the english. It seems the permalink does not translate. I translated the tanoxnomies and the taxonomy label.

This is the page that lists the categories: hidden link
When you switch the language you can see that the link of the categories has the same activity-category slug in the permalink in every language. I've consulted wpml help for this and it says it can't be translated: https://wpml.org/faq/translate-taxonomy-slugs-wpml/. That's okay, let's keep it in english, but it is still not working...

#729017

I can see in the PHP that you're inserting a Divi module using this code:

echo do_shortcode('[et_pb_section global_module="1166"][/et_pb_section]');

I can see that this module is not translated into any language other than English:
hidden link

What happens if you translate the module into the other languages?

#729083

You are right again. I checked in the library but mixed it up with another library item from there... I guess I should rest more.
Thanks again Christian, it works now perfectly.