Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- Posts -->
- <?php
- if (have_posts()): ?>
- <?php
- query_posts( array( 'cat' => 1, 'posts_per_page' => 4) );
- while (have_posts()) : the_post(); ?>
- <!-- Begin entry -->
- <div id="blog-post">
- <!-- Post Thumbnail -->
- <div style="float:left; margin-right:20px;">
- <img src="<?php bloginfo('template_url');?>/images/blog-profile-img.jpg">
- </div>
- <!-- end Post Thumbnail -->
- <!-- Post content -->
- <div id="blog-content">
- <h5><a href="<?php the_permalink() ?>" rel="bookmark">
- <?php the_title(); ?></a></h5>
- <small><?php the_date(); ?> by <?php the_author(); ?></small>
- <div>
- <?php the_content(); ?>
- </div>
- <p> </p>
- </div>
- <!-- Post content -->
- </div>
- <!-- end entry -->
- <?php endwhile; ?>
- <?php endif; ?>
- <!-- end Posts -->
- <!-- Pagination -->
- <?php if (will_paginate()): ?>
- <table width="100%" border="0" cellspacing="3" cellpadding="3">
- <tr>
- <td align="left"><?php previous_posts_link('« Previous Entries') ?></td>
- <td align="right"><?php next_posts_link('Next Entries »','') ?></td>
- </tr>
- </table>
- <?php endif; ?>
- <!--end Pagination-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement