WPML Translate term meta not synced

The trick is the update the original term. wp_update_term($term_id, $taxonomy, []); This will trigger the WPML actions that sync the meta, notice we provided [] so technically we are not updating anything but this is good enough to trigger the sync.

Taxonomy page wpml dropdown not working

The default language selector is pretty crap TBH. I created this function using jQuery, you will have to amend to fit your template. function language_selector(){ $languages = icl_get_languages(‘skip_missing=0&orderby=code’); $current_lang = ICL_LANGUAGE_CODE; if(!empty($languages)) { ?> <div id=”language_list”> <div class=”current”> <img src=”https://wordpress.stackexchange.com/questions/95978/<?php bloginfo(“url’); ?>/wp-content/plugins/sitepress-multilingual-cms/res/flags/<?php echo ICL_LANGUAGE_CODE; ?>.png” alt=”<?php echo ICL_LANGUAGE_NAME; ?>” /> <?php echo ICL_LANGUAGE_NAME; ?> <i … Read more

How to write inner join using posts_clauses?

First, his filter is explained in the manual and is found in the code. If you have questions about hooks and functions, the manual and code is a good place to start looking for answers. The post_clauses hook is passed the associative array to filter, so just manipulate the where and join indices as per … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)