Skip to content
Documentation Menu
WP connect > Notion WP Sync Documentation > Create a Custom Post Type with Notion WP Sync

Create a Custom Post Type with Notion WP Sync

WordPress offers the flexibility of Custom Post Types to enrich content beyond standard posts and pages. Think of CPT as specialized content categories like events or portfolios. While they are similar to regular posts, they come with their unique features and labels. With the Notion WP Sync plugin, you can easily create these CPTs on-the-fly. Let’s explore Notion WP Sync features for CPT creation.

Features of Notion WP Sync Plugin for creating CPT

  • On-the-fly CPT creation for imported content.
  • Mapping capabilities for WordPress fields such as Title, Content, Slug, and Custom Field.
  • Enables the creation of your custom fields.
  • Compatible with ACF in Notion WP Sync Pro+

Notion settings of your connection

  1. Create a new connection
  2. Fill your Notion access token in the “Access Token” field.
  3. Select your Notion Base, Table, and view linked to your access token

Setting-up your Import

  1. In the “Import as” field select Page or Post
  2. In the “Post Type” drop-down select “Create new post type”
  3. Enter a name for your Custom Post Type
  4. Enter a Url Prefix which will be used in the url structure, like “http://yourwebsite.com/prefix/post-name”
  5. Select the default Post status in the drop-down
  6. Select the default Post author in the drop-down

Field Mapping

in the ‘Field Mapping’ section:

  1. Choose a Notion Field: In the ‘Notion Field’ side, select your Notion fields from the dropdown menu.
  2. Select a WordPress Field: In the ‘Import As’ dropdown menu, select the Basic WordPress fields such as the Title, Slug, Category, Featured Image, taxonomy.
    • Add Custom Fields (Optional): If you want to incorporate unique fields, select “Custom Field” and enter a custom field name to map it with your Notion field

Import and sync

Once all your connection settings are done:

  1. Click on the “Publish” button in the top-right of the connection.
  2. Click on the “Sync Now” button in the “Actions” section of your connection to import and sync all your Notion base content into your newly created Custom Post Type.

Reviewing Imported Post

  1. In the WordPress dashboard, select your newly created Custom Post Type from the side menu.
  2. The list displays all posts imported from your Notion base.

Reviewing Custom fields

  1. Click on an imported post.
  2. To enhance your experience, you can download the free “Post Meta Inspector” plugin for WordPress. With this plugin, you can view your custom fields inside of your post.

⚠️ Important Considerations: If you choose to modify the configuration or stop using the CPT made via the Notion WP Sync plugin, the on-the-fly created CPT will cease to exist in WordPress. Consequently, the associated imported content will become inaccessible.