That Stubborn WordPress Custom Post Type

The WordPress Custom Post Type. CPT for short. Nothing amazing about it. Many themes include them. Often they are Portfolio, FAQ, Events, or other specifically created posts.

What do we need to do to add a Custom Post Type to a theme without these baked in already?

It is a two step process that requires a proper Child Theme and some code as shown below:

We start by properly using init in the Child Theme’s functions.php

Continue reading