WPML: WP_Query + suppress_filters not working
I was facing the same issue, it seems suppress_filters needs to be set to true so you actually suppress those filters!
I was facing the same issue, it seems suppress_filters needs to be set to true so you actually suppress those filters!
Redirect some of the languages on a multi-language site
WPML returning posts that are not published
Thank @Sally CJ I made the solution : main code global $sitepress_settings; //Insert post with main lang $post = $binding_main_cpt[‘post’]; $default_language = $sitepress_settings[‘default_language’]; $main_post = $post[$default_language]; $postInformation = [ ‘post_title’ => wp_strip_all_tags(trim($main_post[‘post_title’] ) ), ‘post_content’ => $main_post[‘post_content’], ‘post_type’ => $main_post_type, ‘post_status’ => ‘publish’ ]; $master_post_id = wp_insert_post($postInformation); echo sprintf( “insert post %d”, $master_post_id ); foreach($sitepress_settings[‘active_languages’] … Read more
How to force change Network site multi language subdirectory base URL?
WPML – Pages not synced?
A simple method for disabling WPML language switcher when meeting specific circumstances [closed]
After some time with WPML support and with some debugging/digging in the theme’s core files, I found where the breadcrumb was created. I pointed this out in the support and to also add the taxonomy on pages also in their filtered queries. I was using default WordPress queries and I was aware that taxonomies on … Read more
Change ICL_LANGUAGE_CODE for WPML
The latest version of WPML (version 2.3) has a new module for Media and this module takes care of the previous images issue. Now there is no longer the need to upload the same image twice. Just like copying the content from the original language, it is now also possible to duplicate the images and/or … Read more