Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8244671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:55:53+00:00 2026-06-07T21:55:53+00:00

About to implement my first WordPress site. My understanding is that it helps if

  • 0

About to implement my first WordPress site. My understanding is that it helps if my loop is calling a generic item, for example:

<div id="article-excerpt">
<div>Article Heading</div>
<div>Article Sub-heading</div>
</div>

When using Twitter Bootstrap or 960.gs, my feed spans multiple columns and multiple rows.

For example, the articles are laid out horizontally across a nested grid comprised of 5 columns. Every 5 items, there’s a new row.

Row 1: [article div] [article div] [article div] [article div] [article div]
Row 1: [article div] [article div] [article div] [article div] [article div]
Row 1: [article div] [article div] [article div] [article div] [article div]
etc.

I’ll explain the next bit to check that I have a fundamental understanding of how these systems work.

In 960.gs, for nested grids, I need to declare the first item and last item in each row with classes of alpha and omega respectively:

<div id="article excerpt" class="alpha grid_1">
    <div>Article Heading</div>
    <div>Article Sub-heading</div>
</div>

Likewise, in Twitter Bootstrap I need to place each row in its own special DIV:

<div class="row">

    <div id="article-excerpt" class="span1">
    <div>Article Heading</div>
    <div>Article Sub-heading</div>
    </div>

    <div id="article-excerpt" class="span1">
    <div>Article Heading</div>
    <div>Article Sub-heading</div>
    </div>

    <div id="article-excerpt" class="span1">
    <div>Article Heading</div>
    <div>Article Sub-heading</div>
    </div>

    <div id="article-excerpt" class="span1">
    <div>Article Heading</div>
    <div>Article Sub-heading</div>
    </div>

    <div id="article-excerpt" class="span1">
    <div>Article Heading</div>
    <div>Article Sub-heading</div>
    </div>

</div>

If my grid isn’t nested, things are a little simpler. I realise I can simply place a span1 or grid_1 inside my container. Each row will auto-wrap to the next line when it gets to the maximum number of columns.

With this in mind, my WordPress loop would be very simple. It wouldn’t need to identify first and last items per row, or count, or increment numbers, or anything like that.

What I want to find out is if there’s a way to simplify my approach so that the loop doesn’t necessarily have to count items, kind of like this:

<div class="grid_5">
  <LOOP> <div class="grid_1">generic article</div> </LOOP>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:55:54+00:00Added an answer on June 7, 2026 at 9:55 pm

    It turns out that in Bootstrap, span divs will automatically wrap to the next line when they exceed the number of columns in a given row.

    For example, my grid is a fixed width, 12 column grid.

    My regular non-Wordpress/loop HTML looks like this:

    <div class="container">
    
    <div class="row">
    
        <div class="span3">
        Content
        </div>
    
        <div class="span3">
        Content
        </div>
    
        <div class="span3">
        Content
        </div>
    
        <div class="span3">
        Content
        </div>
    
    </div>
    

    Of course, when I integrate the loop, the number of span3 divs containing content will vary as I add more content to my site. However, Bootstrap happily wraps to the next line when a new span 3 is added to the mix.

    This means that my loop doesn’t need to count the number of spans in a row in order to calculate when a row starts/ends.

    It can look something like this:

    <div class="container">
    
        <div class="row">
    
            <!-- WORDPRESS LOOP BEGINS HERE -->
    
            <div class="span3">
            Content
            </div>
    
            <!-- WORDPRESS LOOP ENDS HERE -->
    
        </div>
    
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, I know about Clog , and I do not want to implement this
I'm about to implement a feature on my website that recommends content to users
I'm about to implement a slider control component in .NET that's along the lines
Can anybody point me to a simple example about how to implement form based
Trying to implement NSCopying for the first time, and I have a question about
Part of what's so powerful about Clojure is that all the core data-types implement
Relatively simple question about handling destructors properly... First I've got a class that's something
I was thinking about how to implement an ImageView that shows an image and
Since my first lessons about C# classes I've learned that not only I cannot
I'm currently building a Java GUI application and I'm about to implement something that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.