Advertisement
Guest User

Untitled

a guest
Nov 28th, 2012
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. <div id="blogposts">
  2.  
  3.     <?php
  4.         global $paged;
  5.         $catquery = new WP_Query( 'cat=1&posts_per_page=6&paged=' . $paged );
  6.         while($catquery->have_posts()) : $catquery->the_post();
  7.     ?>
  8.         <ul>
  9.             <div id="post" style="max-width:400px;height:410px;border:solid thin red;   float:left;margin: 70px 30px 35px;">
  10.             <p style="font-weight: bolder;"><?php the_time(get_option('date_format')); ?></p><h3 style="max-width: 100%; max-height: 12%; overflow: hidden;" ><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
  11.             <?php the_post_thumbnail(array(350,250)); // Crop 300 by 200 px image?>
  12.             <div id="para" style="width=350 height=233"><p style="margin: 4px 15px 9px 17px; max-width: 90%; max-height: 64px; overflow: hidden;"><?php the_excerpt(); ?><?php do_action( 'addthis_widget' ); ?></p>
  13.            
  14.            
  15.             </div>
  16.         </ul>
  17.         <?php endwhile; ?>
  18.    
  19. </div>
  20. <?php global $paged; query_posts('paged='.$paged);?>
  21. <div class="clear"></div>  
  22. <div class="navigation"><p><?php posts_nav_link(); ?></p></div>    
  23.        
  24. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement