Quote:
Originally Posted by harvey
there
Code:
<div class="hpbottom">
<h3>Latest News</h3>
<?php $recent = new WP_Query(); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;" src="<?php bloginfo('template_url'); ?>/images/bigthumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(350, "[Read more...]"); ?>
<?php endwhile; ?>
</div>
</div>
that should do the trick. As for the second snippet it requires to rebuild the code of your page to format posts the way you want it. Not difficult at all, but you should do it yourself or hire someone to do it
|
Thanks...but it didn't work. It displays one box, with no content.