WordPress Integration - Step 2: Template Mappings

Set up a template mapping to push and pull content from Content Workflow to WordPress and back.

Bruno Wilson avatar
Written by Bruno Wilson
Updated over a week ago

Introduction to Template Mappings

Template Mappings enable you to push and pull content using the WordPress Integration. A Template Mapping defines how the fields in your Content Workflow Templates should import into WordPress, and that mapping is then used to push and pull content from Content Workflow to WordPress.

Tip: You will not be able to push or pull content between Content Workflow and WordPress until a Template Mapping is created and at least one field has been mapped.

Each Content Workflow Template field type is able to be mapped to a large number of WordPress fields. These include; title, content, excerpt, post status, post author, default and custom taxonomies, custom post types, custom fields, featured image, content images, WordPress SEO, etc.

The Template Mapping also allows you to define the Content Workflow Item status once the item has been imported. So, for example, you could set the Content Workflow status to "Published" once you have pulled that content into WordPress.

Setting up a Template Mapping

  1. Click 'New Mapping' in the Content Workflow menu.

2. Select account, project and template to map.

When creating a new mapping, you will be required to first select an account and project, and finally the template. While selecting the template, you will be provided with a sample of Items within that template, as well as the template's description.

3. Select Post Type and map fields.

Once you've selected a template, you're ready to create your first Template Mapping. To get started, select your default Post Type for the mapping. You will not be able to save the mapping until the post-type is selected and at least one field has been mapped. Once a post-type is selected, you can begin mapping all your template fields.

Then head to the Content tab, located to the left of the mapping tab to map the fields. You will only see the field types you can map to in the mapping options. Here are the mapping options for each Content Workflow field:

4. Select Content Workflow Template tabs.

You'll find the tabs from the Content Workflow Template here. Select a tab to start mapping the Template fields.

Now you're able to press 'Save Mapping', and your Template Mapping is complete 🎉
The next step is to migrate your content from Content Workflow to WordPress using this Template Mapping.

You can set up additional actions as part of the mapping (see 5. below).

5. Map Content Workflow status to WordPress status (optional).

Here you'll be able to map each individual Content Workflow status to a WordPress status, and optionally, change the Content Workflow status when your Items are imported to WordPress.

Tip: You can map multiple Content Workflow text fields to a single WP field. However, to be able to push your WordPress content back to Content Workflow, fields need to be mapped one-to-one.

To migrate your content, check out Step 3: Migrating, updating content and importing content from WordPress to see how that's done.

Other articles on the WordPress integration:

Did this answer your question?