Additional Authors

설명

Let’s you add more than one author to your posts.

Optionally extends the byline your theme already renders – see the FAQ.

Arbitrary section

스크린샷

블록

이 플러그인은 2개의 블록을 제공합니다.

  • Author Archive Title Displays the Title of an author in archives.
  • Author Archive Biography Displays the biography of an author in archives.

설치

  1. Upload additional-authors-wordpress.zip to the /wp-content/plugins/ directory
  2. Extract the Plugin to a Additional Authors Folder
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

The additional authors do not show up in my theme

By default the plugin only stores them; the output is up to the theme, through
do_action( ‘additional_authors_the_authors’ ). Since 1.4.0 it can also extend the
byline a standard theme already renders:

add_filter( 'additional_authors_auto_byline', '__return_true' );

That covers the core/post-author and core/post-author-name blocks used by block
themes such as Twenty Twenty-Four and Twenty Twenty-Five, and the the_author() and
the_author_posts_link() template tags used by classic themes. It is off by default,
because a plugin update should not change what your site outputs.

Two things worth knowing:

  • Some classic themes — Twenty Twenty-One among them — wrap get_the_author() in a
    link they build themselves. The additional names then sit inside that link, which
    points at the main author. If per-author links matter to you, output them yourself
    with do_action( 'additional_authors_the_authors_posts_links' ) instead.
  • The core/post-author block is left untouched when its “Show bio” option is on: a
    biography belongs to one person, and listing several names above it would read as if
    it described all of them.

Can I change how the names are joined?

additional_authors_byline_separator sets the separator (default ,), and
additional_authors_byline_suffix lets you build the whole appended string, for
example to get “Anna, Mark und David”:

add_filter( 'additional_authors_byline_suffix', function ( $suffix, $ids ) {
    $names = array_map( fn( $id ) => get_the_author_meta( 'display_name', $id ), $ids );
    $last  = array_pop( $names );
    return ( $names ? ', ' . implode( ', ', $names ) : '' ) . ' und ' . $last;
}, 10, 2 );

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Additional Authors”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Additional Authors”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Additional Authors”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.4.0

Features
* optionally extend the byline a standard theme renders (cffb64c)

Bug Fixes
* point the All authors column at the right users (8567bd1)
* repair the post-count endpoint and the users list column (aa3416a)
* stop contributors from creating accounts and reassigning posts (2e19c60)

1.3.9

  • Fix: Include build in pipeline

1.3.8

  • Add gutenberg blocks to support archive pages

1.3.7

  • Rework File Structure

1.3.6

  • Added additional Filter

1.3.5

  • Fix: PHP 8.2 warnings
  • Fix: double slash in asset urls
  • Packages update

1.3.3

  • Packages update

1.3.2

  • WordPress Core compatibility fix
  • Packages update

1.3.1

  • Update: JS packages update

1.3.0

  • Feature: Show posts count on users table with additional author posts inclusive

1.2.13

  • Bugfix: Post type may be array on change post count hook

1.2.12

  • Optimization: Post table all authors list
  • Bugfix: Delete user crash

1.2.11

  • Optimization: Add admins and editors to additional author dropdown

1.2.10

  • Bugfix: Additional authors script broke reusable block editor

1.2.9

  • Optimization: autocomplete search case insensitive
  • Optimization: click outside hides dropdown

1.2.8

  • Bugfix: Missing migration script

1.2.7

  • WP5.7 checked
  • Bugfix: Database update error

1.2.6

  • Performance: WP_Query performance optimization
  • Update: Dependency updates
  • Bugfix: Cannot delete last additional author from post

1.2.5

  • Bugfix: Gutenberg no POST index fix

1.2.4

  • Optimization: only show additional authors im post type supports author feature
  • Feature: Customizing filter for get_users args in meta box

1.2.3

  • Optimization: Additional authors are included in has_published_posts WP_User_Query
  • Feature: New WP_User_Query argument “ignore_published_as_additional_author” for ignoring additional authors with “has_published_posts”

1.2.2

  • Fix: Query manipulation fix which lead to duplicate posts

1.2.1

  • Feature: Link to user profile page

1.2.0

  • Ready for 5.0 and Gutenberg
  • Optimization: With Gutenberg editor only the additional authors will be visible in post meta box. The post author was removed and needs to be handle with default post edit controls.
  • Info: post_meta _additional_authors is deprecated and will be will not be saved anymore
  • Bugfix: Delete user

1.1.5

  • Bugfix: Add empty additional author fix
  • Bugfix: Listen to wordpress author field change

1.1.4

  • BugFix: authors could not be added because of bad timing with onBlur
  • BugFix: keep order of additional authors
  • Feature: All WP_Query will use additional authors not only on authors page
  • Feature: new filter to set the default for ignoring or using additional authors with WP_Query
  • Optimization: Query manipulation optimization for author page

1.1.3

  • BugFix: IE11

1.1.2

  • Extendable meta box

1.1.1

  • Added Gutenberg support
  • CSS styles

1.1

  • Author keys move from postmeta to custom table
  • SQL Performance optimization

1.0

  • First release