WPML

Overview of the Issue

When using PublishPress Authors with WPML, you might experience the following issue: you translate an author’s bio in String Translation, but translated posts still show the bio in the default language.

Workaround

Add this code to your theme’s functions.php file or a code snippets plugin, then translate the bio in WPMLString Translation (domain PublishPress Authors):

PHP
add_filter( 'publishpress_authors_author_attribute', function ( $value, $term_id, $attribute ) {
    if ( 'description' !== $attribute || ! is_string( $value ) || '' === $value ) {
        return $value;
    }
    return apply_filters( 'wpml_translate_single_string', $value, 'PublishPress Authors', '#' . (int) $term_id . ' Biographical Info' );
}, 10, 3 );

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.