Title: Post loop on page
Last modified: August 30, 2016

---

# Post loop on page

 *  Resolved [wayoflinux](https://wordpress.org/support/users/wayoflinux/)
 * (@wayoflinux)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/)
 * Hello,
 * I have a question about making a post loop appear two column, like on the blog
   page. It shows nicely side-by-side, on smaller screens it’s single column. Which
   is cool.
 * I would like to add a restricted post loop to one of my pages. I am using the“
   Post loop” widget for this, set up the query, but regardless of what template
   I choose (content.php. content-standard.pxp or content-featured.php), it always
   appears single column. I1d like to see two columns there as well.
 * What am I missing?
 * Forgot to mention, I am trying to add the widget to the page body with SiteOrogin
   PageBuilder if that helps.
 * (I’m new to the forums, not sure how to search for an answer, so if this is a
   duplicate, please kindly direct me to the answer)
 * Thanks!

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

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/#post-6450811)
 * Hi wayoflinux. Welcome to the Hueman formu. I’m not familiar with the SiteOrigin
   PageBuilder or the Post Loop widget. I checked the SiteOrigin support page, and
   see some threads in the forum, but didn’t find any documentation. If you can 
   provide a link to some, or explain how the widget works, that would help. And
   a link to your site would also be helpful. When you say “it always appears single
   column”, is that in the same layout as the Standard Blog layout in the theme?
 *  Thread Starter [wayoflinux](https://wordpress.org/support/users/wayoflinux/)
 * (@wayoflinux)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/#post-6450917)
 * Hi,
 * Sorry, I though the URL would be visible.
 * So I created a page to show what i mean.
 * This is he expected result, the standard Blog page on my site. The featured item
   is large at the top and below the rest are organised in two columns, as usual:
 * [http://wayoflinux.com/the-tao-of-linux-blog/](http://wayoflinux.com/the-tao-of-linux-blog/)
 * Next you see a normal page, where widgets have been added. First the AlxPosts
   widget from the theme itself, after that the Post Loop widget (I think it1s from
   Jetpack).
 * Both of these show the post loop basically full-width, no columns, whatever i
   do.
 * [http://wayoflinux.com/blogrolltest/](http://wayoflinux.com/blogrolltest/)
 * I poked around the little. So contents.php does not concern the layout of columns,
   it only has the article bit. obviously the specific layout gets added somewhere
   else, and the widgets will not get that.
 * the solution seems easy, make a page template, which is just like that of the
   blog itself, and create a page with that template. I guess (although I don’t 
   know how exactly that would work with the PageBuilder, so it might be difficult).
   
   Problem is, I have not got enough experience with either WordPress or PHP for
   this…
 * Any help would be appreciated!
 * Thanks (and sorry about the delayed reply)!
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/#post-6450922)
 * On your blog page the post display is controlled in index.php, based on the state
   of the Theme Options > Blog > Standard Blog List option. The widgets use their
   own loop and display posts in a single column, presumably because they’d normally
   be used in a sidebar. So, for alx-posts, you could copy that file to a child 
   theme and change the html to display two columns. But that’s pretty messy. And
   you’d need to do the same thing with the PostLoop code, wherever that is. So,
   a much easier alternative is to style them using css. Try this and see how it
   works:
 *     ```
       /* display content area widget posts in two columns */
       .entry .alx-posts li,
       .entry .widget_siteorigin-panels-postloop article  {
         width: 48%;
         float: left;
         margin: 20px 5px;
       }
       ```
   
 * Not sure how that will play out in responsive mode. You might have to tweak the
   width and margins, or create a media query.
 *  Thread Starter [wayoflinux](https://wordpress.org/support/users/wayoflinux/)
 * (@wayoflinux)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/#post-6450929)
 * Excellent advice thank you!
 * I think the media queries are already set up in responsive.css which comes with
   the theme, so further tweaking would be straight-forward enough.
 * Thanks for that, I will do it as soon as I see a PC,from closer than 5 yards.
   Will let you know how it went.:)
 *  Thread Starter [wayoflinux](https://wordpress.org/support/users/wayoflinux/)
 * (@wayoflinux)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/#post-6450954)
 * Hello,
 * So it is working. 🙂
    It also needed the `.post` class to be marked, and I added
   a media query so on small screens the original scaling would happen.
 * Here’s my final solution:
 *     ```
       /* display content area widget posts in two columns, on large screens only */
   
       @media only screen and (min-width: 719px) {
       #panel-85-1-0-2 .widget_siteorigin-panels-postloop article .post,
       .entry #panel-85-1-0-2 .alx-posts li
       {
         width: 50%;
         float: left;
         margin-bottom: 20px;
       }
       }
       ```
   
 * The `#panel-85-1-0-2` id is there as i wanted this to happen only in that specific
   place. The solution was so simple, I would not have even thought of it. 😀
 * (On a side-note, for anyone who cares, I could not yet make this happen using
   the same logic on the Post Loop widget, whatever I tried, so it remains a theme-,
   and widget-specific solution for now.)
 * Thanks again, you were of great help! Marking as resolved.

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

The topic ‘Post loop on page’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [wayoflinux](https://wordpress.org/support/users/wayoflinux/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/post-loop-on-page/#post-6450954)
 * Status: resolved