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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

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

This topic contains 15 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year, 8 months ago.

Assisted by: Marsel Nikolli.

Author Posts
February 13, 2024 at 3:52 pm #15298791

damienC-18

OK this one I don't understand, I didn't see it when I was looking in all domains. Maybe I simply missed it then.
Thank you very much for your assistance.
All seems to work now, except the translation of author bio still:

hidden link

String translated: hidden link

February 13, 2024 at 4:26 pm #15298867

Marsel Nikolli

Could you please check that the issue could be related to the function used by the theme or plugin to display that information, try using 'get_the_author_meta()' instead of 'get_user_meta() ' on the author.php file on your theme folder, and check if that resolves the issue.

February 14, 2024 at 1:26 pm #15302559

damienC-18

I've tweaked the author.php file (screenshot) and asked my hoster for a database sweep just in case yet the issue remains.

author_meta.png
February 15, 2024 at 10:43 am #15306437

Marsel Nikolli

Hi Damien,

I checked further and you need to edit the author.php file and find this:

$agent_bio = $current_author->description;

and change it to:

$agent_bio = get_the_author_meta('description', $author_id);

* Note: Please make sure you have a full backup of your website before making any update/changes on your website.

For more information related to the user meta data please check:
https://wpml.org/documentation/getting-started-guide/string-translation/translating-user-meta-information-with-wpml/#displaying-user-metadata-translations-on-the-front-end

Let me know how it goes,
Marsel

February 15, 2024 at 12:18 pm #15306827

damienC-18

It worked! Thank you so much Marsel, you've been so helpful!

February 15, 2024 at 12:24 pm #15306834

damienC-18

Wait, there's just one thing, the author's name is not translated as well front-end, yet it's translated everywhere as well in string translations.

Can we fix that please?

name.png
February 15, 2024 at 2:08 pm #15307662

Marsel Nikolli

On the same file, you need to change the following code:

$agent_name = $current_author->display_name;

to:

$agent_name = get_the_author_meta('display_name', $author_id);

* Note: Please make sure you have a full backup of your website before making any update/changes on your website.

Let me know if you have any other question,
Marsel

February 15, 2024 at 2:12 pm #15307669

damienC-18

Thank you Marsel, it works perfectly!

February 16, 2024 at 11:37 am #15311288

damienC-18

Hi Marsel, sorry but I have yet another string not translated.

When opening the registration (small login icon close to the phone number):

hidden link

"I agree with your
Terms & Conditions"

is well translated in String Translations (screenshot) yet doesn't show up.

How could we fix it please?

February 16, 2024 at 11:39 am #15311293

damienC-18

It's better with the screenshots...

agreewith.jpg
string.png
February 16, 2024 at 3:13 pm #15312195

Marsel Nikolli

Hi Damien,

Does the website have any cache in user (server-side cache)?
If so please try clearing the cache and let me know.

February 16, 2024 at 3:16 pm #15312198

damienC-18

As the website is still being built I'm not using any cache from WordPress or server-side at all.

February 19, 2024 at 11:00 am #15317534

Marsel Nikolli

Hi Damien,

I checked a bit further on your website and would it be possible to check if the issue happens in a minimal setup, that meaning:

- keep the theme you have
- keep active only WPML Plugins and the theme must have plugins
- disable all other plugins

After, check if the issue is still happening.

This will help checking for any possible plugin conflict.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

Let me know how it goes,
Marsel

February 20, 2024 at 9:01 am #15321009

damienC-18

Hi Marsel.
I just cloned the website as a staging version, credentials are exactly the same, I've deactivated all but necessary plugins, the issue persists.

hidden link
hidden link

Please investigate on this staging. Thank you very much.

February 21, 2024 at 9:36 am #15326353

Marsel Nikolli

Hi Damien,

I've escalated the issue to the 2-nd tier support team, in order to further troubleshoot.

I'll let you know as soon as I have a feedback from the team.

Regards,
Marsel

The topic ‘[Closed] Split: Author Bio description translation not showing’ is closed to new replies.