• 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)
  • 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

    (@andy_b)

    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?

    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, that would be much easier to do!

    I wish my sites had enough comments to cause a mess ??

    Thread Starter andy_b

    (@andy_b)

    cheers jleuze, sorted it!!

    Good to hear!

    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: https://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.