Title: Help needed with row setup.
Last modified: August 20, 2016

---

# Help needed with row setup.

 *  [mfux](https://wordpress.org/support/users/mfux/)
 * (@mfux)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/help-needed-with-row-setup/)
 * Pastebin(PHP): [http://pastebin.com/3qtezJjU](http://pastebin.com/3qtezJjU)
    
   Pastebin(CSS): [http://pastebin.com/nn2TGeFL](http://pastebin.com/nn2TGeFL)
 * What I am trying to do is set up a row that handles posts, at the moment it is
   fine if there are only 2 posts, however, as soon as more are added then there
   is one post at the top, then a row with 2, then a 3rd row with just one post 
   also.
 * I want the code to make a new row once two posts have been put in to a row, then
   carry on in this manner while there are still posts.
 * Thanks for any help!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [mfux](https://wordpress.org/support/users/mfux/)
 * (@mfux)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/help-needed-with-row-setup/#post-2260735)
 * Never mind, sorted it. Forgot that counters start at 0 thus my theme was putting
   3 items in per row. Changed the 2 to a 1 in $post ==$posts[2] and all is fine.
 *  Thread Starter [mfux](https://wordpress.org/support/users/mfux/)
 * (@mfux)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/help-needed-with-row-setup/#post-2260738)
 * Edit: It is not fixed, it is fine if I only display 4 posts on the index page
   however, 6+ and I get a set up of (row 1 first, number of posts); 2,1,1,2.
 *  Thread Starter [mfux](https://wordpress.org/support/users/mfux/)
 * (@mfux)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/help-needed-with-row-setup/#post-2261000)
 * Any help?
 * _[continue here: [http://wordpress.org/support/topic/may-be-advanced-need-help-with-rows-of-posts?replies=2](http://wordpress.org/support/topic/may-be-advanced-need-help-with-rows-of-posts?replies=2)–
   this topic is closed]_

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help needed with row setup.’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [rows](https://wordpress.org/support/topic-tag/rows/)

 * 3 replies
 * 1 participant
 * Last reply from: [mfux](https://wordpress.org/support/users/mfux/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/help-needed-with-row-setup/#post-2261000)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
