Title: Binary Values Checkbox?
Last modified: May 13, 2021

---

# Binary Values Checkbox?

 *  Resolved [adeparker](https://wordpress.org/support/users/adeparker/)
 * (@adeparker)
 * [5 years ago](https://wordpress.org/support/topic/binary-values-checkbox/)
 * Morning,
 * Me again!
 * I have a custom field which is a simple checkbox, and therefore stored as a 0
   or 1 in the database. Is there a way to show this on an element as Yes or No,
   True/False, etc. rather than the raw data? I know that it is possible to change
   the data type from text to number to HTML, etc. but can’t find one which appears
   to be relevant.
 * Thanks for all the assistance on everything so far.
 * Ade

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [5 years ago](https://wordpress.org/support/topic/binary-values-checkbox/#post-14434032)
 * Hey Ade!
 * So its not an option within the UI, but with a bit of coding, you would be able
   to do this.
 * How are you with WP hooks?
 * I would use this filter here – `custom-layouts/element/render_output`:
    [https://customlayouts.com/documentation/action-filter-reference/#elements-render_output](https://customlayouts.com/documentation/action-filter-reference/#elements-render_output)
 * And modify the output, by replacing `>1<` with `>Yes<` using the php function`
   str_replace` – [https://www.php.net/manual/en/function.str-replace.php](https://www.php.net/manual/en/function.str-replace.php)
 * Best
    -  This reply was modified 5 years ago by [Code Amp](https://wordpress.org/support/users/codeamp/).
    -  This reply was modified 5 years ago by [Code Amp](https://wordpress.org/support/users/codeamp/).
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [5 years ago](https://wordpress.org/support/topic/binary-values-checkbox/#post-14468310)
 * Hey Ade, I hope you go on ok, I’m resolving this for now – but feel free to re-
   open and let me know how you got on.
 * Best

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Binary Values Checkbox?’ is closed to new replies.

 * ![](https://ps.w.org/custom-layouts/assets/icon-256x256.png?rev=2475457)
 * [Custom Layouts - Post + Product grids made easy](https://wordpress.org/plugins/custom-layouts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-layouts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-layouts/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-layouts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-layouts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-layouts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Code Amp](https://wordpress.org/support/users/codeamp/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/binary-values-checkbox/#post-14468310)
 * Status: resolved