This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing an issue with the WPML plugin where the slug in the URL is being incorrectly assigned as ***_trashed.
Solution:
We recommend you go to your theme's
functions.php
file and remove or comment out the specific code that might be causing this issue. Here is the code you should look for:
function aryaka_archive( $query ) { if (!is_admin()) { $query->set( 'post_status', array( 'publish') ); } if ( !is_single() ) { if (! is_admin() && $query->get( 'post_type' ) == 'press_release' && get_query_var('year') == 0 ){ $query->set('date_query', array( array( 'after' => 'January 1st, 2017', 'inclusive' => true,)) ); $query->set( 'post_status', array( 'publish') ); } } if (! is_admin() && $query->get( 'post_type' ) == 'news_article' && get_query_var('year') == 0 ){ $query->set('date_query', array( array( 'after' => 'January 1st, 2017', 'inclusive' => true,)) ); } return $query; }; add_filter('pre_get_posts', 'aryaka_archive');
If this does not resolve the issue, try switching to a default WordPress theme to see if the problem persists.
For similar issues, you can check this forum thread.
Please note that this solution might be irrelevant if it's 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 issue persists, please open a new support ticket at WPML 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 6 replies, has 2 voices.
Last updated by 4 months, 2 weeks ago.
Assisted by: Shekhar Bhandari.