CALSv4 Version 4.5.3
Version 4.5.3 adds the ability to add custom authors to your posts. The author you add will replace the default post author.
Custom Post Author
This theme update adds the ability to override the author name of a post. By default, the WordPress Post Author Name block displays the name of the site user that created the post. You can also change the author in the post settings to another user of your site. However, this can be limiting because you can only select an author from the list of users on your site. If you have guest authors, you would not be able to display their name in the block.
How to add a custom author
To add a custom author to your post from the post editor, open the settings sidebar and make sure the “Post” tab is selected at the top. In the sidebar, you’ll see a drop-down section called “Post Settings.” Within that section, there is a field for the custom post author.
How do display the custom author
The custom author field overrides the default author in the Post Author Name block. This block can be used in several places:
- The Post Content
You can add this block to the actual post you are editing. It will display on the page wherever you put it. - Query Loop
The query loop block displays a list of posts on your site. It allows several child blocks, like the post title and date. You can add the author name block to the query loop, and it will display the custom author name, falling back to the actual assigned post author if there is no custom name added. - Search and Archive Templates
The search and archive pages on your site use the query loop. Therefore, the author name block can be added to display in either of those templates.
Please note: Due to technical limitations, the custom author name won’t usually display correctly in the editor. However, when you publish or preview your post, it will be displayed correctly on the actual page.
When would I use the author name block?
TLDR: If you don’t need to display the author in a list of all posts or your post template, you do not need to use this block.
The author name block allows you to dynamically display the author of the post. The author information is stored separately from the content, meaning it can be displayed as a separate block in the query loop (which is used in your search results page and archive pages).
In many cases, you don’t need the author to be stored separately from the content. You only need it to be displayed on a post-by-post basis. In that case, you can add the author name block to the post itself, or just type in into a paragraph block in the content. You generally only need to use this feature if you will be displaying the author on all or most posts on your site.