Title: Displaying post content within lightbox
Last modified: August 21, 2016

---

# Displaying post content within lightbox

 *  Resolved [Kevin](https://wordpress.org/support/users/truheart/)
 * (@truheart)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/displaying-post-content-within-lightbox/)
 * First of all thanks for the great and simple plugin. I am having a tricky issue
   over here trying to display some content within a lightbox. What I did was create
   a custom post type with a template containing just the the_content(). The coding
   in the template is fine, and the post displays normally and even when using FancyBox.
   The thing is I would like to use the prettyPhoto script to display the content.
   From what I remember, when I first tested this out with a link to [http://www.google.com](http://www.google.com)
   last week everything was working fine. I was able to tweak the settings for the
   prettyPhoto and it displayed the content exactly how I wanted. Now today I tried
   to implement it with a link to actual content on my site and it won’t work. I
   am getting an error message saying “Image cannot be loaded. Make sure the path
   is correct and image exists”. I think that last week I might have been doing 
   something with an iframe to get it to work, but now I can’t remember.
 * Any ideas?
 * [https://wordpress.org/plugins/responsive-lightbox/](https://wordpress.org/plugins/responsive-lightbox/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Kevin](https://wordpress.org/support/users/truheart/)
 * (@truheart)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/displaying-post-content-within-lightbox/#post-4584529)
 * Ok I figured it out. For anyone who is wondering, if you want to display an external
   webpage within a prettyPhoto lightbox, just add **?iframe=true** to the end of
   your url. The lightbox will display the entire page perfectly.
 *  [zolute](https://wordpress.org/support/users/zolute/)
 * (@zolute)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/displaying-post-content-within-lightbox/#post-4584817)
 * Thanks a lot truheart. I followed your instructions here but it doesn’t seem 
   to be working correctly for me. Could you have a look at where I might be making
   a mistake?
 * [http://digicom.demo.zolute.co.in/#contact](http://digicom.demo.zolute.co.in/#contact)
   
   There’s a link on “You can connect with Liva through a variety of our online 
   social media tools.”
 * Thanks in advance.
 *  Thread Starter [Kevin](https://wordpress.org/support/users/truheart/)
 * (@truheart)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/displaying-post-content-within-lightbox/#post-4584821)
 * Hey sorry zolute, I can’t find the link. What are your specific settings on the
   back-end?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Displaying post content within lightbox’ is closed to new replies.

 * ![](https://ps.w.org/responsive-lightbox/assets/icon-256x256.png?rev=3460874)
 * [Responsive Lightbox & Gallery](https://wordpress.org/plugins/responsive-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-lightbox/reviews/)

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [the_content](https://wordpress.org/support/topic-tag/the_content/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin](https://wordpress.org/support/users/truheart/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/displaying-post-content-within-lightbox/#post-4584821)
 * Status: resolved