0

I'm creating a wordpress theme and am having trouble generating a video link to go into an iframe source. I've tried troubleshooting and it seems that the issue is beyond wordpress and I can't actually input any link with PHP to work with iframe. Here's an example for simplicity's sake.

<iframe src="<?php echo 'https://vimeo.com/159120552'; ?>" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

The PHP works as far as I can tell (when I inspect it, the link is in the correct place), but there appears to be a blank web document created in the iframe instead.

Am I doing something wrong or is this a known issue of iframe and PHP?

NexusCrux
  • 25
  • 4

1 Answers1

1

This issue not related to PHP . Its throwing an error refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin'. Please refer How to set 'X-Frame-Options' on iframe?

Community
  • 1
  • 1
Anish Chandran
  • 427
  • 1
  • 5
  • 19
  • Right you are! This particular issue is with my own vimeo link, as I was using the web link and not the embed link. (vimeo.com/##### as opposed to player.vimeo.com/video/#######) – NexusCrux May 17 '16 at 05:23