Advertisement
salmancreation

Salman Latest Post Styled Different Than other Posts

Jan 14th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1.         <div class="fix feature">
  2.             <span class="fix catagoryHeading">ফিচার</span>
  3.            
  4. <?php if (have_posts()) : $counter = 1; while (have_posts()) : the_post(); if( $counter == 1 ) { ?>
  5.            
  6.            
  7.             <div class="fix featureImage">
  8.                 <?php the_post_thumbnail();?>
  9.             </div>
  10.             <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  11.             <div class="fix featureBody">
  12.                 <p>
  13.                     <?php the_excerpt(); ?>
  14.                     <span class="details"><a href="<?php the_permalink(); ?>">...বিস্তারিত</a></span>
  15.                 </p>
  16.             </div>
  17.             <?php } else { ?>
  18.             <ul class="catagory">
  19.                     <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  20.             </ul>
  21.             <?php }
  22.         $counter++;
  23.         endwhile;
  24.         endif;
  25.         ?>
  26.         </div><!--feature end-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement