i am trying to display first post of 3 categs on my index page. so for that i wrote a little function as follows:
function excateg($categ) {
$recent = new WP_Query("cat=$categ&showposts=1");
while($recent->have_posts()) : $recent->the_post();
$imageurl = get_post_meta($post->ID, 'post-img', true);
endwhile;
}?>
Afterwards the Html for showing the image and title and image.. but i am unable to get the custom field as above in $imageurl to get a value..
Help is appreciated!
