In this exercise, you will investigate the use of Custom Post Types, Custom Fields, and Custom Taxonomies.
First, please watch this Loom video series and follow along creating the site I create in the videos.
To do that, please download the images and data for the custom fields to follow along with the video.
In the video series, I get you to install the Kadence Blocks Pro plugin. We have permission from the developer to use it for class projects, so I have added it to our class Brightspace area, along with the license key.
Do not abuse the trust of the developer, and the opportunity of future students to use the plugin, by using the plugin on any work outside this class. Do not share the license key.
Doing so will be treated as a violation of Langara Academic Conduct guidelines, and will be reported.
Do not set up the AI part of Kadence Blocks Pro: we have limited credits.
The Assignment Details
Create a new WordPress site focussed on something of interest to you. It could be food, movies, music, programming, design, guitars, fish, chickens, cats, Celine Dion — anything, really.
Install the plugins used in the the video series and in our class demos:
- Advanced Custom Fields
- Custom Post Type UI
- Yoast Duplicate Post
- Create Block Theme
- Kadence Blocks
- Kadence Blocks Pro
Now make a site with the following characteristics.
A Custom Theme created with Create Block Theme.
Regular Blog Style Posts (12): these can use a lorem ipsum generator. Make sure that each has a different title and feature image. They can have the same main text content.
Categories: divide the blog posts into three categories.
Custom Post Type: Make a Custom Post Type devoted to one topic in the site. As an example, for a Food site, you could have restaurant reviews.
This Custom Post Type should most likely support the WordPress-native Title, Feature Image, Editor, Excerpt and Custom Fields. Using the title and feature image post features makes it easy to have links to the single views of the site.
Custom Fields: Make at least one Custom Field Group for attachment to your Custom Post Type.
For example, again with the restaurant reviews site described above, you could have custom fields for restaurant address, restaurant hours, type of food, rating, photo of dish, price, etc.
Custom Taxonomies: Make at least two taxonomies for your Custom Post Type.
Restaurant reviews, for example, could be divided into the following taxonomy:
- Must Try!
- Decent Food at at Good Price
- Stay Away!
Custom Posts: Make a dozen posts of your Custom Post Type.
It is completely fine to use Lorem content for your main content. But each CPT post must have a unique feature image and title, and your Custom Fields data must be reasonable.
Menus Put links to your custom post taxonomies in the header and footer. Make another menu of your post categories and put it in the header and footer.
Make the categories and taxonomies as two separate menus.
Make your menus work well on mobile.
Finally, style the site so it looks good. Your mark will be based on the technical stuff above, as well as how useable and readable your site content is.
What to Hand In
A duplicator package of your site.
Name the folder yourname-cpt-cf-taxonomies.
Make sure that the folder has the duplicator installer and zip archive files.
Then zip your named folder and hand it in.