title: Wordpress - Display text if checkbox output matches the page title
body: <p>I want to show the projects that has had it's checkbox ticked as Branding, if it's on the Branding page (i.e the page title is Branding).</p>
  
  <p>To explain the code a bit:</p>
  
  <p>This line show's all the checkboxes that have been ticked for each project so it will output "Branding", "Web", "Print" if they have been ticked.</p>
  
  <pre><code>implode(', ',get_field('categories')
  </code></pre>
  
  <p>This next line is just checking the page title is "Branding":</p>
  
  <pre><code>implode(', ',get_field('categories')
  </code></pre>
  
  <p>I'm trying to put these both in an if statement where it would just output the checked boxes and if they match the title then output them.</p>
  
  <pre><code>&lt;?php if(implode(', ',get_field('categories')) &amp;&amp; $grid_title == "Branding"); {
  echo "testing"; 
  }
  ?&gt;
  </code></pre>
  
  <p>The code above shows what I want to do but it doesn't quite work.</p>
  
  <p><strong>IMPORTANT: I'm using <a href="http://plugins.elliotcondon.com/advanced-custom-fields/" rel="nofollow">this plugin</a> to create the custom checkboxes so please bear that in mind.</strong></p>
  
  <p>=============================</p>
  
  <p><strong>UPDATE:</strong>
  Thanks very much to Adam Kiss for solving what I asked, small update to question:</p>
  
  <p>How could I code this neatly - using your answer, Branding was just one example of the check boxes, there's also several other one's like Web, Print, Social so how could I match those to the page title as well?</p>
  
  <p>So it will be along the lines of if checked field equals the page title "branding" do <strong>OR</strong> checked field equals page title "web" <strong>OR</strong> checked field equals page title "print".</p>