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

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 MainWP 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

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.