This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing an issue where posts in the main language were visible on the translated version of the site.
Solution:
We noticed that the custom theme code was missing the suppress_filters=0 argument. We recommended adding this argument to the WP_Query or get_posts arguments to ensure proper filtering of translated content. Here's the step-by-step solution:
1. Open the front-page.php file.
2. Around line 25, modify the arguments array to include 'suppress_filters' => 0.
The modified code should look like this:
// Loop arguments $args = array( 'post_type' => 'post', 'posts_per_page' => $posts_per_page, 'offset' => $offset, 'suppress_filters' => 0, );
We also reminded the client that custom code and themes are not covered by our support policy, but we provided assistance to help get them started. For further information on the suppress_filters argument, we directed the client to our documentation on debugging theme compatibility.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, 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 you need further assistance, please open a new support ticket in our support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 5 replies, has 2 voices.
Last updated by 1 year, 1 month ago.
Assisted by: Nicolas V..