Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Divi author Bio not showing translation

This may be included in a recent Divi udpate. I tested in the version I was using and it had not yet been resolved. Please try this:

As a workaround:
in wp-content/themes/Divi/includes/builder/feature/dynamic-content.php just after line 941:

$author = get_userdata( $post->post_author );\

add:

if (class_exists('sitepress')) {
    $author->description = get_the_author_meta('description' ,$author->ID);
}

100% of people find this useful.

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 emmanuelN-8 4 years, 4 months ago.

Assisted by: Lauren.

Author Posts
July 7, 2020 at 5:38 pm #6541813

emmanuelN-8

The client is adding a dynamic biography field to the author page but the translated biography does not display. Please see this page:
hidden link

The translated bio should read "Test Bio EN". The client has created a template named "Bloc bio auteurs" in Divi -> Libraries with a Person element. This element has an Author Bio section that displays the biography entered in Users -> Profile.

The client has used the template in a Global Element at Divi -> Theme Builder. When you go to WPML -> String Translation, you can find the biography string there and translate it. however, on the frontend, the translation does not show up.

Test site with Divi set up: hidden link
On this site, I just created a page and added the Person element there. In the text field, I clicked the icon to add dynamic content and selected the author bio. After translating the page and the bio, you can see that the translation does not appear on the frontend.
hidden link

July 7, 2020 at 9:38 pm #6542625

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I just found a similar ticket with a workaround. This may be included in a recent Divi udpate. I tested in the version I was using and it had not yet been resolved. Please try this:

As a workaround:
in wp-content/themes/Divi/includes/builder/feature/dynamic-content.php just after line 941:

$author = get_userdata( $post->post_author );\

add:

		if (class_exists('sitepress')) {
			$author->description = get_the_author_meta('description' ,$author->ID);
		}

This worked in my test site here:
hidden link
The language switcher is at the bottom, and you can see the biography content at the bottom of the page.

Please let me know if this workaround resolves the issue for you. Thanks!

July 8, 2020 at 8:23 am #6545417

emmanuelN-8

That solves it! Thank you very much.

Hopefully Divi will fix this!