Title: Split the posts into 2 rows
Last modified: January 26, 2021

---

# Split the posts into 2 rows

 *  Resolved [yaelhagag](https://wordpress.org/support/users/yaelhagag/)
 * (@yaelhagag)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/)
 * Hi,
    I defined that 8 posts will be viewed in the related posts area. How can
   i split these into 2 rows? 4 post in every row.
 * Thanks in advance.

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13960998)
 * You’ll need to write custom CSS for this – If you’re using one of the grid styles
   in the settings page, you could try adding this under custom styles
 *     ```
       .crp_related ul {
       grid-template-columns: repeat(4, minmax(150px, 1fr));
       }
       ```
   
 * Replace 150 by the width of the thumbnail you’ve set.
 *  Thread Starter [yaelhagag](https://wordpress.org/support/users/yaelhagag/)
 * (@yaelhagag)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13961502)
 * Thank you Ajay,
    unfortunately it is now working for me, I don’t know why. You
   can see a screen shot of [here](https://ibb.co/9Zkn35K)
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13964229)
 * What’s your site URL?
 * And to confirm are you using the Thumbgrids style?
 *  Thread Starter [yaelhagag](https://wordpress.org/support/users/yaelhagag/)
 * (@yaelhagag)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13964439)
 * This is the URL: [https://www.travelitaly.co.il/](https://www.travelitaly.co.il/)
   
   And YES, I am using “Rounded thumbnails”
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13964472)
 * This would only work with Rounded Thumbnails Grid or Grid style – not the original
   rounded thumbnails because Rounded Thumbnails uses the float.
 * However, I just checked a few posts and I see a 4×2 grid.
 *  Thread Starter [yaelhagag](https://wordpress.org/support/users/yaelhagag/)
 * (@yaelhagag)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13964504)
 * I just changed it to grid and it is good now.
    Thanks a lot!
 *  Thread Starter [yaelhagag](https://wordpress.org/support/users/yaelhagag/)
 * (@yaelhagag)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13964524)
 * One last think – do you know what should I add to the CSS code in order for the
   settings to affect the desktop view only? (not mobile)
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13964773)
 * Depending on how you’re seeing the mobile view.
 * The CSS grid style lets it lay out the number the posts automatically based on
   the width of the container. Another alternative is to use flexbox – the code 
   here came from another user that I tweak for responsiveness. This works with 
   Rounded Thumbnails with the custom code laid over it.
 * [https://gist.github.com/ajaydsouza/462b41930c325e6bc345#file-crp-flexbox-css](https://gist.github.com/ajaydsouza/462b41930c325e6bc345#file-crp-flexbox-css)
 *  Thread Starter [yaelhagag](https://wordpress.org/support/users/yaelhagag/)
 * (@yaelhagag)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13969520)
 * Thanks againfor your help!
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13970751)
 * You’re welcome

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

The topic ‘Split the posts into 2 rows’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

## Tags

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

 * 10 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/split-the-posts-into-2-rows/#post-13970751)
 * Status: resolved