Home › Forums › General Issues › Groups prepend empty key/value pair
I’ve noticed acf adds an empty key/value pair on groups as the first record.
As an example, here’s my group of groups for cities and regions of a particular country. The JSON is at the bottom.
This dump: var_dump(get_field( 'category_info', $custom_fields_selector )['featured_items']['cities']);
(which should have a 5 records)
Will return this:
array (size=6)
'' => null // Where does this come from?
'object_1' =>
array (size=4)
'select_object_type' => string 'category' (length=8)
'taxonomy' => int 112
'article' => boolean false
'article_anchor' => string '' (length=0)
'object_2' =>
array (size=4)
'select_object_type' => string 'category' (length=8)
'taxonomy' => int 92
'article' => boolean false
'article_anchor' => string '' (length=0)
'object_3' =>
array (size=4)
'select_object_type' => string 'category' (length=8)
'taxonomy' => int 43
'article' => boolean false
'article_anchor' => string '' (length=0)
'object_4' =>
array (size=4)
'select_object_type' => string 'post' (length=4)
'taxonomy' => boolean false
'article' => int 8491
'article_anchor' => string 'Costa Blanca' (length=12)
'object_5' =>
array (size=4)
'select_object_type' => string 'post' (length=4)
'taxonomy' => boolean false
'article' => int 6975
'article_anchor' => string 'Navarra' (length=7)
I have tried re-saving the category page, change values and creating new groups. All of which result in the same behaviour.
When I had this last week I thought it was because I named some fields as single digits (get_field( 'category_info', $custom_fields_selector )['featured_items']['cities']['1']['url']
for example), but after starting a new WP installation and database, the issue persists.
JSON:
{
"key": "field_6457b347dec09",
"label": "Uitgelichte regio's en steden",
"name": "featured_items",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b3ccdec0b",
"label": "Uitgelichte regio's",
"name": "regions",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_645d1d36b4c65",
"label": "Regio 1",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b437dec0c",
"label": "Regio 1",
"name": "object_1",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b453dec0d",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b4aadec0e",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b528dec0f",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b562dec10",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d1d49b4c66",
"label": "Regio 2",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b59cdec11",
"label": "Regio 2",
"name": "object_2",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b59cdec15",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b59cdec16",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b59cdec17",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b59cdec18",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d1d4ab4c67",
"label": "Regio 3",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b59ddec19",
"label": "Regio 3",
"name": "object_3",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b59ddec1d",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b59ddec1e",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b59ddec1f",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b59ddec20",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d1d4bb4c68",
"label": "Regio 4",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5a0dec21",
"label": "Regio 4",
"name": "object_4",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5a0dec25",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5a0dec26",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5a0dec27",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5a0dec28",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d1d4cb4c69",
"label": "Regio 5",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5a1dec29",
"label": "Regio 5",
"name": "object_5",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5a1dec2d",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5a1dec2e",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5a1dec2f",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5a1dec30",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
}
]
},
{
"key": "field_6457b5c1dec31",
"label": "Uitgelichte steden",
"name": "cities",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_645d1d97c410f",
"label": "Stad 1",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5c1dec41",
"label": "Stad 1",
"name": "object_1",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5c1dec42",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5c1dec43",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5c1dec44",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5c2dec45",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d2e7dc4110",
"label": "Stad 2",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5c2dec46",
"label": "Stad 2",
"name": "object_2",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5c2dec47",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5c2dec48",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5c2dec49",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5c2dec4a",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d2e7fc4111",
"label": "Stad 3",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5c2dec4b",
"label": "Stad 3",
"name": "object_3",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5c2dec4c",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5c2dec4d",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5c2dec4e",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5c2dec4f",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d2e81c4112",
"label": "Stad 4",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5c2dec50",
"label": "Stad 4",
"name": "object_4",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5c2dec51",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5c2dec52",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5c2dec53",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5c2dec54",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
},
{
"key": "field_645d2e82c4113",
"label": "Stad 5",
"name": "",
"aria-label": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_6457b5c2dec55",
"label": "Stad 5",
"name": "object_5",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_6457b5c2dec56",
"label": "Categorie of artikel",
"name": "select_object_type",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"category": "Categoriepagina",
"post": "Artikel"
},
"default_value": false,
"return_format": "value",
"multiple": 0,
"allow_null": 1,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_6457b5c2dec57",
"label": "Categorie",
"name": "taxonomy",
"aria-label": "",
"type": "taxonomy",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"taxonomy": "category",
"add_term": 0,
"save_terms": 0,
"load_terms": 0,
"return_format": "id",
"field_type": "select",
"allow_null": 1,
"multiple": 0
},
{
"key": "field_6457b5c2dec58",
"label": "Artikel",
"name": "article",
"aria-label": "",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"post"
],
"post_status": [
"publish"
],
"taxonomy": "",
"return_format": "id",
"multiple": 0,
"allow_null": 1,
"ui": 1
},
{
"key": "field_6457b5c2dec59",
"label": "Naam",
"name": "article_anchor",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
]
}
]
}
]
}
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5
— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.