Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideRecipesAPI ReferenceChangelog
Dev GuideAPI ReferenceChangelogUser GuideDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Post Object field mapping

Map WordPress ACF Post Object fields to WordPress taxonomy in Optimizely CMP for seamless custom post type integration.

Optimizely Content Marketing Platform (CMP) supports mapping the ACF Post Object field to the structured content Wordpress Taxonomy type field.

📘

Note

You must select which Channel you want to link with the Post Object Field.

JSON example

{
  "core": {
    "key": "acf_post_object_field",
    "name": "ACF Post Object Field",
    "is_list": false,
    "is_required": false,
    "need_internationalization": false,
    "min_list_length": 1,
    "max_list_length": -1,
    "field_type": "json",
    "source_id": null,
    "source_metadata": "{\"is_custom_post_type_field\": true}",  // It is important to identify source_metadata as custom field
    "order_index": 0,
    "help_text": null,
    "editor_metadata": {
      "editorGuid": "<remote_field_editor_guid>",  // You need to get the editor GUID from UI
      "editorConfig": {
        "taxonomy": "post_type:<custom_post_type>",
        "isMultiSelect": null,
        "integrationInstanceId": "<integration_guid>"  // You need to get the editor GUID from UI. Note, This is not the channel GUID
      }
    }
  },
  "base_type": "json",
  "default_values": null
}