• 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

Show or Hide Author Box conditionally (based on post author)

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 › Show or Hide Author Box conditionally (based on post author)

This topic is: resolved

Tagged: author box

  • This topic has 5 replies, 3 voices, and was last updated 9 years, 11 months ago by myersbr2.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 16, 2016 at 9:14 am #179140
    myersbr2
    Member

    We have a blog, http://www.humoroushomemaking.com, that I built by heavily customizing the Lifestyle theme. We periodically allow guest contributors. In all cases EXCEPT where we have a guest contributor, I want the author box on the bottom of the post. This is no problem. However, when we have a guest contributor, I don't add them as an official author but instead assign them to a user account we set up called "guest contributor". In these cases, I don't want the author box to show at the bottom of the post (or at all, for that matter). Is there a conditional statement I can build that will hide the author box when the author is "guest contributor"? An example post by a guest contributor can be found here: http://www.humoroushomemaking.com/we-make-too-much-money-to-be-broke-a-debt-free-story

    http://www.humoroushomemaking.com
    February 16, 2016 at 9:55 am #179142
    Sandee
    Participant

    Hi,

    If you visit each user profile page on a Genesis site and scroll to the bottom, you'll see the ability to enable (or disable) the author box on the posts and / or author archive page on a per author basis.

    Screen Shot of User Profile Page

    Hope this helps.

    Sandee

    February 16, 2016 at 10:00 am #179143
    myersbr2
    Member

    That's such a SIMPLE solution...and it works! Thank you Sandee!

    February 16, 2016 at 10:45 am #179149
    myersbr2
    Member

    Okay, scratch that - it doesn't work...when I uncheck the box in the user profile and hit Update User, it re-checks it. Hmmm... It does the same thing for any user I try to make that change. Other boxes can be checked/unchecked.

    February 17, 2016 at 1:28 am #179215
    Brad Dalton
    Participant

    This current_user_can


    Tutorials for StudioPress Themes.

    February 18, 2016 at 7:27 am #179304
    myersbr2
    Member

    I was able to get it figured out. Thanks to all who helped. Here's what I found. In my functions.php, I had:

    //* Display author box on single posts
    add_filter( 'get_the_author_genesis_author_box_single', '__return_true' );

    This was keeping me from unchecking the box in the Users section of the wp-admin. I initially used Brad's statement to try and edit the rights, but quickly realized I could just remove the above statement entirely and the Users section Sandee mentioned would become editable again. Simple fix, just took me a while to get there...

    Thanks to all!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Show or Hide Author Box conditionally (based on post author)’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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