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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

ACF Add True False Checkbox To Remove Author Name

This solution enables you to remove the author from any post on a per post basis using a checkbox added using ACF.

This tutorial has been written in response to this question from a registered member :

Do you have a tutorial on how to remove the author’s name from a post using the ACF PRO plugin? I would like the ability for the site owner to be able to click on or off is they want to show an author name on a post.

Note : This solution requires the use of ACF or ACF Pro however will work with WordPress custom fields.

Code Works Without ACF

The code works even when ACF is inactive. Use a value of 0 for false and 1 for true to show or remove the author from the post info in the entry header like this :

Register or login to access the code :

Register for full access

Custom Fields

Reader Interactions

Comments

  1. fotod0g13 says

    July 6, 2018 at 5:16 am

    Thanks for posting this Brad- worked perfectly with the ACF using T/F box

    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.