Advertisement
viktormorales

WordPress: posts en dos columnas (2da versión).

Oct 3rd, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php if (have_posts()) { ?>
  2.     <div id="posts-parent" style="width: 600px;">
  3.         <?php while (have_posts()) { the_post(); ?>
  4.             <div class="single-post" style="width: 200px; height: 200px; border: 1px solid #ccc; overflow: hidden; float: left; margin: 0 50px 10px 0; padding: 4px;">
  5.                 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  6.                 <?php the_excerpt(); ?>
  7.             </div>
  8.         <?php } ?>
  9.     </div>
  10.     <div style="clear: both"></div>
  11. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement