• 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

Display Author Box conditionally using ACF CheckBox Custom Field

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 › Display Author Box conditionally using ACF CheckBox Custom Field

This topic is: not resolved

Tagged: ACF

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 2 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 10, 2016 at 7:09 pm #181180
    rogger
    Member

    Hi, I am trying to setup author box on single pages. What i want to achieve is that the author box will be displayed on only those pages where i manually tick the custom field checkbox generated by ACF Plugin.

    I tried with this code. Not Working
    Any Ideas

    //* Add the author box on single posts
    function display_authorbox() {
                if (get_field('display_author') == 'Yes') {
    add_filter( 'get_the_author_genesis_author_box_single', '__return_true' );
    }
    }
    March 10, 2016 at 7:18 pm #181181
    carasmo
    Participant

    Checkboxes are tricky. Check the ACF forums for this type of stuff and also Google:

    http://stackoverflow.com/questions/29565008/advanced-custom-fields-checkbox-display-value
    http://stackoverflow.com/questions/14399566/advanced-custom-fields-checkbox


    Genesis Theme Customization and Help

    March 11, 2016 at 3:18 pm #181231
    Brad Dalton
    Participant

    Only when a custom field is used?


    Tutorials for StudioPress Themes.

    April 27, 2016 at 12:46 pm #184549
    rogger
    Member

    Hi Brad, I want that only on the posts where i tick the custom field Author Box, it will show up. Otherwise...It gets hidden. Thanks

    April 27, 2016 at 2:50 pm #184557
    Brad Dalton
    Participant

    You'll need custom code for that as it involves a 3rd party plugin.


    Tutorials for StudioPress Themes.

    April 27, 2016 at 3:55 pm #184561
    Brad Dalton
    Participant

    Here's 2 solutions i spent a couple of hours working out and testing.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

© 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