Automattic / Co-Authors-Plus

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

Problem with Yoast Slack sharing: List Co Authors Plus authors in the Slack social share #952

Closed Hercilio1 closed 1 year ago

Hercilio1 commented 1 year ago

The Slack social share still gets the native author.

Yoast has a feature that improves social share through Slack. This feature prints the author and the "time to read" of a post. Currently, as I said, it is not getting the Co-Authors Plus authors, but yes the native one.

This feature comes activated by default. You can check it out by going to the general settings of Yoast and looking for the following Social Share resource: image

After making sure it is activated if you share through Slack a post with a native author that differs from the selected author (selected by Co-Authors block), you will see the native author.

Hercilio1 commented 1 year ago

You could use the hook wpseo_enhanced_slack_data to override the authors meta :smiley:

GaryJones commented 1 year ago

@Hercilio1 Would you like to provide a PR for this, please? It seems like you're already familiar with the problem and possible solution.

Hercilio1 commented 1 year ago

@GaryJones , yes, no problem :)

GaryJones commented 1 year ago

Self-note: Enhanced Slack Sharing was added to Yoast SEO 15.2 in October 2020.

GaryJones commented 1 year ago

Added with #953.