xboxer360com
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Assign Images to CategoriesWould there be a simple way to code it in? Don’t like using plugins for something that should be relatively simple. Would it not be done with an IF statement at all?
Forum: Themes and Templates
In reply to: Homepage Query LoopsThat code you gave me was perfect ?? cheers!
Forum: Themes and Templates
In reply to: 4 Featured posts on home page with imagesThat worked perfectly! thanks!
Forum: Themes and Templates
In reply to: Eliminate Comments Entirelyits in single.php too
Forum: Themes and Templates
In reply to: Eliminate Comments EntirelyJust open up your posts template and remove
<?php comments_template(); ?>
Forum: Themes and Templates
In reply to: 4 Featured posts on home page with imagesOk I sussed how to do it but I’m having problems with my css…
Basically all the featured boxes will only use 1 css style I need the boxes to use seperate css styles due to the spacing..
Heres what I’m currently doing:
<?php query_posts("showposts=4&category_name=Portfolio"); $i = 1; ?> <?php while (have_posts()) : the_post(); ?> <div class="featureportfolio"> <?php $values = get_post_custom_values("thumb"); if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="<?php the_title(); ?>" class="left" width="200px" height="81px" style="border-bottom:9px solid #8bc200" /></a> <?php } ?> <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a></div> </div> <?php endwhile; ?>
and my css `.featureportfolio {
width:200px;
height:214px;
float:left;
border-bottom:9px solid #8bc200;
margin-top:20px;
}`Basically I need my first 3 boxes to have margin-right:20px; and the last box not to use any margin-right.
Is there anyway I can get the php to add the number of the post to the end of the class? ie
<div class="featureportfolio1">
so it knows that<div class="featureportfolio4">
doesnt have a margin right?