Grid layout with Wordpress?
Grid layout with Wordpress?
Out of context: Reply #2
- Started
- Last post
- 8 Responses
- spraycan0
you need to float the posts in the index.php file then create a separator wich will be echoed every 3 posts(if you want 3 post per row)
before the loop(this is for a 2 posts per row):
<?php $count=0 ; ?>in the loop:
<?php $count++;if ($count==2){echo "<div id='separator'></div>";} ?><?php if ($count==4){echo "<div id='separator'></div>";} ?>
<?php if ($count==6){echo "<div id='separator'></div>";} ?>
there are many ways for doing this.