Unless you are Ernest Hemingway, some other famous author, or run a single author WordPress/Genesis Framework powered site, you just might want to display the author's name in the entry meta area for your posts and pages. Another way to display your site's authors is with an author box. An author box can appear on single posts or archive pages. The Genesis Framework supports an author box and has one built-in ready for you to display. You can learn more about the Genesis Author Box either from Brian Gardner or Studio Press.
A user recently wrote and asked:
I want the Author Box Title to link to the author’s archive page when on a single post, but not when the Author Box is used on the Archive Page.
To provide this result, the author box title needs to be customized.
Author Box Title Customization
Studio Press provides the following basic code snippet to customize the author box title.
This works great if you want the title of the author box to read "About the Author". However, this doesn't meet the user's needs. We modified the above code to include the features the requester wants. As a word of caution, we do not use this code on our site out of security concerns (see below). If you decide to use this code, you do so at your own risk.
A BIG Security Concern
There’s one BIG security concern I’d like to address with this approach. WordPress uses the user_nicename field as the URL for author archive pages. The user_nicename holds the same value as the user_login. There’s no way to change this in the admin area. By using author archive pages, you are exposing user login ids to the world. There’s no easy way to fix this. However, here’s an article that explains how to change the user_nicename through PHPMyAdmin: http://premium.wpmudev.org/blog/change-admin-username/
Leave a Reply