WP Smith

Creating WordPress & Genesis Websites Since 2010

  • Home
  • About
  • Services
  • Blog
  • Contact

Mar 22 2011

Add a Genesis Authorbox Anywhere Using My Genesis Authorbox Shortcode

As I am slowly developing a new plugin, Genesis Simple Authorbox, I realized that I should just release parts to the community that I believe would be beneficial. Follow these simple steps to incorporate the Authorbox Shortcode.

  1. Download the Genesis Simple Authorbox Shortcode: [download id="6"]
  2. Upload it to your Child Theme folder
  3. Add the following PHP Code to your functions.php file:
    [php]require_once( CHILD_DIR.'/genesis-author-box-shortcode.php' );[/php]

Now you can use [genauthorbox] to produce the Genesis Authorbox anywhere you'd like. This is also perfect for Genesis Child Theme developers using do_shortcode().

Attributes

[genauthorbox] takes a few attributes. They are:

  • before: Text/markup to place before the authorbox; default: <div class="author-box">
  • after: Text/markup to place after the authorbox; default: </div>
  • context: Context of the authorbox; default: '' NOTE: don't use this unless you are comfortable with it
  • title: Title of the authorbox; default: "About First Last Name" (e.g., get_the_author())
  • description: The author description/Biographical Info from Your Profile; default: (empty)
  • gclass: Adds a class to the gravatar img; default: alignleft
  • galt: Adds ability to provide an Alt Tag to the gravatar img; default: (empty)
  • gsize: Adds ability to resize gravatar image; default: 70
  • gemail: Fetch gravatar image by email (only changes the avatar & does not change the author information [e.g., title, description]); default: get_the_author_meta('email')
  • userid: Overrides gemail, title, & description with the default user's (title: About First Last; description: biographical info; gemail: user's email); default: (empty)

Example

[genauthorbox title="About Mr. Starbucks" Description="I am a hopeless Starbucks addict, freelance web designer..." gsize=72 galt="not me" gemail="[email protected]"]

Written by Travis Smith · Categorized: Genesis, Plugins

StudioPress Premium WordPress Themes     WP Engine Managed WordPress Hosting

What can I do for you!?

Custom Development

We develop plugins by determining both business/functional and technical requirements, following WordPress development best practices, and using agile methodology to ensure you get the best solution.

Consulting

Have questions? Need a reliable developer to consult? Please contact us today!

Customized Theme

We can customize your theme or child theme, or create a child theme for you based on your needs while enhancing the performance of every individual attribute.

Customized Plugin

We can customize your plugins, extend plugins (e.g., Gravity Forms, Jetpack, Soliloquy) based on your needs ensuring security, performance, and positive business impact.

Contact Us

About Travis Smith

As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.

Comments

  1. Vi Wickam says

    April 30, 2013 at 2:27 pm

    I tried loading your code, and got the following error:
    Parse error: syntax error, unexpected ‘]’ in /home/username/wp-content/themes/themename/genesis-author-box-shortcode.php on line 28

    Thanks,
    Vi

    Reply
  2. Stefanie says

    September 18, 2013 at 1:42 pm

    Your download link above is no longer working. I was looking forward to seeing your code for making an authorbox shortcode. I haven’t found any other resources for being able to do this.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

Copyright © 2025 � WP Smith on Genesis on Genesis Framework � WordPress � Log in