Assign bylines on posts and maintain staff profiles.
Assign bylines on a post
On post types with prc-bylines support (default: post):
- Open the Bylines inspector sidebar.
- Add authors in display order. Each row references a
bylinesterm. - Optionally set acknowledgements the same way.
- Leave display bylines enabled unless the template should hide them.
Stored meta: bylines and acknowledgements as ordered { key, termId } arrays, plus displayBylines (boolean, default true).
Edit a staff profile
Edit a staff post. The staff inspector sidebar covers job title, extended bio fragment, byline link visibility, social profiles, and related taxonomies (areas-of-expertise, staff-type).
Public author pages use the bylines term archive (/staff/{slug}), not WordPress native author archives.
Blocks
| Block | Name | Use |
|---|---|---|
| Bylines Query | prc-block/bylines-query | InnerBlocks container for a post's bylines (postId context) |
| Bylines Display | prc-block/bylines-display | "By Author 1, Author 2, and Author 3" with configurable prefix |
| Staff Context Provider | prc-block/staff-context-provider | Resolve a staff member by slug for inner blocks |
| Staff Query | prc-block/staff-query | List staff filtered by type / research area |
| Staff Info | prc-block/staff-info | Show resolved staff fields inside a context provider |
Patterns under patterns/ provide ready-made staff bio compositions.
Guest authors
External contributors without a staff post can exist as bylines terms only. Maintainers create them with:
wp prc bylines guest-authors create --first=Jane --last=Doe --dry-run=false
Dry-run is the default; pass --dry-run=false to create the term.
Enable bylines on another post type
add_post_type_support( 'my-post-type', 'prc-bylines' );