Posted By

robnilas on 01/21/17


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

NicolausX


3 New Post - code


 / Published in: PHP
 

  1. <h2 class="blogtitle">Doren Aldana's Blog</h2>
  2. <?php query_posts('showposts=3'); ?>
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  5. <h2 class="title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  6. <div class="entry">
  7. <?php the_content(); ?>
  8. <p><a href="<?php echo the_permalink(); ?>">Continue Reading &raquo;</a></p>
  9. </div>
  10. <div class="postmeta">
  11. <p style="font-weight: bold;">
  12. <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
  13. </p>
  14. </div>
  15. </div>
  16. <?php endwhile; ?>
  17. <?php else : ?>
  18. <h2>Not Found</h2>
  19. <?php endif; ?>

Report this snippet  

You need to login to post a comment.