logo

This is an old version of this answer!

Return to the current answer
<ul id="dock">

<?php

$count = 0

$dock = new WP_Query();

$dock->query( 'showposts=5' );

while( $dock->have_posts() ) : $dock->the_post();

$count ++

?>

<li id="position<?php echo $count ?>">

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">

<img src="<?php bloginfo( 'template_directory' ); ?>/imgsize.php?w=69&h=54&img=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>" alt="<?php the_title(); ?>" />

</a>

<span><?php the_title(); ?></span>

</li>

<?php

endwhile;

?>

</ul>

Roberto Mas | 05/20/10 at 12:18am

This is an old version of this answer!

Return to the current answer