Worked seamlessly. Thanks
How can I ensure that proper CSS is applied to the image. Rite now, there is no border and padding?
Sorry about my amateurishness.
(von: qtest)
Hier noch 3 weitere Ergebnisse dieses Threads:
Using default image if there is none assigned
5. Apr. 2010 (von: qtest)
HiIn the Featured section, how can I use a default image if no image is provided. It would check for any image and use the one assigned. However if no image is assigned, only in the featured category, a default…
Re: Using default image if there is none assigned :: Reply by master
5. Apr. 2010 (von: master)
your featured section looks like this now in index.phpCode:<?php while (have_posts()) : the_post(); ?> <div class="clearfloat"> <?php $values = get_post_custom_values("Image"); if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo…
Re: Using default image if there is none assigned :: Reply by master
5. Apr. 2010 (von: master)
Sorry, I forgot one line in the else part, the one giving the link, /a at the end is there already.Add this just after <?php } else { .........Code:<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">complete looks…