Ready to get started?Download WordPress


Category Layouts? (1 post)

  1. tom_taylor_85
    Posted 3 years ago #

    Hello, how would I get my category posts to display horizontally instead of display down the entire page? The code I use now is:

        <td width:250px bgcolor="white"><div id="latest-designs">
          <div class="hpfeatured">
            <div class="mdl">
              <div class="h-wrap group">
                <h2 class="h-sub2 group"> <span>THE HOT SPOT</span> </h2>
    		<?php $recent = new WP_Query("cat=21&showposts=3"); while($recent->have_posts()) : $recent->the_post(); ?>
            <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
            <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="95" border="1" style="float:left;margin:0px 10px 0px 0px;" /></a>
            <?php else: ?>
            <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
            <?php endif; ?>
       <b><a href="<?php the_permalink() ?>" rel="bookmark">
          <h1><?php the_title(); ?></h1></a></b> 
    <h4><?php the_excerpt();?></h4>
    <div id="contents"><font color="black"><?php the_time('F jS, Y') ?></font></div>
            <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
            <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.