Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by Bigul 2 years, 5 months ago.

Assisted by: Bigul.

Author Posts
April 5, 2023 at 4:39 pm #13412491

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

This looks like a compatibility issue with the Uncode theme. The number of queries from WPML is reduced in our local copy after the following steps. Please try it after a full site backup{mandatory} and let us know your feedback.

1) Visit WPML>>Languages>>Site Languages
2) Click on *Edit Languages* link
3) On the Edit Language page click on any text field to enable the *Save* button
4) Click on the *Save* button
5) Open the *functions.php* file of your child theme to edit
6) Add the following code at the end of the *functions.php* file and save the changes

add_filter ("uncode_core_use_text_fields_for_cpt_selects", '__return_true');

In our local copy, 300+ queries dropped after these steps. Our compatibility team is cross-checking this issue in deep and we will get back to you as soon as possible.

--
Thanks!

Bigul

April 6, 2023 at 4:31 pm #13421605

Maximilian Wellner

Yes I can confirm it's noticeable faster. Can you fix this in your next wpml update please?
We have 25 websites with uncode and everywhere the same issue.

April 7, 2023 at 3:38 pm #13428261

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the confirmation. For your kind updates, this bug is happening because of a wrong function call from the Uncode theme. Our compatibility developers are currently debugging this problem further. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul