Linux 软件免费装
Banner图

Additional Authors

开发者 palasthotel
edwardbock
greatestview
benjaminbirkenhake
janaeggebrecht
更新时间 2026年8月4日 21:14
捐献地址: 去捐款
PHP版本: 5.0 及以上
WordPress版本: 7.0.2
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

author meta fields

下载

1.2.0 1.2.3 1.2.4 1.2.7 1.2.8 1.0 1.1.1 1.2.6 1.2.9 1.4.0 1.1.4 1.1.2 1.1.5 1.2.11 1.2.12 1.3.3 1.3.4 1.3.7 1.3.5 1.3.8 1.3.9

详情介绍:

Let's you add more than one author to your posts. Optionally extends the byline your theme already renders - see the FAQ.

安装:

  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

升级注意事项:

Since 1.2.3: Author lists will change if you use "has_published_posts" in WP_User_Query as additional authors are included. Since 1.2.2: There was an update on query manipulation. Please make shure your results are still as expected/befor.

常见问题:

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 );

更新日志:

1.4.0 Features 1.3.9 1.3.8 1.3.7 1.3.6 1.3.5 1.3.3 1.3.2 1.3.1 1.3.0 1.2.13 1.2.12 1.2.11 1.2.10 1.2.9 1.2.8 1.2.7 1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1 1.0