Table of Contents
PublishPress Authors allows you to generate PHP versions of your Author Boxes layouts.
This approach is best suited for theme developers or people who want to reuse and distribute their layouts. There are a couple of key advantages to this approach:
- You can place these layouts inside your theme where you can add further customizations.
- You can distribute these layouts. For example, some theme designers will include their own layouts for the Author Boxes inside their themes.
One disadvantage to this approach is that you will not be able easily edit the layout via the “Author Boxes” screen. If you want to maintain that easy of customization, you can use a single line of PHP code instead.
Create the Template Code #
- Go to “Authors” then “Authors Boxes” in your WordPress admin menu.
- Edit an existing layout, or create a new layout.
- Go to the “Generate Theme Template” tab.
- Click the “Generate Template” button under the text area.

Add the Template Code to Your Theme #
- Create a folder inside your theme. The folder should be here:
/wp-content/themes/your-theme-name/publishpress-authors/author-boxes/ - Create an empty PHP template file with your desired file slug in the
/author-boxes/folder of your theme. For example, the file can be located here:/wp-content/themes/your-theme-name/publishpress-authors/author-boxes/my-custom-author-box.php. - Copy the generated code from the Author Box Editor and paste it inside the newly created file.
- This image below shows a finished file inside the TwentyTwentyTwo theme folder.

- Congratulations. Your can now choose your template inside the PublishPress Authors Settings:

- You can also insert it using a shortcode by using the file name. Here is an example of the shortcode:
[publishpress_authors_box layout="my-custom-author-box"]
