May be a stupid question: Is this author bio box we can see after each blog post on wpbeaverbuilder.com built in the bb-theme? Or do you use a plugin for that?
Short: How do I get an author bio box after posts?
We’re achieving ours with a little bit of custom code, but a quick Google search yields quite a few results for “wordpress author bio box” plugins. You might test out some of those, however, if you want to code it yourself, here’s what we’re doing…
I was looking up information to see if BB theme had an author box and spotted this code. Unfortunately, it won’t work the way it is right now. The way it’s written it will simply override the_content with an author box. If you’re trying to append stuff to the end of the_content with a filter (not an action) you must append it to $content. Here’s what will work, and note I’m using ob_start to prevent using echo for the whole box and make it easier to edit. Also, using singular(‘post’) ensures it will only show on posts instead of calling global $post.
Simple author box https://wordpress.org/plugins/simple-author-box/installation/
Looks really good on paper, but has not updated anything for more than a year (by dec. 2015). And it doesn’t create a widget nor appear automatically after a post in BB.
Sexy Author Bio https://wordpress.org/plugins/sexy-author-bio/
Looks terribly bad ( will try to edit it with CSSHERO), but the problem for now is that I cannot make it to show the Bio of the Post author. So it’s showing my bio, eventhough it’s another author who write the blogpost displayed above it.
Anybody has a good solution to this problem. Know a plugin that works with BB?
I used Viktor’s solution and it worked great. Now, what would I add to that code to add a title to the author box that says “About the Author” which would ideally be H2 or H3 and above both the image and the text, left aligned?
Thanks for any help. (an example of a post on the site in question is here)
After seeing another smugmug blog post I really like the custom bio solution but am not sure where to start. How and where do I add Viktor’s custom code? I am using a BB child theme. Also where does it pull the bio image and content from?’
That code goes to your child theme’s functions.php file and all data is taken from the profile page. The image from the Profile Picture and the description from the Biographical Info.