In this lesson, we create a Books Custom Post Type using ACF for author websites, detailing steps from registration to configuration, ensuring easy book content management.
There are 4 stages to build a Books Custom Post Type for an author website.
In this lesson we will start the process by creating our Books Custom post type in ACF Pro
First we will register our Books Custom Post Type.
Next, ACF wants to know what taxonomies we want to use. Taxonomies in WordPress is a way of grouping and organising content types. When I click inside that field I have the choice of using WordPress’s native Categories, Tags, or Format taxonomies to organise this new Books content type. In a later lesson we are going to add taxonomies specific to books so I’ll leave this blank.
We definitely want this Books Custom Post TYpe to be publicly visible so I’ll leave it at the default of PUBLIC
This post type is NOT hierarchical. There are no child post types to this one so I’ll leave that option deactivated.
I do want to use advanced configuration so I’ll activate that now.
Under GENERAL SETTINGS we define which features of the content edit screen we will use for this post type. A regular content edit screen for a WordPress post looks like this. (SHOW REGULAR POST SCREEN). We want the Books Content edit screen to look like this (Show the completed BOOK POST TYPE).
Having the Content Edit Screen structured like this makes it a lot easier to add new books because we are filling out a form with information we already have. We get this structure by what we configure in our settings here, and in the next two lessons where we add custom categories and custom fields.
Here in the GENERAL SETTINGS section of setting up our Books Custom Post type we set what content editing features we want to use on these posts. It’s worth having a rundown what each of these features are and why I choose to use them or not.
I give this new custom post type a description. We are going to use this description at least one template one the website in a later lesson. “The complete portfolio of all Dirk Volcano books. If you’re looking for thrills or mystery you’ll find your perfect read below.” and activate it.
That’s all the GENERAL SETTINGS completed so we’ll go to the next tab
The only change I’m going to make in the labels section is to scroll down to the bottom and add a placeholder to the title field.
“The book title as it appears on the cover”
This is a reminder to avoid keyword stuffing in the title. We cover the best way to optimise books on your website in the Author Website Playbook
When I click save the dashboard will take a few seconds to refresh and when it does you’ll see the new BOOKS icon underneath POSTS in the admin sidebar
We want there to be an archive page for the books post type, an area of the website that displays all books posted by the author.
We have no other changes to make to this custom post type so I’ll click save.
If I wait a few seconds the WordPress dashboard will refresh again. When I hover over the Books ICON in the menu we get the options to see All Books or Add New Book. When I click on Add New Book we get a severely cut down content edit screen. That’s ok. That’s exactly where we should be until we build our Books custom post type with all its superpowers.
Normally I’d wait until I fully registered a new custom post type with all its custom fields but for these lessons I’ll add book data as build out the full custom post type.
For this example I’ll add ‘Adventure Danger’ the first book in the Dylan Danger series from Dirk Volcano.
OK, I’ll click on preview and see how that looks.
It’s completely blank.
We aren’t seeing anything yet because we haven’t created a template inside Breakdance to display our new custom post type. We will do that in the upcoming course module ‘Build a Books Custom Post Template.
In this module we’ll continue to build our Books Custom Post type and populate the fields with details from Adventure Danger. Then, when we move into building our templates we’ll see book posts take shape with all our books information.
In this lesson we have created our Books custom post type and registered it with WordPress. Although the content edit screen is a little sparse right now we’ve taken a huge step. We have now defined a dedicated post type for our books which, as you’ll see by the end of this module, gives us total control over how our book posts will look without affecting the rest of the site.
I hope you’re enjoying the course so far? If you have any questions, comments or feedback I’d love to hear them. Click on the Contact link below and let me know via your preferred channel.