Title: True / False doesn&#8217;t appear
Last modified: November 9, 2019

---

# True / False doesn’t appear

 *  Resolved [kiiritolink](https://wordpress.org/support/users/kiiritolink/)
 * (@kiiritolink)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/true-false-doesnt-appear/)
 * Hello,
 * I’m starting to build my website. I use ACF to help me on my task, all works 
   good. I enjoy to use this plugin, but I have a question for a field. I use true/
   false on my page for a field and the php code generate by this plugin doesn’t
   appear on my website.
 * I don’t understand why, I activate my field and read this code:
 *     ```
       div>
                   <?php echo "<strong>Traduction française:</strong>"; if ( get_field( 'traduction_francaise' ) == 1 ) { 
                    // echo 'true'; 
                   } else { 
                   // echo 'false'; 
                   }  ?> 
               </div>
       ```
   
 * whatever I choose, nothing appear on my website, if true it must appear “oui”
   and false “non”. But I have nothing. Why?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftrue-false-doesnt-appear%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [thegonzobeat](https://wordpress.org/support/users/thegonzobeat/)
 * (@thegonzobeat)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/true-false-doesnt-appear/#post-12179196)
 * (duplicate comment removed)
 *  Plugin Contributor [Ben Pearson](https://wordpress.org/support/users/benpearson/)
 * (@benpearson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/true-false-doesnt-appear/#post-12179205)
 * Hi [@kiiritolink](https://wordpress.org/support/users/kiiritolink/) .
 * Thanks for your feedback! My apologies for the delayed response.
 * `// echo 'true';` and `// echo 'false';` are placeholders for what you want to
   happen when the conditional is true or false.
 * If you are not familiar with PHP I suggest you start by taking a look at the 
   documentation for these PHP fundamentals that are used in the code you posted.
 * * [https://www.w3schools.com/php/php_if_else.asp](https://www.w3schools.com/php/php_if_else.asp)
   *
   [https://www.w3schools.com/php/func_string_echo.asp](https://www.w3schools.com/php/func_string_echo.asp)*
   [https://www.w3schools.com/php/php_comments.asp](https://www.w3schools.com/php/php_comments.asp)
 * Please note that the ACF Theme Code plugin is a developer tool and not a substitute
   for PHP development knowledge.
 * Kind regards and all the best.

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

The topic ‘True / False doesn’t appear’ is closed to new replies.

 * ![](https://ps.w.org/acf-theme-code/assets/icon-256x256.png?rev=1458037)
 * [ACF Theme Code for Advanced Custom Fields](https://wordpress.org/plugins/acf-theme-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-theme-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-theme-code/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-theme-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-theme-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-theme-code/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ben Pearson](https://wordpress.org/support/users/benpearson/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/true-false-doesnt-appear/#post-12179205)
 * Status: resolved