Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End iframe loading SAME post as parent

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #41236
    shavenraver
    Member

    **What I’m trying to do:**

    ‘responsive’ self-hosted video (i.e. sized according to window width etc) in wordpress

    It seems an iframe is essential for this to work. The theme I am using already resizes anything that is in a div class=”video”. But without the iframe, the video window resizes, but alas, the content does not.

    **How I’m trying to do it:**

    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

    **My question**

    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?

    How would the php on the parent page load the same post (using different info/meta data and page template)?

    Thanks for any advice

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.