What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To show a guest contributor’s name without creating a WordPress account, save the preferred name in a post custom field and use PHP filters to replace the author name WordPress outputs. This changes the displayed byline only; it does not create a guest profile, biography, or author archive.
When this custom-field method makes sense
This approach suits a post with one guest byline when you want to keep the contributor out of the WordPress user list. It stores a text value on the post, then substitutes that value when author-name filters run. The post remains associated with its existing WordPress author behind the scenes.
A name string does not create a reusable author profile, avatar, biography, co-author relationship, or guest-author archive. If you need those features or regular multiple bylines, consider a plugin-based approach instead.
Add the guest name to a post
- Open the post you want to display with the guest byline in the WordPress block editor.
- Enable Custom fields. Open the three-dot menu, choose Preferences, and enable Custom fields under Advanced. The exact control location can vary with the editor and active theme.
- Create the field. In the Custom Fields panel, use
guest-authoras the field name and enter the guest’s name as its value. The key must match the code exactly. - Save or update the post.
Add the author-name filters
Add this PHP snippet using a code-snippet manager or another suitable method for your site:
add_filter( 'the_author', 'guest_author_name' );
add_filter( 'get_the_author_display_name', 'guest_author_name' );
function guest_author_name( $name ) {
global $post;
$author = get_post_meta( $post->ID, 'guest-author', true );
if ( $author ) {
$name = $author;
}
return $name;
}
The callback reads the guest-author post metadata and returns its value when it is non-empty; otherwise, it leaves the original name unchanged. WordPress documents filter registration with add_filter() and post metadata retrieval with get_post_meta(). The tutorial recommends WPCode as an optional interface for adding the snippet; its product details may change.
WordPress filters only affect output paths that invoke those hooks. The tutorial’s two filters target common author-name output, but they do not guarantee that every theme, block, or page builder will use those paths. The Custom Guest Authors listing says compatibility depends on how the theme or builder retrieves the author, including whether it uses the_author(), get_the_author(), or get_the_author_meta( 'display_name' ).
Rank #2
Check the byline where your site displays it
- Preview a post with a populated
guest-authorfield and confirm the intended name appears. - Preview a post without that field and confirm the original author name remains.
- Check the contexts that matter to your site, such as single posts, archives, and feeds. If a context still shows the original name, its template may not use the filtered output.
Choose an alternative if you need more than a name override
| Approach | Best fit | What it provides | Trade-off |
|---|---|---|---|
| Custom field and PHP filters | One guest name on an individual post | A string stored as guest-author that can replace the displayed author name |
Requires maintaining PHP code; the example does not describe multiple-name formatting or create profiles and archives. |
| Custom Guest Authors | An editor interface for guest names on posts | The listing documents configurable post types and display scope, multiple comma-separated names, join styles, fallback names, and suppression of author archive links while guest text is active. | Guest names are plain unlinked text, and the listing says they do not have WordPress author archives. |
| Co-Authors Plus | Multiple bylines and reusable guest-author profiles | The listing documents guest authors without WordPress user accounts, co-author assignments, profiles, and co-author archives. | The theme needs to use the plugin’s template tags or blocks to display the bylines. |
The Custom Guest Authors listing also documents transient caching with a 12-hour default, configurable from 1 to 168 hours, and invalidation on post saves or post-metadata changes. Those are claims about that plugin, not behavior of the hand-written snippet.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Set the custom field without the editor panel
The Custom Guest Authors listing says its guest-author metadata key can also be set through update_post_meta() or WP-CLI. The key still needs to match the value the display code or plugin expects.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsQuick Recap
Best Value
- HAPPY SWEETEST DAY - Spread feel-good vibes and love on Sweetest Day with this keepsake for your special person! Just customize it with your names, avatars, and a photo.
- MAKE THEIR DAY BRIGHTER - Capture your sweetest moments with the ultimate way to say “I care.”
- OUR STORY IS THE CUTEST - The fun doesn't stop here – jot down a heartfelt message or share your love story on the back cover!
- BOOK OF US - This 32-page, 8.5 by 8.5-inch keepsake features high-quality illustrations with perfect pops of color that match the cover color. Made in the USA and perfect for adults all ages.
- SHOP WITH CONFIDENCE - Your order will be made with a commitment to premium quality and the recipient will love it! Our goal is to uphold your reputation for giving distinctive, customized gifts that connect people one page at a time.
Rank #3
- 💌HAPPY SWEETEST DAY - Spread feel-good vibes and love on Sweetest Day with this keepsake for your special person! Just customize it with your names, avatars, and a photo.
- MAKE THEIR DAY BRIGHTER - Capture your sweetest moments with the ultimate way to say “I care.”
- OUR STORY IS THE CUTEST - The fun doesn't stop here – jot down a heartfelt message or share your love story on the back cover!
- BOOK OF US - This 32-page, 8.5 by 8.5-inch keepsake features high-quality illustrations with perfect pops of color that match the cover color. Made in the USA and perfect for adults all ages.
- SHOP WITH CONFIDENCE - Your order will be made with a commitment to premium quality and the recipient will love it! Our goal is to uphold your reputation for giving distinctive, customized gifts that connect people one page at a time.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

