Change <td> background color based on value : <p>I was trying this one but doesn't seem to work for me. I took reference from <a href="https://wordpress.stackexchange.com/questions/211245/change-colour-of-table-td-based-on-value">here</a>. And below is my code:</p>

<pre><code>$today = date('Y-m-d');
$date = new DateTime();

$R1D2 = $date-&gt;setISODate($year,$week,1)-&gt;format('Y-m-d');

&lt;td width="14.285%" &lt;?php if ($R1D2 = $today): ?&gt; style="background:#EEEEEE" &lt;?php endif ?&gt;&gt;some content here &lt;/td&gt;
</code></pre>

<p>The result is, all the cells changes its background even if it's not equal with <code>$today</code></p>
