Support

Account

Home Forums General Issues Get Field from Custom Post Typ Reply To: Get Field from Custom Post Typ

  • Here the ACF field group

    [
        {
            "key": "group_6188d209a6110",
            "title": "Events CPT Fields",
            "fields": [
                {
                    "key": "field_6188d22182ad0",
                    "label": "Event Date",
                    "name": "event_date",
                    "type": "date_picker",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "display_format": "F j, Y",
                    "return_format": "F j, Y",
                    "first_day": 1
                },
                {
                    "key": "field_6188d25582ad1",
                    "label": "Date and Time",
                    "name": "date_and_time",
                    "type": "date_time_picker",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "display_format": "F j, Y \\@ g:i a",
                    "return_format": "F j, Y \\@ g:i a",
                    "first_day": 1
                },
                {
                    "key": "field_6188d27582ad2",
                    "label": "Event Location",
                    "name": "event_location",
                    "type": "text",
                    "instructions": "Add the event location here",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "default_value": "",
                    "placeholder": "",
                    "prepend": "",
                    "append": "",
                    "maxlength": ""
                }
            ],
            "location": [
                [
                    {
                        "param": "post_type",
                        "operator": "==",
                        "value": "event"
                    }
                ]
            ],
            "menu_order": 0,
            "position": "normal",
            "style": "default",
            "label_placement": "top",
            "instruction_placement": "label",
            "hide_on_screen": "",
            "active": true,
            "description": ""
        }
    ]