Hellp with a if
-
Hi guys!
Im looking a little bit of help.
I want to write out this in my query <div id=”nyhetsbild”><?php images(‘1’, ‘170’, ”, ‘alignleft’, true); ?> if the post have an images. But if not, i don’t want the div at all.
Could someone help me?This is my code:
<div id=”content”><span class=”contentrubbe”>Senaste nyheter</span>
<?php query_posts(‘cat=3&showposts=10’); ?>
<?php while (have_posts()) : the_post(); ?>
<div id=”contentpost”>
<span class=”contentrubbe4″><?php the_title(); ?></span>
<div id=”nyhetsbild”><?php images(‘1’, ‘170’, ”, ‘alignleft’, true); ?></div>
<div id=”nyhetstext”><span class=”newsrolldate”><?php the_time(‘j M, Y’) ?></span>
<?php content(30); ?>… “>Läs artikeln </div>
<div id=”clear”></div></div>
<?php endwhile; ?></div>
- The topic ‘Hellp with a if’ is closed to new replies.