Skip to content

News Block shows WordPress users and CoAuthors as authors on posts #55

@knice

Description

@knice

As part of the news center migration, we decided that we will handle WordPress users and post authors separately. WordPress users, who can login and visit the WordPress dashboard, are not displayed anywhere on the site. Post authors, guest authors, etc., will be managed using the CoAuthors+ plugin.

Currently, the news syndication block, which is available as of v1.7.x of this plugin, combines and displays WordPress users and CoAuthors in the block output. We need to change this logic to:

If a CoAuthor isn't assigned, display the Public Affairs CoAuthor (not the Public Affairs WordPress user) as the author.

protected function get_authors(array $item): array {
if ( empty( $item['author'] ) && empty( $item['coauthors'] ) ) {
return [];
}
$authors = [];

Metadata

Metadata

Assignees

Labels

changeChange to an existing but not broken feature

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions