title: Combining php code with html doesnt work inside <li> tag
body: <p>my php code doesn't work inside a li tag. </p>
  
  <p>I tried several things but it doesn't work.</p>
  
  <pre><code>echo '&lt;li $page_title=="Cart" ? "class="nav-item active"" : ""&gt;';
  </code></pre>
  
  <p>I don't understand why it doesn't work, can someone help me with this code?</p>