I want to be able to seperate the first image form the post into a
<div> tag and link it to the post page and be able to add html around the post text elements seprately.
Any help is greatly appreciated
This is what I have tried
query_posts('posts_per_page=1&tag=food'); while (have_posts()) : the_post(); echo "<li class='homePost'>\n"; echo the_content(); echo '<a href="' . get_permalink() . '">'; the_title(); echo '</a>'; echo "</li>\n"; endwhile;