• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Genesis Author Box Shortcode

This shortcode enables you to add the Genesis author box within the content area of a post or page or anywhere else outside your wp editor.

Here’s a example where the shortcode is added to the WordPress editor showing the author box between 2 paragraphs of text inside a post.

author-box-shortcode

As you can see above, there’s some break tags and default CSS which you can over ride via your child themes style.css file to change the padding, background etc like this:

author-box

Here’s the code for members:

Register for full access

Related Code

  • Genesis Author Box Code

Author Box

Reader Interactions

Comments

  1. Aimee Devlin says

    April 24, 2017 at 7:08 pm

    Hey Brad!

    I’ve added this code to Gallery Pro, and it works great. I have one issue.

    I was unable to turn the author box off on single posts, and the theme author suggested I remove the following from the genesis_changes.php file:

    add_filter( ‘get_the_author_genesis_author_box_single’, ‘__return_true’ );

    This has removed the author box from the posts, but it has also rendered the shortcode useless. Are you able to assist with a tweak at all? Many thanks 🙂

    (I want the author box to appear before my end of post widgets, so that’s why I’d prefer to use the shortcode over the automatically added author box.)

    Log in to Reply
    • Brad Dalton says

      April 25, 2017 at 12:07 am

      Use this code to remove the author box

      remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
      Log in to Reply
      • Aimee Devlin says

        May 6, 2017 at 12:41 am

        Thank you 🙂 It worked nicely

        Log in to Reply
  2. udijw says

    May 20, 2016 at 5:47 am

    I did manage to enter an ID to the code, but the genesis function itself uses a global.
    When I overridden that global, all the boxes showed the same author (the first one)

    Log in to Reply
    • Brad Dalton says

      May 20, 2016 at 5:49 am

      Hi

      Do you want a archive of author boxes?

      OR

      A list of authors like this http://wpsites.net/web-design/author-contributors-page-template/

      Log in to Reply
      • udijw says

        May 20, 2016 at 6:01 am

        Yes, but only for some of the authors

        Log in to Reply
        • Brad Dalton says

          May 20, 2016 at 6:12 am

          You can use the include parameter with a list of user i.d’s for get_user

          Example:=

          'include'  => array('1','2','3'),
          Log in to Reply
  3. udijw says

    May 20, 2016 at 5:45 am

    Heya, quite cool
    This will only allow for an author box of the actual writer. is there a way to add multiple boxes for several writers?

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.