is_home , is_front_page not working

i tried many conditions to my footer.php section to include this function in my front page only and not on blog page…but it just pops up on both pages or none of them…can anyone explain the fault ?

 <?php if( is_home() && is_front_page()   ) : ?>
  <div id="blurbs">
    <ul>
  <?php $the_query = new WP_Query( 'showposts=3' ); ?>

   <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
   <div class="postwrapper">
   <?php the_post_thumbnail(); ?>   <li style="display:inline; font-size: 20px; font-weight:light;"><?php the_title(); ?></li>
<br class="clear">
  <li style=" font-size: 14px; font-weight:light;"><?php the_content(); ?></li>
 </div>
 <?php endwhile;?>
 </ul>
 </div>
 <?php endif; ?>

4 s
4

 <?php if( is_front_page() ) : ?>

is_home relates to the posts page according to your reading settings. is_front_page always returns true on the front page.

Leave a Comment