Forums

Featured video selector on home page (2 posts)

  1. Ben2998
    Member
    Posted 7 months ago #

    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.

  2. premiumwp
    Member
    Posted 7 months ago #

    You might be better to have a look for existing themes which have the video feature or functionality you’re looking for, and use or learn from the code in it. There are plenty of video wordpress themes with featured video sections.

Reply

You must log in to post.

About this Topic