Title: comments in an iframe
Last modified: August 19, 2016

---

# comments in an iframe

 *  [andy_b](https://wordpress.org/support/users/andy_b/)
 * (@andy_b)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/)
 * Hi all,
 * i am updating my blog to include an iframe under each post. I want the iframe
   to hold the comments. I am having trouble achieving this.
 * So i am in the loop, i get the content of each post, i create the iframe, then
   i can not seem to find the right fuctions to use to populate the frame with the
   comments.
 * Can i create another php file and loop through the comments / style them and 
   then just link to this file from the iframe src tag??
 * Any help/ideas would be greatly appreciated.
 * cheers

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

 *  [Josh Leuze](https://wordpress.org/support/users/jleuze/)
 * (@jleuze)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934670)
 * Umm, I think a lot of people are going to wonder why you would want to do this?
   Getting the functions and calls to work across two pages, while probably possible,
   would be very hard I would thing.
 * Are you doing this to make your pages shorter, not have 400 comments below the
   post? You can break the comments into multiple pages and only show 50 per page
   or something. And if you use threaded comments and style them right, they will
   take up less room too 🙂
 *  Thread Starter [andy_b](https://wordpress.org/support/users/andy_b/)
 * (@andy_b)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934672)
 * i want to do this because it will look cleaner. just a small window under the
   post that you would scroll to view all comments.
 * So how hard is this to do?
 *  [Josh Leuze](https://wordpress.org/support/users/jleuze/)
 * (@jleuze)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934678)
 * It might actually be easier than I thought. You don’t actually want to use an
   iframe, that would involve some PHP coding and might be pretty complicated.
 * But if you leave the comments on that page, and just style them with CSS so that
   the [comments div is scrolling](http://wordpress.org/support/topic/146433?replies=5),
   that would be much easier to do!
 *  [Josh Leuze](https://wordpress.org/support/users/jleuze/)
 * (@jleuze)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934679)
 * I wish my sites had enough comments to cause a mess 😉
 *  Thread Starter [andy_b](https://wordpress.org/support/users/andy_b/)
 * (@andy_b)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934695)
 * cheers jleuze, sorted it!!
 *  [Josh Leuze](https://wordpress.org/support/users/jleuze/)
 * (@jleuze)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934703)
 * Good to hear!
 *  [sullysul](https://wordpress.org/support/users/sullysul/)
 * (@sullysul)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934883)
 * Andy: Did you figure the comments put into an iframe to scroll your comments 
   in a post? If so, can I take a look – what’s your site? I’m trying to do the 
   same thing. ran into issues filtering in the comments. I can’t find out where
   the wordpress generated files (or the correct php code) is? Take a look at my
   progress at: [http://www.chicagoillinoisweddingphotography.com](http://www.chicagoillinoisweddingphotography.com).
   As you can see, it’s loading the whole comment page instead of just the comments.
   Thanks for your help.

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

The topic ‘comments in an iframe’ is closed to new replies.

 * 7 replies
 * 3 participants
 * Last reply from: [sullysul](https://wordpress.org/support/users/sullysul/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/comments-in-an-iframe/#post-934883)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
