Support » Themes and Templates » iframe loading SAME post as parent

  • What I’m trying to do:
    ‘responsive’ self-hosted video (i.e. sized according to window width etc)

    How I’m trying to do it:
    It seems an iframe is essential for this to work.

      When the user creates a ‘VideoPortfolio’ page they put in the mp4’s URL into a custom field

      The VideoPortfolio page will not load that video itself, but use an iframe loading a blank page using a custom template. Called ‘VideoHost’

      The VideoHost page will load the same post as the VideoPortfolio page has done. But it will make use of the Custom Field with mp4 URL

    Is this the best way to do it?

    If it is… How do I do it?

    Right now I have no idea how the php would look

    How would the page loaded in the iframe know to load the same post as the iframe parent?

    Thanks for any advice

  • The topic ‘iframe loading SAME post as parent’ is closed to new replies.