Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Bola-->
- <div class="ks_category_left">
- <h1 class="ks_h1_title_item1">Bola</h1>
- <?php $recent = new WP_Query("cat=4&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
- <?php if( $recent->current_post == 0 ) : //the first post with image, title, and excerpt// ?>
- <div class="ks_posts_item1">
- <div class="ks_postimage">
- <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
- <?php get_the_image( array( 'size' => 'thumbnail', 'default_image' => 'http://kabarsore.com/noimages.jpg') ); ?>
- </a>
- </div>
- <div class="ks_title_desc">
- <div class="ks_postinfo">
- <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
- <h4><?php $tit = the_title('','',FALSE); echo substr($tit, 0, 60); if (strlen($tit) > 60) echo " ..."; ?></h4>
- </a>
- </div>
- <div class="ks_desc">
- <?php echo get_excerpt(145); ?>
- </div>
- </div>
- </div>
- <?php else : //three further posts in listform//
- if( $recent->current_post == 1 ) echo '<ul class="ks_postlist">'; ?>
- <li>
- <div class="ks_postinfo">
- <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
- <h4><?php $tit = the_title('','',FALSE); echo substr($tit, 0, 60); if (strlen($tit) > 60) echo " ..."; ?></h4>
- </a>
- </div>
- </li>
- <?php if( $recent->current_post == $recent->count_posts ) echo '</ul>';
- endif; ?>
- <?php endwhile; ?>
- </div>
- <!--end Bola-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement