Hi,
I want to make a featured video selector with a small video frame on the top and smaller thumbnails at the bottom of the main page of a website. Clicking on a thumbnail refresh the title, description, date, author, category and the embed video on the top of the page.
Each videos are part of a post that I categorized under a "featured" category and each have a small thumbnail linked to them.
I tried creating a small PHP file containing the same code I've used in the single.php file and included it in the index.php page but I can't find a way to load the post informations in the PHP file.
Another way I've tried to do it was to create another PHP file and put it in an iframe but I got the same problem: I can't find a way to load the post infos in the PHP files.
Can someone refer me to instructions or documentation on how to do this or something similar? I've used WordPress before but this is all new to me.