Home › Forums › Add-ons › Repeater Field › Pulling in single data › Reply To: Pulling in single data
I would have done this myself in Custom Post Types but for some reason, the developer built this in Repeater fields and I have no time to re-build it. If push comes to shove, and the only way is in CPT, so be it.
Here is said JSON file:
[
{
“key”: “group_5829bc002480c”,
“title”: “Presenters”,
“fields”: [
{
“key”: “field_582a1ae64433e”,
“label”: “Presenter List”,
“name”: “presenter_list”,
“type”: “repeater”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“collapsed”: “”,
“min”: “”,
“max”: “”,
“layout”: “table”,
“button_label”: “Add Presenter”,
“sub_fields”: [
{
“key”: “field_582a1c288dfe6”,
“label”: “Presenter Image”,
“name”: “presenter_image”,
“type”: “image”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“return_format”: “array”,
“preview_size”: “medium”,
“library”: “all”,
“min_width”: “”,
“min_height”: “”,
“min_size”: “”,
“max_width”: “”,
“max_height”: “”,
“max_size”: “”,
“mime_types”: “”
},
{
“key”: “field_582a1c3b8dfe7”,
“label”: “Presenter Name”,
“name”: “presenter_name”,
“type”: “text”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“default_value”: “”,
“placeholder”: “”,
“prepend”: “”,
“append”: “”,
“maxlength”: “”,
“readonly”: 0,
“disabled”: 0
},
{
“key”: “field_582a1c98459f8”,
“label”: “Presenter Bio”,
“name”: “presenter_bio”,
“type”: “textarea”,
“instructions”: “”,
“required”: 0,
“conditional_logic”: 0,
“wrapper”: {
“width”: “”,
“class”: “”,
“id”: “”
},
“default_value”: “”,
“placeholder”: “”,
“maxlength”: “”,
“rows”: “”,
“new_lines”: “wpautop”,
“readonly”: 0,
“disabled”: 0
}
]
}
],
“location”: [
[
{
“param”: “options_page”,
“operator”: “==”,
“value”: “presenters”
}
]
],
“menu_order”: 0,
“position”: “normal”,
“style”: “default”,
“label_placement”: “top”,
“instruction_placement”: “label”,
“hide_on_screen”: “”,
“active”: 1,
“description”: “”
}
]
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.