This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.


This topic contains 2 replies, has 2 voices.

Last updated by Raja Mohammed 8 months, 3 weeks ago.

Assigned support staff: Raja Mohammed.

Author Posts
September 11, 2019 at 6:39 am #4550819


Tell us what you are trying to do?
I run a multilingual website, i see other languages taxanomies.
Is there any documentation that you are following?
Yes, default wpml settings file with the theme.
Is there a similar example that we can see?
hidden link
What is the link to your site?

September 12, 2019 at 5:27 am #4558391

Raja Mohammed

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The issue has been escalated to the compatibility team.
I will update here once I have something to share with you.

September 13, 2019 at 12:44 pm #4568683

Raja Mohammed

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks for your patience, Our compatibility team has proposed a workaround

Please follow the below steps to apply the same to your theme.

Step 1: Open the file in path wp-content/themes/adforest/inc/multilingual-functions.php

Step 2 : Change the line

add_filter('adforest_wpml_show_all_posts', 'adforest_wpml_show_all_posts_callback', 10, 1);


//add_filter('adforest_wpml_show_all_posts', 'adforest_wpml_show_all_posts_callback', 10, 1);

Step 3: On the same file change the content of the function adforest_form_lang_field_callback to

function adforest_form_lang_field_callback($echo = false) {
        global $sitepress;
        $hidden_lang_html = '';
        if (function_exists('icl_object_id')) {
        	$hidden_lang_html = '<input name="lang" type="hidden" value="' . ICL_LANGUAGE_CODE . '">';
        if ($echo) {
            echo adforest_returnEcho($hidden_lang_html);
        } else {
            return $hidden_lang_html;

This would solve your issue. I would also request you to notify the theme author about this issue and ask the theme author to add the code in their theme files. We are also trying to reach the author but the author does not seem to respond to our request.

Kind regards