Skip to main content

What You’ll Learn

  • Understanding matching CPTs between Dashboard and child sites
  • Registering custom post types on your Dashboard
  • Creating and managing CPT posts remotely
  • Bulk editing custom post type content
  • Recovering a publication after an uncertain result
  • Using the extension’s WordPress abilities

Extension Add-on - This add-on provides custom post type publishing and management inside MainWP Dashboard.
Required Plugin - The Classic Editor plugin must be installed on both your MainWP Dashboard and all child sites for this extension to work correctly.
Custom post types are basic posts with different parameters defined inside your code. You may have seen Products, Testimonials, Features, Projects, or similar items in your WordPress sites and wanted to manage these from your MainWP Dashboard. The MainWP Custom Post Types extension allows you to manage custom post types on your child sites. To manage custom post types on your child sites, you need to have the matching Custom Post Type (CPT) on your MainWP Dashboard too. Once you register the same CPT on your MainWP Dashboard site, this extension will add the Select sites metabox to the Add New Item interface, and it will allow you to control where you want to publish this CPT content. Support for the CPT is also added to the Manage Posts screen, so you can search and manage CPT posts.

What is Matching CPT?

There are three required arguments for each CPT:
  1. CPT Slug
  2. CPT Plural Label
  3. CPT Singular Label
If all three are in the match, you can say that you have the matching CPTs. Let’s review the example of the Movies CPT. On your child site(s), you have a Movies CPT (Slug: movies, Plural Label: Movies, Singular Label: Movie). To be able to manage this CPT from your MainWP Dashboard, you need to create the same CPT on your MainWP Dashboard site.

WooCommerce Products

If you want to use this extension to publish WooCommerce Products to your child site(s), it is enough to install the WooCommerce plugin on your dashboard site. The extension will automatically create support for Products.

Important Notes

MainWP Custom Post Types extension DOES NOT register CPTs on your child sites. It only allows you to manage existing CPTs. To properly use it, you need to have the same CPT on your MainWP Dashboard and child site(s). It doesn’t matter if a CPT on your child sites has been created by a plugin, registered with a snippet in the functions.php, or added by your WordPress theme; this extension will be able to manage it as long as you can create the Matching CPT on your MainWP Dashboard site.

Register Custom Post Types on Your MainWP Dashboard Site

To do this, you have two options:
1

Create a code snippet and add it to the functions.php

2

Use a third-party plugin to register CPTs on your MainWP Dashboard site

Use one of these third-party plugins to register CPTs on your MainWP Dashboard site:
Read more about registering CPTs here! After registering a CPT on your MainWP Dashboard, the MainWP Icon will be appended next to the link in the WP Admin menu, and it means that the CPT is ready to be managed through the Dashboard.

Create a New CPT Post

1

Log in to your MainWP Dashboard

2

Go to MainWP Dashboard > Add-ons > Administrative > Custom Post Type

3

In the Custom Post Types box, you will be able to see all registered CPTs on your MainWP Dashboard

In the Custom Post Types box, you will be able to see all registered CPTs on your MainWP Dashboard
4

Locate the one you want to publish to your Child Site(s)

5

Click the Add New button

6

You will be sent to the Add New screen

7

Enter the CPT post title, content, and metadata

8

Select your Child Sites where you want to publish

Select your Child Sites where you want to publish
9

Click the Publish button

Recover a Blocked Publication

These steps apply to builds that show Publication recovery on the Custom Post Types page. If a publication’s result is uncertain, the extension blocks another publication for that Dashboard post and child site to avoid creating a duplicate. Open the Custom Post Types extension page and find Publication recovery. Each entry identifies the site, Dashboard post, and post type. Recovery requires permission to use the extension, access the selected site, and edit the Dashboard post. Only entries you can access appear. If there are no entries, the section says that no publications need recovery for sites and posts you can access.

The Post Exists on the Child Site

  1. Log in to the child site and find the post that belongs to the Dashboard post. Check its content and post type, then copy its WordPress post ID.
  2. Enter that ID in Child post ID for the matching recovery entry.
  3. Select I checked the Child site and this ID is the post for this Dashboard post.
  4. Click Adopt Child post.
The extension checks that the supplied ID exists on the child site and has the expected post type. Your confirmation establishes that it is the correct post. Adoption saves that child post ID as the Dashboard connection and removes the publication block. It does not publish or create a post.

The Post Is Absent from the Child Site

Check the child site directly before using this option. The recovery section does not know whether the post type is registered there. If its plugin is missing, restore the plugin before checking for the post. A recent-posts list alone cannot prove absence.
If the post exists on the child site, clearing the block can create a duplicate on the next publish. Clear it only after checking the child site and confirming that the post is absent.
  1. Select I checked the Child site and this post is not there. for the matching recovery entry.
  2. Click Clear publication block.
  3. Publish through the normal workflow when you are ready. Clearing the block does not start a publication.
Recovery records the operator, time, site/post pair, and supplied ID or absence confirmation in the extension log. It refuses conflicting mappings or a changed publication owner. If an entry reports an active owner or conflicting mapping, preserve the publication evidence for support. If a request expires, reload the page and check the entry again.

WordPress Abilities

The extension provides four abilities for integrations using the WordPress Abilities API. Use a Custom Post Types build that registers the mainwp-custom-post-types category and a MainWP Dashboard with Abilities API support. Check the registered schemas on your Dashboard before integrating. Site-specific requests require access to that exact MainWP site; requests for a Dashboard post also require permission to edit it. For paginated requests, page defaults to 1 and accepts 1-1000; per_page defaults to 50 and accepts 1-100. For publication, first request dry_run: true to inspect the local intent without contacting the child site. To execute, send the same site and Dashboard post IDs with confirm: true, omitting dry_run. Do not send both flags as true. Omitting both flags also executes a publication, so integrations should set their intended mode explicitly. A preview does not confirm that the child site is ready. A publication uses the Dashboard post’s status. Inspect the response’s status, content_status, partial_stage, and mapping_saved fields before treating it as complete. If reconciliation is required, check Publication recovery before retrying. Recovery is an operator action in the extension UI, not an additional ability.

Manage Custom Post Types

The Custom Post Types extension allows you to manage custom post type content on your websites. It will allow you to create new CPT posts on your managed sites remotely, edit, change the status for existing CPT posts, move them to Trash, or delete trashed posts. On the MainWP Dashboard > Sites > Content Operations > Manage Posts page, you can find existing CPT posts and manage them without logging into each child site separately.
1

Log in to your MainWP Dashboard

2

Go to MainWP Dashboard > Sites > Content Operations > Manage Posts

3

In the Search Options, set your search preference

In the Search Options, set your search preferenceStatus filters will allow you to narrow down the search to selected CPT post statuses only.
  • The keyword field will allow you to find CPT posts where an entered word has been used.
  • Date Range will narrow down the search to posts that have been published in the selected date range.
  • Select post type will allow you to target a specific post type
4

Select wanted Child Sites

5

Click the Show Posts button

Once the search is complete, a list of found posts will appear at the bottom of the page.

Edit a CPT Post

1

Log in to your MainWP Dashboard

2

Go to MainWP Dashboard > Sites > Content Operations > Manage Posts

3

In the Search Options, set your search preferences

In the Search Options, set your search preferences
4

Select wanted Child Sites

5

Click the Show Posts button

6

Once the list of found posts appears, locate the CPT Post you want to edit

7

Click the Edit action in the actions menu.

View a CPT Post

1

Log in to your MainWP Dashboard

2

Go to MainWP Dashboard > Sites > Content Operations > Manage Posts

3

In the Search Options, set your search preferences

In the Search Options, set your search preferences
4

Select wanted Child Sites

5

Click the Show Posts button

6

Once the list of found posts appears, locate the CPT Post you want to view

7

Click the View action in the actions menu

Delete a CPT Post

Move CPT Post(s) to Trash

1

Log in to your MainWP Dashboard

2

Go to MainWP Dashboard > Sites > Content Operations > Manage Posts

3

In the Search Options, set your search preferences

In the Search Options, set your search preferences
4

Select wanted Child Sites

5

Click the Show Posts button

6

Once the list of found posts appears, locate the CPT Post you want to move to Trash

7

Click the Trash action in the actions menu

If you need to delete multiple posts at once, before clicking the Trash action, select all posts you want to move to Trash and use the Bulk Actions menu to delete them.

Delete Permanently

Since WordPress allows you to permanently delete only posts that are currently in Trash, before you can permanently delete them, you need to send them to Trash. Once they are in Trash, the Delete action will be available.

Bulk Edit CPT posts

1

Log in to your MainWP Dashboard

2

Go to the desired custom post type list

3

Locate the post and click Edit

4

Make the appropriate changes and select wanted Child Sites

Make the appropriate changes and select wanted Child Sites Select Sites metabox for bulk editing custom post types
5

Click the Update button

Please note that you will not be able to Bulk Edit if the CPT post was not published through MainWP Dashboard.