[NSFW] Post image is showing in custom sidebar which displays a page
-
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: https://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!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[NSFW] Post image is showing in custom sidebar which displays a page’ is closed to new replies.