Creating a movie custom post type
Based on Rens excellent tutorial
I made an update 15 March 2015.
NB! After having created a custom post type one needs to go to Settings -> Permalinks and refresh them. Bascially just clicking the save Changes should work. If this is not done then viewing the custom post type might show a not found page error.
I made a work around since 10 movies did not show up in two rows as planned.
With the work around I added a spring and fall to the year tags. Making a year look like this:
2005 Spring. 2005 Fall.
I am transfering the web site for Oslo Spiritual Film Club into WordPress and this is one of the sections I also need to transfer: Film Arkiv .
Example image. I zoomed out in the browser to get a better overview.
I was asking about how to create this at the forum on the StudioPress web site and Ren replied and made a tutorial.
Sections of code to be added into the child theme functions file OR a custom plugin.
1. Registers movie type
2. Adds tags
3. Adds category (is something I added in addition to Rens code.)
The next code is based on the Genesis framework. We now need to create the archive-movie.php file with the following code which will be added to the root folder of the Genesis child theme.
It looks pretty good.
I have the movies ordered by date added.
The movies are seen nicely in their own rows.
I could perhaps have added a later year as the newer years have a more spiritual focus over them then the very early years of the film club.
Other articles on Custom Post Types (will be added).