Quote:
Originally Posted by Tiago
How can i get 3 posts next to each other instead of 1 post in one column?
Which page do I have to edit and which part of the css?
|
The grid part is pretty easy with MZ. You'd edit whatever main template you were using. Here is a
basic post and a
more advanced one on grid layouts.
To make the posts layout into the grids will probably require some advanced php. You may want to see the last post in
this thread.
You'd probably first sort your posts in reverse chrono. Assuming you'd want your posts to lay out 1, 2, 3 across the first row, then 4, 5, 6 below that, you'd use a "for" loop, starting with the latest thread, and increment your counter by 3, so your first column would have posts 1, 4, 7 .... In the second column, you'd start one higher, so you'd have posts 2, 5, 8 ..., and one higher for the third, ending with 3, 6, 9 ....
P.S. Remember, PHP starts counting array items at 0, so you'd really have 0, 3, 6 ... in the first column, etc.