Create New Post Types and Taxonomies in Custom Post Type UI

Posted OnOct 26, 2014     CategoryPlugins     CommentsNo comment

The second part of the guide to the Custom Post Type UI WordPress Plugin will take you through how to create new post types and taxonomies…

Step 1) On the Dashboard, scroll down the sidebar right along to the bottom, and click ‘CPT UI’. On the dropdown, click on ‘Add New’. This will take you to the page where you can create a new post type or taxonomy.

1

Step 2) On the left-hand side of the page, you can create a new post type. From here, you can enter the Post Type Name, create labels (which are used in the admin menu for displaying post types) and create a singular labels where needed. You can also write a description for what the custom post type is used for.

2

Step 3) On the right hand side of the page, you can create a Taxonomy for the posts and pages of your website. Create a short and snappy taxonomy name, and then add your label and/or singular label as you see fit. You can tick boxes as to whether or not you would like to attach the taxonomies to posts or pages, or both.

3

Step 4) Both Custom Post Types and Taxonomies have advanced options. Taking a look at the Custom Post Types advanced label options first, they include labels for the Menu Name, Add New, Add New Item, Not Found and more. You don’t have to create any of these yourself, as the plugin will automatically create ones in relation to the custom post type you have created. But if you want to add them yourself, they are here for you to do so.

4

Step 5) Next to the Advanced Label Options, you will find Advanced Options. Here, you have a choice between ‘True’ or ‘False’ for the options available, which include: Whether or not the custom post type should be in the admin UI, generating a default UI for the post type, creating an archive for post types and editing options including the position of the menu on the page. You can also add an image URL to create an icon for your new menu.

There are two boxes to tick or leave unticked that will determine where the built-in taxonomies will be found. They are ‘Categories’ and ‘Tags’ and can be found at the bottom of the advanced options.

5

Step 6) Taxonomies also have Advanced Label Options. Here, you can create a number of labels, including search, popular items, parent items, add and remove, and more. This is especially useful if you are creating posts that have room for wider searches, like the examples shown below (e.g. Search Actors, Popular Actors, etc.)

6

Step 7) The Advanced Options begin with whether or not to create a Hierarchical structure with the taxonomies. If you choose ‘True’, this will allow you to create parent taxonomies (e.g. Actors as the parent, Male Actors as the child). You can also create a generic UI for the taxonomies, allow for rewrites, create a slug for the taxonomies and show admin columns on associated post-types.

7


Leave a Reply

Your email address will not be published. Required fields are marked *

Send this to friend