Hi,
I'm working on a site for a charity my friend is raising money for. He has a list of donors (added to the site using portfolio items) and what we wanted to do is have a box on the front page that would feature a donor based on a query string that has been added to the url. I've had a lot of success so far implementing this feature, except I can't seem to get the image attachment to pull through to the front page. Here's what I have so far:
<?php
$page_id = $_GET['id'];
$page_data = get_page( $page_id );
$title = $page_data->post_title;
echo "<h3>" . $title . "</h3>";
echo apply_filters('the_content' , $page_data->post_content);
?>
So the attached image was added to the post using the featured image, and I was wondering if there was a way that I could pull that into the front page with the rest of the data.
Thanks a ton for any help you can give me.
Steven.