Strange behavior with a redirect loop – involves WPML multi-language plugin

Your site is misconfigured, but from remote it’s not easy to say where exactly. For the redirects, it’s going this way: requesting http://internationalgateway.us/fr 301 redirect to http://internationalgateway.us/fr// requesting http://internationalgateway.us/fr// 301 redirect to http://internationalgateway.us/fr/ requesting http://internationalgateway.us/fr/ go to 2. This is the redirect loop your page creates unrolled. To debug this, you can make use of … Read more

Cannot locate specific link/string using String Translation with WPML? [closed]

You need to put your strings in translatable format. <a href=”https://wordpress.stackexchange.com/questions/90208/URL”><?php _e( ‘Link’, ‘your-theme-text-domain’); ?></a> Function reference: _e(), this one echoes the value, for assignment, use $my_string = __( ‘String’, ‘text-domain’ );. Also, check the following documentation: WordPress_in_Your_Language#Introduction and WPML – Getting String Translation to Work.

WPML customizing language selector [closed]

I dealt with this writing a custom template tag. You may want to adjust the structure and classes in order to fit the needs of your styling: function mysite_languages() { if ( function_exists( ‘icl_get_languages’ ) ) : $languages = icl_get_languages( ‘skip_missing=N&orderby=KEY&order=DIR&link_empty_to=str’ ); if ( ! empty( $languages ) ) : echo “\n<ul class=\”languages\”>\n”; foreach ( … Read more

WPML – 404 Error when I try to pass GET parameters in my “different languages in directories” installation

The problem your GET param is using the same name as the query var for your custom post type. $link = $link_aqui_se_sirve.’?’.$establecimientos_cpt_name.’=’.$tax->slug; With that URL, WordPress is expecting the value of the $establecimientos_cpt_name parameter to be a post slug. Instead you are giving it a taxonomy slug. This will give you a 404 unless you … Read more

WPML – Filter by individual or all languages

So I’ve made it work. The problem was not with the filter but with tax query. Here is the solution for those who might be interested. <?php // I check the lang query var if it’s empty we’ll display all languages $langGet = get_query_var(‘lang’, ‘all’); ?> /* Then have my form to filter posts */ … Read more