title: PHP Conditional with Multiple Parameters
body: <p>I am using in a wordpress theme, the <strong>Redux Framework</strong>, to manage the general options, and the <strong>ACF</strong> for additional options in the posts.</p>
  
  <p>Both in the options panel and in the post fields, you have the option
  to disable and enable the name of the <strong>author</strong> of the post.</p>
  
  <p>These are the variables and their values, which I call to show or not the name of the <strong>author</strong></p>
  
  <p><strong>On the panel:</strong>
  <code>$opt_panel_author</code> <strong>values:</strong> true / false</p>
  
  <p><strong>On custom fields</strong>
  <code>$opt_field_author</code> <strong>values:</strong> inherit / yes / no</p>
  
  <p><strong>Calling on the theme like this:</strong></p>
  
  <pre><code>&lt;?php if ($opt_panel_author == true &amp;&amp; $opt_field_author) { ?&gt;
      &lt;span class = "post-meta-author"&gt; By: John Doe &lt;/ span&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>It works to some extent.</p>
  
  <p>What I need now is:</p>
  
  <p><strong>1st</strong> - When the option in <strong>Panel</strong> is <code>true</code> and that of <strong>Custom Field</strong> is<code>inherit</code> <strong>show</strong> the author's name.</p>
  
  <p><strong>2nd</strong> - When the <strong>panel</strong> option is <code>false</code> and the <strong>Custom Field</strong> is<code>yes</code> show the author's name.</p>
  
  <p><strong>3rd</strong> - When the <strong>panel</strong> option is <code>true</code> and <strong>Custom Field</strong> is<code>no</code> <strong>do not show</strong> the author's name.</p>
  
  <p><strong>4rd</strong> - When the Options Panel and Custom Fields are disabled. Show the name of the author.</p>