/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php query_posts('cat=3&showposts=10'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="blog-entry"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1> <div class="post_content"> <?php the_content(__('Read more…')); ?> </div> <!– close post content –> <div class="post-end-content"> Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit','',''); ?> </div> </div> <?php endwhile; else: ?> Sorry, but you are looking for something that isn‘t here. <?php endif; ?> </div>