Advertisement
kevinritt

loop

Mar 12th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <?php if (have_posts()) : ?>
  2.  
  3. <?php while (have_posts()) : the_post(); ?>
  4.  
  5. <?php $options = get_option('responsive_theme_options'); ?>
  6. <?php if ($options['breadcrumb'] == 0): ?>
  7. <?php echo responsive_breadcrumb_lists(); ?>
  8. <?php endif; ?>
  9.  
  10. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <h1 class="post-title"><?php the_title(); ?></h1>
  12. <div id="widgets">
  13. <h2>B's recommended articles</h2>
  14. <ul>
  15. <?php $posts = get_posts('category=124&numberposts=5'); foreach($posts as $post) { ?>
  16. <li><a href="<?php the_permalink() ?>" target="_parent"><?php the_title(); ?></a></li>
  17. <?php } ?>
  18. </ul>
  19. </div>
  20. <div class="post-entry">
  21. <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  22. <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  23. </div><!-- end of .post-entry -->
  24.  
  25. <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>
  26. </div><!-- end of #post-<?php the_ID(); ?> -->
  27.  
  28. <!-- comments template removed -->
  29.  
  30. <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement