Custom Post Type Support

If you want to experiment with our Custom Post Type support, you can download our testing plugin. The plugin registers a td_books post type and it adds two taxonomies to it td_writers and td_genre.

Theme panel settings for custom post types and taxonomy:

The theme detects all the installed Custom Post Types and it will generate a drop down with options for each one. Please note that the custom post types of WooCommerce are not present here because we plan to add a better way to manage the shop. Some plugins may register some strange stuff, like post types that are not used on the front end at all. If you see post types that you don’t recognize as your own we recommend that you leave the default settings for them.

The settings are located in Theme Panel > CPT & Taxonomy and they include:

Available custom post type options:

  • Breadcrumbs taxonomy – select what taxonomy will show up in the breadcrumbs
  • Category spot taxonomy – choose the taxonomy that appears in the category spot, it will replace the default “Category” taxonomy
  • Tag spot taxonomy – select the taxonomy that is displayed in the tag spot (after the post content)
  • Tag spot text – replace the default “Tags” label text with the name of your taxonomy
  • Custom sidebar + position – choose the post sidebar and it’s position, this will apply globally to all the post which are part of the CPT for which you are setting this. You can override this option from the post individual settings that can be found in the post editing section.

Custom Post Type and Taxonomy general settings

In the following screenshots, you can see the Custom Post Type single page and where the settings from the above panel are applied.

Custom Post Type: Frontend taxonomy


Custom taxonomies:

  • Article display view – select the module used to display the custom post types on the taxonomy page
  • Custom sidebar + position – chose the sidebar displayed on the taxonomy page and it’s position

The theme creates a section for each taxonomy, at the same time providing some insights about the taxonomy ID and on what post types is the taxonomy assigned to. The settings from this drop-down panel affect the taxonomy archives page.

>div class=”td-infobox-gray”>Recently we added the taxonomy.php template. If you require custom modifications on taxonomy pages, taxonomy.php should be the starting point for them.

Newspaper Custom Post Type: CPT Taxonomy

Individual post settings for custom post types:

On each post that belongs to a registered post type you can control the sidebar position(left, right or none) and what sidebar is loaded.

 Custom post type: sidebar settings

How to create a custom single template for your post type:

  1. Step 1 – Pick one of your favorite single templates (check the next image)
  2. Step 2 – Copy it to the root of your child theme folder
  3. Step 3 – Rename it to single-your_post_type.php (replace your_post_type with the WordPress ID of your post type. In our sample plugin the id is td_book so the file should be called single-td_book.php)

Custom post type - single post template