WordPress custom post types let you add your own data types to the WordPress admin. Out-of-the-box, WordPress comes with pages and posts. If you want to display other types, such as products, testimonials, projects and anything else, the best way is to setup custom post types.
This way, different types of content are organized under different menus. You can also control user-access for different types, allowing better management of your site.
Creating a custom post type is easy with Types. All you have to do is add the name and settings, and your new custom post type is ready.
Let’s take a look at how you can create a custom post type for a property letting website.
Go to Types > Custom Types and Taxonomies and click “Add New Custom Post Type“.
At the top you should add your name and description, along with your slug and a description. The ‘slug’ field is what identifies the custom type inside WordPress. It may only contain English letters, digits and underscores. The Plural and Singular names may contain any characters.
For a Property website we can use the following:
When you are happy with your settings click save.
Your new custom post type will now be available on the WordPress admin menu.
Besides the basic setup (name, description and slug), Types gives you access to advanced setup. Although not always required, advanced setup will let you fine-tune everything about your data types.
The Visibility option lets you determine whether your custom post type will appear in the WordPress Admin or not. As we want users such as authors and editors to be able to add property to the website we will make it visible.
If you’re creating the custom post types programatically (with code), you probably don’t want them appearing on the menu. However, most custom types you’ll be creating with Types should usually be editable.
You can also change the menu positioning (i.e. where your custom post type will appear on the Admin menu – see the section on menu_position in the Codex for more information) and the icon.
Taxonomies are used to categorize your post types. The most common WordPress taxonomies are categories and tags.
If you have created a custom taxonomies for your custom post type you can attach them here. If you haven’t created taxonomy yet, learn more about creating custom taxonomy.
Labels are the pieces of text that are attached to different areas of the admin screen, for example “Add New Property” or “No Property Found”.
While the defaults often suffice, it can be useful to be able to tweak these labels to further customize your admin screen.
Types lets you choose which of the default WordPress sections you would like to display on the Add New/Edit Property page. These are:
Advanced settings let you further tweak your custom post type. Normally the defaults should be fine but in case you want to fine-tune everything about your custom post types, here is what these options mean:
Types plugin also lets you connect different custom post types using parent / child relationships. For example, if you’re creating custom types for artists and shows, you can make the ‘show’ children of ‘artists’. Scroll down to the bottom of the post type editor. You’ll see a small section called Post Relationship.
When you enable parent / child relationships between custom post types, you’ll be able to:
Types is a free plugin for managing custom post types, taxonomy and custom fields.Download Types