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 :


Comments

One response to “ACF Add True False Checkbox To Remove Author Name”

  1. fotod0g13 Avatar
    fotod0g13

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

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.