and the syntax is this:
{
"key": "field_975841be322c6",
"label": "Map",
"name": "map",
"type": "google_map",
"instructions": "",
"required": 0,
"center_lat": "",
"center_lng": "",
"zoom": "",
"height": "",
"conditional_logic": 0,
"wrapper": {
"width": "50%",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": "",
"show_column": 0,
"show_column_weight": 1000,
"allow_quickedit": 0,
"allow_bulkedit": 0
}
and i know it is somehow…not the right one.
]]>Please check this: https://stackoverflow.com/questions/1745052/add-new-data-into-php-json-string
Thanks
]]>Where do I find all the information regarding the syntax?
This could be a pretty loaded question and answer. There are a lot of resources available and a lot of articles, posts that deal with that. Unfortunately, these forums don’t go into that. You may find some information here: https://spring.io/understanding/JSON
Most of all I’m interested of the “google_map” field type, by the way.
And mostest of the most ?? – how do i pass the lang and long fields entered in the previous fields on the backend admin.
How is that being created? Is it from a plugin, a theme, a combination of the two?
]]>This could be a pretty loaded question and answer.
I thought the json for the wp-json is somehow restricted
for example, the field types are limited in number and those field types has their relevant keys, like for example these are the keys and values for the “google_maps”, but i bet there could be more which i don’t know:
"name": "map",
"type": "google_map",
"instructions": "",
"required": 0,
"center_lat": "field_975841be30ac6",
"center_lng": "field_975841be31ac6",
"zoom": "",
"height": "",
"conditional_logic": 0,
If I’m building the custom post type via JSON, i suppose there could be some kind of documentation for the available properties.
How is that being created? Is it from a plugin, a theme, a combination of the two?
\www\html\dev\wp-content\plugins\NAME\acf-json\group_5b57d126a97c3.json”
...
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "school"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": [
"permalink",
"the_content"
],
"active": 1,
"description": "School Post Type",
"modified": 1532482279
...
]]>