Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="blogposts">
- <?php
- $catquery = new WP_Query( 'cat=1&posts_per_page=6&paged='.get_query_var('paged') );
- while($catquery->have_posts()) : $catquery->the_post();
- ?>
- <ul>
- <div id="post" style="max-width:400px;height:410px;border:solid thin red; float:left;margin: 70px 30px 35px;">
- <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>
- <?php the_post_thumbnail(array(350,250)); // Crop 300 by 200 px image?>
- <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>
- </div>
- </ul>
- <?php endwhile; ?>
- </div>
- <div class="clear"></div>
- <div class="navigation">
- <div class="alignleft"><?php previous_posts_link('« Previous Entries',$catquery->max_num_pages) ?></div>
- <div class="alignright"><?php next_posts_link('Next Entries »',$catquery->max_num_pages) ?></div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement