title: wordpress is_front_page() is not working (static front page)
body: <p>I am using a WP - Alert plugin for a wordpress website. The issue is that it displays on all the pages even though it is set as display on home page only. (is_home). However, my home page is a static home page so I have set it to is_front_page and still it displays on all the pages. If you could just let me know if I am missing out anything??</p>
  
  <pre><code>function wp_alert_add_sticky_alert(){
  if(get_option('alert_show_on_site') == 'yes'){
      $display    = true;
      $homeOption = get_option('alert_show_on_home');
      $pageOption = get_option('alert_show_on_page');
      $postOption = get_option('alert_show_on_post');
  
      $getID = get_the_ID();
  
      if($homeOption == 'yes' &amp;&amp; is_home ()){
        $display =  true ;
      }elseif($pageOption == 'yes' &amp;&amp; is_page()){
        $display =  true ;
      }elseif($postOption == 'yes' &amp;&amp; is_single()){
        $display =  true ;
      }else{
        $display =  false ;
      }
      if($display){
  ?&gt;
  &lt;div class="sticky-box"&gt;
  &lt;div class="sticky-inner"&gt;&lt;?php echo stripslashes(get_option('wp_alert_message')); ?&gt;    
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;?php
    }
  }
  }
  ?&gt;
  </code></pre>
  
  <p>I added this line to the code above and still it won't display on the static home page only.
      } elseif($homeOption == 'yes' &amp;&amp; is_front_page()){
            $display = true ; }</p>
  
  <p>Thanks in advance guys :) </p>