/ Published in: PHP
Expand |
Embed | Plain Text
<?php $headerimage = get_posts('showposts=3&meta_key=headerimage'); foreach($headerimage as $post) : setup_postdata($post); ?> <div id="header-image"><a href="<?php the_permalink(); ?>" title="Latest experiment from the DesignLab"><img src="<?php echo get_post_meta($post->ID, "headerimage", true); ?>" alt="" border="0" /></a></div> <?php endforeach; ?>
Comments
Subscribe to comments
You need to login to post a comment.

Haven't tried it, but looks good. Could be useful for Wordpress as a CMS.