title: PHP Cookie for 1 day
body: <p>On my wordpress blog i want to show a popup on posts. I installed a plugin but it shows the popup for every time. I tried to change the code but didnt work. I dont know php well. Can you help me? I want to show popup only once per day.</p>
  
  <pre><code>if ( $timer &amp;&amp; !empty( $show_timer ) &amp;&amp; $show_timer == 'yes' &amp;&amp; !isset($_COOKIE['html_ad']))
  
                  $html_ad .= '&lt;div id="popups-bar" ' . $style_bar . '&gt;
  
                                      &lt;div id="popups-tit" class="popups"&gt;' . $this-&gt;get_interad( $ad_id, 'title' ) . '&lt;/div&gt;
  
                                      &lt;div id="popups-close"&gt;
  
                                                &lt;div id="inter-mess" ' . $bor_style . '&gt;
  
                                                      &lt;span&gt; ' . $tra_wait . ' &lt;/span&gt;
  
                                                      &lt;span data-seconds="' . $countdown . '" class="popups-kkcount-down"&gt;&lt;/span&gt;
  
                                                      &lt;span&gt; ' . $tra_until . ' &lt;/span&gt;
  
                                                &lt;/div&gt;    
  
                                      &lt;/div&gt;
  
                              &lt;/div&gt;';
  
  
  
  
  
              $html_ad .= '&lt;div id="popups-cnt" ' . $style_cont . '&gt;
  
                                  ' . $this-&gt;get_interad( $ad_id ) . '
  
                           &lt;/div&gt;
  
  
  
                &lt;/div&gt;&lt;!-- Popup Plugin--&gt;' . "\n";
              setcookie('html_ad', true,  time()+86400);
  </code></pre>