• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Author Box on Pages above Comments

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Author Box on Pages above Comments

This topic is: not resolved

Tagged: author box, page

  • This topic has 2 replies, 2 voices, and was last updated 12 years ago by Dan B.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 17, 2013 at 7:45 am #12603
    Mane60
    Member

    I raised this question with support, and Jennifer answered me very quickly to solve it. She also suggested it would be a good topic for the forum, so here it is:

    I was trying to get the Author Box to show on pages as well as posts.

    I added the following to functions.php so that pages could show an authorbox.

    /** Add Genesis Author Box on Single Pages**/
    add_action('genesis_after_post', 'genesis_do_author_box_page');
    function genesis_do_author_box_page() {
    $page_exclusions = array('about-me','Contact'); //edit these pages, can take slugs, page names, or page/post ID
    if ( ( !is_page() ) || is_page($page_exclusions) )
    return;
    if ( get_the_author_meta( 'genesis_author_box_single', get_the_author_meta('ID') ) ) {
    genesis_author_box( 'single' );
    }
    }
    I found the method here:

    http://wpsmith.net/2011/genesis/add-the-genesis-author-box-to-pages/

    Unfortunately, the authorbox showed up below comments on pages, which wasn't ideal.

    To get it above the comments, you can use a priority to try to move it where you want. In this case, 5 is the priority number. So we edit just one line of the above code to add the priority:

    add_action('genesis_after_post', 'genesis_do_author_box_page', 5);

    I hope this helps someone out there. 🙂

    January 17, 2013 at 7:46 am #12605
    Mane60
    Member

    Oh, you can see the result here:

    http://www.moneyhow.co.uk/what-are-my-pension-fund-choices-when-i-retire/

    June 24, 2013 at 3:12 am #47431
    Dan B
    Participant

    Thanks Mane60. Just a note for all future forum searchers:

    1) Be sure you have globally enabled the Author Box in your theme (if it's not already so), otherwise the instructions above have no effect.

    2) Ensure you have copied the code in the proper format. I copied, originally, from the post above and had formatting errors (with all the 's turning into ’s). You can prevent this by getting the code directly from http://wpsmith.net/2011/genesis/add-the-genesis-author-box-to-pages/


    Dan @ ZindaMedia
    Marketing, Fundraising and Social Media strategies for non-profits.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble