Author Boxes and Custom Templates

PublishPress Authors allows you to generate PHP versions of your Author Boxes layouts. You can place these layouts inside your theme where you can add further customizations. You can also distribute them as required. For example, some theme designers will include their own layouts for the Author Boxes inside their themes.


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.
Author Box editor theme template

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.
Author Box editor theme template file
PublishPress Authors Settings for a custom layout
  • 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"]