Advertisement
Guest User

blog titles not matching posts

a guest
Jun 8th, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <div id="colLeft">
  2. <!--<h1><?php the_title(); ?></h1> -->
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4.  
  5. <?php the_content(__('(more...)')); ?>
  6.  
  7. <?php endwhile; else: ?>
  8. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  9. <?php endif; ?>
  10.  
  11. <div class="blog-wrap">
  12. <p style="font-size:14px;">Laatste Nieuws</p>
  13. <!--<h1><?php the_title(); ?></h1> -->
  14. <?php //rewind_posts(); ?>
  15. <?php query_posts(array ( 'category_name' => 'ame', 'posts_per_page' => 3 )); ?>
  16. <?php if (have_posts()) {
  17. while (have_posts()) {
  18. ?>
  19. <div class="blog-message">
  20. <p style="font-size:14px;"><b><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></b></p>
  21. <div style="float: left; padding-right: 10px; padding-bottom: 10px;"><?php print the_post_thumbnail(); ?></div>
  22. <?php
  23.  
  24. the_post();
  25. the_excerpt();
  26. //get_template_part( 'content', get_post_format() );
  27. //the_content(__('(more...)'));
  28. ?>
  29.  
  30. <p><a href="<?php the_permalink(); ?>">lees meer >> </a></p>
  31. <div class="clear"></div>
  32. </div>
  33. <?php
  34.  
  35. }
  36. } else {
  37. ?>
  38. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  39. <?php } ?>
  40. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement