I'm looking to make a really simple website that A) embeds a livestream video into the site and B) randomly selects that livestream video from a list of options every time you refresh! I put in the code below to my Wix site to do this, but, while the video is embedded, it won't play randomly. What am I doing wrong?

<iframe width="853"
    src="//www.youtube.com/embed/videoseries?list=PL__vRg-4kAy858grEV8N0rE6J9GZEjWvF&index=<?php print rand(1,15)?>"
  • This question appears to be off-topic because it is about web development which is off-topic at Pro Webmasters. Web development questions may be asked at Stack Overflow but be sure to read their FAQ before posting to ensure your question meets their guidelines. – John Conde May 22 at 1:41

Your code snippet contains PHP, and Wix does not support PHP.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.