Home » Docs » Custom Post Types

Please Note: As of version 1.4.0 this logic exists within Conductor. This gist is no longer required to add single posts from registered custom post types to the list of available Conductor layouts.

Using this gist in conjunction with Conductor version 1.4.0 and up may produce unexpected results.

The following code will add all single posts from registered custom post types to the list of available Conductor layouts in both the Customizer and the Dashboard. We’re ignoring the _builtin post types because Conductor is already handling them (except attachments). We’re further narrowing down the custom post types by removing those that do not have archives or rewrite rules.

Please customize the following code to fit your needs. Conductor will support this functionality in a future version which means that this Gist will no longer be necessary at that time.

Place the following code in your child theme’s functions.php file.