Custom post types
Manage custom post types
Last updated
Manage custom post types
Last updated
The custom post type dashboard looks like this:
From the main dashboard you can run these operations:
Manually sync post types
Create a new custom post type
Update an existent post type
View a registered post type
Delete a registered post type
Once you install ACPT or ACPT Lite plugin, a sync process with already registered custom post types is performed automatically.
Please note that ACPT imports also post and page posts, which are labeled as "Native".
From the dashboard, you can see a grayish button to operate the sync manually.
The sync process imports every custom post type with the show_ui
attribute set to true.
From the main dashboard click on "Register new Post Type" button to create a new custom post type:
The creation of a new post type is a three steps process:
STEP 1: Basic
STEP 2: Labels
STEP 3: Settings
This is the most important step. Define here:
Post name: The post name/slug. Used for various queries. ACPT automatically escapes the slug for you.
Singular label: Used only in the admin panel when a singular label is needed
Plural label: Used only in the admin panel for the post type admin menu item
Icon: Displayed on the sidebar of the admin panel
Support: Add support for various available post-edit features. For more info see here.
Here you can find the labels used only in the admin panel for ordinary Wordpress operations (searching posts, inserting new content, etc…).
The default settings are good in most situations, but feel free to change what you want.
Other important post settings.
Pay particular attention to the show_in_rest
parameter.
For more info, please read this article.
Don't touch the default settings if you don't know what are you doing :)
Once you complete the three steps you'll see the new custom post type on your admin panel and start work on it.
Please refer to official Wordpress documentation to get more info about registering new custom post types.
You have two ways to Update a post type:
by clicking the Edit link in the dashboard
by clicking the Edit link in the View mode (it takes you directly to the selected step)
The update process is pretty identical to the creation one. The only remarkable difference is that in the update process, you can't modify the post slug.
By clicking the View link in the dashboard you can view a Custom Post Type.
The View mode is divided into three tabs, as the 3-step creation process.
By clicking the Delete link in the dashboard you can delete a Custom Post Type.
It's very important to understand that this operation DOES NOT DELETE anything on the posts WordPress DB table, but only the ACPT settings. After deleting a custom post type you will no longer display it in the admin panel, even if the post records are still present. If you try to re-create the same post type you will see the old posts.
Please note that you cannot delete Native post types.