Table of Contents

Add the Author Details to the Authors Page

In WordPress, and the PublishPress Authors plugin, every author has their own URL. This page lists all the content they have written.

By default, these author pages do not contain much information. This image is an example using the TwentyTwenty theme. It shows only the author's name.

Twenty Twenty Author
Twenty Twenty Author

It is possible to add the PublishPress Authors box to this page so that you can show more details about the author.


Option #1. Use a Theme With PublishPress Authors Support

Some themes do automatically support PublishPress Authors. For example, the popular Astra theme will automatically find and display your author's name, description and avatar:

Publishpress Authors Astra
Publishpress Authors Astra

Option #2. Add PHP to Your Theme

One option is to place this code directly into the template file for your WordPress theme. As with all WordPress development, we do recommend using a child theme if you want to modify the code. This code uses PHP to display a shortcode and this guide explains how to customize the shortcode.

<?php echo do_shortcode( '[author_box layout="boxed" archive=1]' ); ?>

This code should be placed in the Archives section of the themes layout. For example, in the TwentyTwenty theme, you can place it directly under this code at line 65 of the index.php file:

	<?php if ( $archive_title ) { ?>
	<h1 class="archive-title"><?php echo wp_kses_post( $archive_title ); ?></h1>	
	<?php } ?>

Option #3. Use a Shortcode

This option can be used if you have a theme or pagebuilder that allows you to customize the Authors pages.

For example, the Elementor Pro plugin has a “Single & Archive Builder” that allows you to control the author pages. Another example, is the Beaver Builder that allows you to modify author pages with the Beaver Themer add-on.

If you have this option on your site, you can use this shortcode to show the author profile. This guide explains how to customize the shortcode.

[author_box layout="boxed" archive=1]

If your pagebuilder or theme doesn't have a way to display shortcodes, they probably will accept the “Widget Shortcode” plugin.


Professional publishing plugins for WordPress! Get PublishPress