I have a movies folder called movies located in site root/wp-content/movies/. I also have a template creates in my theme called page-movies.php. And a wordpress page called movies using the page-movies.php template.
What is the correct way to display the list of movie urls in the movies folder on the movies page.
I've used a scandir() inside of A tags to display all the urls as "site.com/movies/movietitle.mp4" but I click thr link to the movie is loads nothing just a blank white page.
Is there a correct way I should be loading the list of movie urls onto a oage from a directory?