Existing code somewhere in a template or shortcode handler, display user profile biography:
<?php if ( $user ) : $bio = get_the_author_meta( 'description', $user->ID ); ?> <div class="esineja_info"> <span class="bio"><?php echo $bio; ?></span> </div>
How do I get these biographies to show up in WPML String Translation. This is not making it happen:
$bio = icl_t( 'theme', 'bio-' . $nimi, get_the_author_meta( 'description', $user->ID ) );
This help page isn't particularly helpful to me, at least I cannot figure out how to apply it to this situation. This problem-specific thread is also quite vague on how exactly icl_t() is supposed to be used.