Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Need Help PHP Foreach display as row

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #157236

    Hi I would like my forum post to display as per row like what is on here but for some reason when I do it put it out of order. I use Bootstrap 3

    <div class="row">
    <?php foreach($threads as $thread): ?>
    <div class="col-lg-4">
    <a href="<?php echo site_url('thread/talk/'.$thread->slug); ?>"><?php echo $thread->title; ?></a>
    </div>
    <div class="col-lg-4">
    <h4 class="cat"><?php echo $thread->category_name; ?></h4>
    </div>
    <div class="col-lg-4">
    <!-- <?php echo date("m/d/y g:i A", strtotime($thread->date_add)); ?> -->
    <?php echo time_ago($thread->date_add); ?>
    </div>
    <?php endforeach; ?>
    </div>
    
Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.