I've set up a sidebar section that displays the contents of a page in it.
For some reason, when you click on an image (with a link to view a bigger version) the new page you go to has that image showing as the first paragraph in that section.
Here is the site: http://www.seanborggoesla.com/
Click on the first image (currently a half naked hottie. Sorry if offended, it's not my site, I just do the back end).
When you go to the new page, the image is in the sidebar, too, as a paragraph with the class of "attachment".
This is the code I used in the sidebar:
<div id="diduhear">
<?php
$page_id = 19052;
$page_data = get_page( $page_id );
$content = $page_data->post_content;
$title = $page_data->post_title;
echo "<h3>" . $page_data->post_title . "</h3>";
echo "<div id=\"thetext\">";
echo apply_filters('the_content' , $page_data->post_content) . "</div>";
?>
</div>
Thanks in advance!