Dieser Benutzer hat keine Lieblingsthemen.
Bevorzugte Forumsthemen
Forumsthemen erstellt
Status |
Thema
|
Unterstützer | Stimmen | Beiträge | Frische |
---|---|---|---|---|---|
New address detection notification
Angefangen von: alexanderC-32
in: English Support
Problem: If this solution does not work or seems irrelevant because it might be outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket. |
2 | 3 | Vor 8 Monaten, 1 Woche | ||
Translated taxonomy not showing correct template
1
2
Angefangen von: alexanderC-32
in: English Support
Problem: function wpmlsupp_10867( $templates ) {<br /> if ( current_theme_supports( 'block-templates' ) ) {<br /> $current_term = get_queried_object();<br /><br /> do_action( 'wpml_switch_language', apply_filters( 'wpml_default_language', null ) );<br /> $original_term = get_term($current_term->term_id);<br /> do_action( 'wpml_switch_language', null );<br /><br /> if (isset($original_term->slug) && $original_term->slug !== $current_term->slug ) {<br /> array_unshift($templates, 'taxonomy-' + $original_term->taxonomy + '-' + $original_term->slug); <br /> }<br /> }<br /><br /> return $templates;<br />}<br />add_filter('taxonomy_template_hierarchy', 'wpmlsupp_10867'); Please replace the previous code with this corrected version. Additionally, we noticed that the term-specific template might not be added correctly from the backend. Could you please inform us about the tools or methods you are using to add the term template? If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum. |
2 | 28 | Vor 1 Jahr, 5 Monaten |