Guide

Staff Bylines user guide

Assign bylines on posts and maintain staff profiles.

Assign bylines on a post

On post types with prc-bylines support (default: post):

  1. Open the Bylines inspector sidebar.
  2. Add authors in display order. Each row references a bylines term.
  3. Optionally set acknowledgements the same way.
  4. 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

BlockNameUse
Bylines Queryprc-block/bylines-queryInnerBlocks container for a post's bylines (postId context)
Bylines Displayprc-block/bylines-display"By Author 1, Author 2, and Author 3" with configurable prefix
Staff Context Providerprc-block/staff-context-providerResolve a staff member by slug for inner blocks
Staff Queryprc-block/staff-queryList staff filtered by type / research area
Staff Infoprc-block/staff-infoShow 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' );

Was this helpful?