Forums

Multiple Posts on one line (4 posts)

  1. tube2k
    Member
    Posted 2 years ago #

    Hello everyone. I am running a video site at This Link: Warning ADULT CONTENT and what I would like to do is have either 3 or 4 posts per row. I'm not the most certain how it is done or anything so if someone can help me out on this it would be greatly appreciated!

    Thank you in advance!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    You could try outputting the posts in an unordered list and then use CSS to apply a 33% or 25% width and a float:left; to each post.

  3. tube2k
    Member
    Posted 2 years ago #

    I will try that and let you know.

  4. tube2k
    Member
    Posted 2 years ago #

    <?php get_header(); ?>
    
    <div id="wrapper">
    <div id="mainbody">
    <div id="content">
    <div id="adtophome">
    <?php include (TEMPLATEPATH . '/ad_tophome.php'); ?>
    </div>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="window">
    <div class="paneleft">
    <?php print_video_thumb($post) ?>
    <h2 class="indextitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    </div>
    
    <div class="paneright">
    
    <div>
    <div class="postfeedback">
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    </div>
    </div>
    </div>
    </div>
    
    <?php endwhile; ?>
    
    <div class="pagenavigation">
    <div class="alignleft"><?php previous_posts_link('&laquo; Newer Videos') ?></div>
    <div class="alignright"><?php next_posts_link('Older Videos &raquo;') ?></div>
    </div>
    
    <?php else : ?>
    
    <h2>...?! Not Found.</h2>
    <p class="postmeta">* * *</p>
    <div>
    <p>Sorry, but you are looking for something that isn't here.</p>
    <p><?php include (TEMPLATEPATH . "/searchform.php"); ?></p>
    </div>
    
    <?php endif; ?>
    </div>
    
    <?php get_sidebar(); ?>
    </div>
    
    <?php get_footer(); ?>

    SO how would I do the unordered list thing?

    This is my index.php code.

Topic Closed

This topic has been closed to new replies.

About this Topic