Automattic / Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
https://wordpress.org/plugins/co-authors-plus/
GNU General Public License v2.0
287 stars 205 forks source link

get_the_author_meta() not working on author pages #969

Closed gregarios closed 11 months ago

gregarios commented 11 months ago

In version 3.5.12 the get_the_author_meta() doesn't show anything even though there is a meta description for the author.

Example in author.php — this only prints the administrator's info:

<h2><?php printf( __( '%s', 'wshg' ), get_the_author() ); ?></h2>   
<?php if ( get_the_author_meta( 'description' ) ) : ?><?php the_author_meta( 'description' ); ?><?php endif; ?>
gregarios commented 11 months ago

This is the change that causes the problem, in file /co-authors-plus.php: screenshot-20230731-102316-AM

Commenting out this fixes it as far as I can tell: screenshot-20230731-102304-AM

GaryJones commented 11 months ago

@gregarios Can you please confirm if you meant 3.5.12 (just released) rather than 3.1.12?

gregarios commented 11 months ago

@gregarios Can you please confirm if you meant 3.5.12 (just released) rather than 3.1.12?

Oh yes sorry I meant 3.5.12

GaryJones commented 11 months ago

Thanks - from your screenshot, it looks like https://github.com/Automattic/Co-Authors-Plus/pull/926 has broken things. I'm looking into it.

GaryJones commented 11 months ago

Fixed by #970. Released as 3.5.13.

gregarios commented 11 months ago

Fixed by #970. Released as 3.5.13.

Verified fixed under 3.5.13. Thank you!