WPML custom post type – not translated
Which versions of WPML and WordPress are you using? I’m sure that you noticed that the old versions of WPML from wp.org only run on old WordPress versions (up to 3.0.5).
Which versions of WPML and WordPress are you using? I’m sure that you noticed that the old versions of WPML from wp.org only run on old WordPress versions (up to 3.0.5).
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.
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
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
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
I was facing the same issue, it seems suppress_filters needs to be set to true so you actually suppress those filters!
WPML returning posts that are not published
WPML – Pages not synced?
Change ICL_LANGUAGE_CODE for WPML
Well, it’s pretty clear, why this problem occurs. Let’s look at wp_insert_term documentation: Return Values (array|WP_Error) The Term ID and Term Taxonomy ID. (Example: array(‘term_id’=>12,’term_taxonomy_id’=>34)) As you can see, on success this function returns array. But… If any error occurs, it will return an object of WP_Error type. So… This Fatal Error occurs, because wp_insert_term … Read more