Custom post types
Manage custom post types
Manage custom post types
The custom post type dashboard looks like this:
![](https://docs.acpt.io/~gitbook/image?url=https%3A%2F%2F3235524095-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fiyf0tSKPgXiyoQ3zV3I6%252Fuploads%252FyDIVkhFdzZVtc7NJSyYg%252FRegistered-Custom-Post-Types-%25E2%2580%25B9-Localhost-%25E2%2580%2594-WordPress%2520%281%29.png%3Falt%3Dmedia%26token%3D8bc836dc-a409-4ad4-8efb-0824d7da9c7f&width=768&dpr=4&quality=100&sign=708a6d02&sv=1)
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
Sync operations
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.
Register a new post type
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
Basic (Minimum configuration)
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.
Labels (Additional labels)
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.
Settings (Other settings)
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.
Update an existent post type
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.
View a registered post type
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.
Delete a registered post type
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.
Last updated