- Clone/download this repo and then run
npm i
- You'll need to add your TMDB API key to
functions.php
- Once you've setup the project as above you can simply type either
grunt
for a one-off build orgrunt watch
if you want the project to build on file change. This will output the theme files to the build directory. You can change this path by alteringtargetPath
in Gruntfile.js (viagrunt.initConfig
's configuration object).
- Be careful running
grunt clean
as it will blow away everything intargetPath
- Install WordPress as per normal
- Copy the folder
MovieTheme
intowp-content/themes
- Activate
Movie Theme
themevia Appearance > Themes
- Create a page called
Movies
and set its page template toMovie Listing
- Create a page called
Movie
and set its page template toSingular Movie page
- Go to Settings > Reading and set
Your homepage displays
toA static page
and selectMovies
as the homepage, leave Posts page unset.
- Copy the folder