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

WPML translate without duplicating post [closed]

The way WPML works is that you have a translation or a duplication across all languages of your content, that way each language has access to all content. You can duplicate or better yet batch duplicate any content that you need for all languages. WPML makes it easy to maintain that content across all languages. … Read more

Copying database tables to new database

Export your tables using phpmyadmin interface. Just select those tables only that you want to export from the old database and import those tables in the new database or you can run the command(query) in mysql to copy one table create table newdbname.newtablename like olddbname.oldtablename; INSERT INTO newdbname.newtablename SELECT * FROM olddbname.oldtablename; Repeat the same … Read more

Translate front page (WPML) [closed]

you need to set home page and translate it to all 4 languages and after it go to settings->reading->Front page displays choose the second option “A static page (select below” and choose this page this will set the home page and root url to this page and wpml will know that the root pages of … Read more

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