1. Home
  2. Docs
  3. Website Integration
  4. Configure WordPress
  5. Add advanced custom fields

Add advanced custom fields

After building custom post types for Shows, Artists, and Venues, import ACF groups from json file below.


Screenshots:

1) Go to Custom Fields -> Tools
2) Choose acf-import-tecture.json file and click Import File
3) Success message. Custom fields are now available in the custom post types (Shows, Artists, Venues)

File content:

[
    {
        "key": "group_5b5b45f2c31f3",
        "title": "Artists",
        "fields": [
            {
                "key": "field_5b5b45fb49e08",
                "label": "Website",
                "name": "website",
                "type": "link",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "return_format": "url"
            },
            {
                "key": "field_6226846d56fea",
                "label": "Facebook URL",
                "name": "facebook_url",
                "type": "text",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_6226847756feb",
                "label": "Instagram Handle",
                "name": "instagram_handle",
                "type": "text",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            }
        ],
        "location": [
            [
                {
                    "param": "post_type",
                    "operator": "==",
                    "value": "artists"
                }
            ]
        ],
        "menu_order": 0,
        "position": "acf_after_title",
        "style": "default",
        "label_placement": "top",
        "instruction_placement": "label",
        "hide_on_screen": "",
        "active": true,
        "description": "",
        "show_in_rest": 0
    },
    {
        "key": "group_5b5b3ed7c0008",
        "title": "Shows",
        "fields": [
            {
                "key": "field_5b5b3ee32f337",
                "label": "Headliner",
                "name": "headliner",
                "type": "relationship",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "post_type": [
                    "artists"
                ],
                "taxonomy": [],
                "filters": [
                    "search"
                ],
                "elements": "",
                "min": "",
                "max": "",
                "return_format": "object"
            },
            {
                "key": "field_60219196dfc56",
                "label": "Additional Artists",
                "name": "additional_artists",
                "type": "relationship",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "post_type": [
                    "artists"
                ],
                "taxonomy": "",
                "filters": [
                    "search"
                ],
                "elements": "",
                "min": "",
                "max": "",
                "return_format": "object"
            },
            {
                "key": "field_60abf51f9697f",
                "label": "Primary Band Append",
                "name": "primary_band_append",
                "type": "text",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_5b5b40c8ed90f",
                "label": "Show Image",
                "name": "show_image",
                "type": "image",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "return_format": "array",
                "preview_size": "thumbnail",
                "library": "all",
                "min_width": "",
                "min_height": "",
                "min_size": "",
                "max_width": "",
                "max_height": "",
                "max_size": "",
                "mime_types": ""
            },
            {
                "key": "field_601ac6d437f41",
                "label": "Venue",
                "name": "venue",
                "type": "post_object",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "post_type": [
                    "venues"
                ],
                "taxonomy": "",
                "allow_null": 0,
                "multiple": 0,
                "return_format": "object",
                "ui": 1
            },
            {
                "key": "field_5b5b3f3a2f338",
                "label": "Date and Time of Show",
                "name": "date_and_time_of_show",
                "type": "date_time_picker",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "display_format": "m\/d\/Y g:i a",
                "return_format": "m\/d\/Y g:i a",
                "first_day": 0
            },
            {
                "key": "field_5b5b4f57cc391",
                "label": "Door Time",
                "name": "door_time",
                "type": "time_picker",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "display_format": "g:i a",
                "return_format": "g:i a"
            },
            {
                "key": "field_60abf53d96980",
                "label": "Custom Buy Now Button",
                "name": "custom_buy_now_button",
                "type": "text",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_5b5b3fd12f33a",
                "label": "Genre",
                "name": "genre",
                "type": "text",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_622677d8d80a9",
                "label": "Video",
                "name": "video",
                "type": "url",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": ""
            },
            {
                "key": "field_5b5b422fed911",
                "label": "Show Description",
                "name": "show_description",
                "type": "wysiwyg",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "tabs": "all",
                "toolbar": "full",
                "media_upload": 1,
                "delay": 0
            },
            {
                "key": "field_6024c8c224077",
                "label": "External Ticket Button URL",
                "name": "external_ticket_button_url",
                "type": "url",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": ""
            },
            {
                "key": "field_6024c8ac24076",
                "label": "External Ticket Button Text",
                "name": "external_ticket_button_text",
                "type": "text",
                "instructions": "If you want a button in the event detail page to go to an external site",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_620d42b0bfde9",
                "label": "All Links External",
                "name": "all_links_external",
                "type": "true_false",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "message": "",
                "default_value": 0,
                "ui": 0,
                "ui_on_text": "",
                "ui_off_text": ""
            },
            {
                "key": "field_60493acff5a9f",
                "label": "You May Also Like",
                "name": "you_may_also_like",
                "type": "relationship",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "post_type": [
                    "shows"
                ],
                "taxonomy": "",
                "filters": [
                    "search"
                ],
                "elements": "",
                "min": "",
                "max": "",
                "return_format": "object"
            },
            {
                "key": "field_622677982f824",
                "label": "Special Notice",
                "name": "special_notice",
                "type": "text",
                "instructions": "Add notice to show card.",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            }
        ],
        "location": [
            [
                {
                    "param": "post_type",
                    "operator": "==",
                    "value": "shows"
                }
            ]
        ],
        "menu_order": 0,
        "position": "acf_after_title",
        "style": "default",
        "label_placement": "top",
        "instruction_placement": "label",
        "hide_on_screen": "",
        "active": true,
        "description": "",
        "show_in_rest": 0
    },
    {
        "key": "group_601ac62542e12",
        "title": "Venues",
        "fields": [
            {
                "key": "field_601ac63f95569",
                "label": "Address 1",
                "name": "address_1",
                "type": "text",
                "instructions": "ex: 2424 N Lincoln Ave",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_601ac6519556a",
                "label": "Address 2",
                "name": "address_2",
                "type": "text",
                "instructions": "ex: Chicago, IL 60614",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_601ac65e9556b",
                "label": "Phone Number",
                "name": "phone_number",
                "type": "text",
                "instructions": "ex: (123) 123-1234",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "default_value": "",
                "placeholder": "",
                "prepend": "",
                "append": "",
                "maxlength": ""
            },
            {
                "key": "field_62277aa670b15",
                "label": "Venue SVG",
                "name": "venue_svg",
                "type": "file",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "return_format": "array",
                "library": "all",
                "min_size": "",
                "max_size": "",
                "mime_types": ""
            },
            {
                "key": "field_62277a2ef52d7",
                "label": "Venue Image",
                "name": "venue_image",
                "type": "file",
                "instructions": "This image will get used in the order email.",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "return_format": "array",
                "library": "all",
                "min_size": "",
                "max_size": "",
                "mime_types": ""
            },
            {
                "key": "field_62277a46f52d8",
                "label": "Google Maps Image",
                "name": "google_maps_image",
                "type": "file",
                "instructions": "This image will get displayed in the order email.",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "return_format": "array",
                "library": "all",
                "min_size": "",
                "max_size": "",
                "mime_types": ""
            }
        ],
        "location": [
            [
                {
                    "param": "post_type",
                    "operator": "==",
                    "value": "venues"
                }
            ]
        ],
        "menu_order": 0,
        "position": "normal",
        "style": "default",
        "label_placement": "top",
        "instruction_placement": "label",
        "hide_on_screen": "",
        "active": true,
        "description": "",
        "show_in_rest": 0
    }
]

How can we help?