ACPT v2
  • General
    • Minimum requirements
    • Download the plugin
    • Install ACPT
    • Install ACPT with Composer
    • Managing your license
    • Migrating from v1
      • Fix data loss after migration from V1
    • Settings
    • Translations
    • How to open a ticket
  • Basics
    • Custom post types
    • Taxonomies
    • Post type-Taxonomy association
    • Option pages
  • Meta fields
    • Field groups
    • The meta fields manager
      • Group settings
      • Basics
      • Advanced options
      • Conditional rendering
      • Validation rules
    • Field types
      • Address field
      • Audio field
      • Audio multiple field
      • Color field
      • Country field
      • Currency field
      • Date field
      • Datetime field
      • Date range field
      • Editor field
      • Email field
      • Embed field
      • File field
      • Gallery field
      • HTML field
      • Icon field
      • Image field
      • Length field
      • List field
      • Number field
      • Password field
      • Phone field
      • QR Code field
      • Select, checkbox, and radio
      • Rating field
      • Repeater field
      • Relational field
      • Range field
      • Table field
      • Textarea field
      • Text field
      • Time field
      • Toggle field
      • URL field
      • Video field
      • Weight field
  • Permissions manager
    • Custom post types permissions
    • Taxonomies permissions
    • Option pages permissions
    • Meta fields permissions
  • Tools
    • Custom APIs
    • Health check
    • Datasets
    • Export data
    • Import data
  • Forms
    • Manage forms
    • The form builder
    • Examples of form usage
      • Create a new post type
      • Modify an existing post type
      • Create a new term
      • Modify an existing term
      • Create a new user
      • Modify an existing user
    • Form submissions log
  • Dynamic blocks
    • Create your first block
  • Developers
    • Functions
      • register_acpt_post_type
      • delete_acpt_post_type
      • register_acpt_taxonomy
      • delete_acpt_taxonomy
      • assoc_acpt_taxonomy_to_acpt_post
      • remove_assoc_acpt_taxonomy_from_acpt_post
      • register_acpt_option_page
      • delete_acpt_option_page
      • save_acpt_form
      • delete_acpt_form
      • save_acpt_form_field
      • delete_acpt_form_field
      • get_acpt_form_object
      • get_acpt_form_field_object
      • save_acpt_meta_group
      • delete_acpt_meta_group
      • get_acpt_meta_group_objects
      • get_acpt_meta_group_object
      • save_acpt_meta_box
      • delete_acpt_meta_box
      • get_acpt_box_object
      • save_acpt_meta_field
      • delete_acpt_meta_field
      • get_acpt_meta_field_objects
      • get_acpt_meta_field_object
      • save_acpt_meta_field_value
      • delete_acpt_meta_field_value
      • get_acpt_fields
      • acpt_field_has_rows
      • acpt_field_has_blocks
      • get_acpt_field
      • get_acpt_child_field
      • get_acpt_block
      • get_acpt_block_child_field
      • acpt_field
      • is_acpt_field_visible
    • Shortcodes
  • Integrations
    • API Rest field integration
    • Breakdance
      • Build a real estate website
      • Working with nestable fields
    • Bricks builder
      • Build a real estate website
      • Working with nestable fields
      • Working with Slider (Nestable) and Gallery field
      • Working with relational fields inside query loops
      • Additional options
      • Working with text links
    • Divi
    • Elementor
      • Basic field blocks
      • Nestable field blocks
      • Dynamic tags
    • Gutenberg
      • Basic fields block
      • Relational fields block
      • Repeater fields block
      • Working with FSE
    • Oxygen builder
    • Rank Math
    • SEOPress
    • Slim SEO
    • WooCommerce
    • WP All Import/Export
    • WP Grid Builder
    • WPGraphQL
    • WPML
    • Yoast
    • Zion builder
Powered by GitBook
On this page
  • Manage custom post types
  • Sync operations
  • Register a new post type
  • Update an existent post type
  • View a registered post type
  • Delete a registered post type
  1. Basics

Custom post types

Manage custom post types

PreviousHow to open a ticketNextTaxonomies

Last updated 1 year ago

Manage custom post types

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

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.

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.

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.

For more info, please read .

Please refer to to get more info about registering new custom post types.

this article
official Wordpress documentation