(If you just want the code see here.)
It’s pretty simple to add an author bio below your posts if you’re using the Genesis Framework.
But this adds the author box to all post types (except Pages).
This means you’ll have an author box at the bottom of any Custom Post Types (CPTs) registered by plugins you have installed. You’ll also see the author box at the bottom of any CPTs you register yourself. Likely not something you want.
Remove the author box from everything except posts
So how to make sure the author box only appears on posts? Use this:
And just in case you didn’t know, the content for the author bio is pulled from the “Biographical Info” field on your user profile (Users → Your Profile). This field is added to the User meta by Genesis.
And for bonus points…
It’s very easy to alter the functionality of this code to suit your needs – just update the PHP conditional.
For example, if you’re happy to have the author bio on your Posts, but you don’t want it to appear on your “Snippet” Custom Post Type, use this: