{"id":782,"date":"2019-05-13T13:03:55","date_gmt":"2019-05-13T13:03:55","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=782"},"modified":"2019-05-13T13:03:55","modified_gmt":"2019-05-13T13:03:55","slug":"fields","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/api\/fields\/","title":{"rendered":"Fields"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#endpoint\">Endpoints<\/a><br \/>\n<\/span><\/p>\n<h3><a href=\"#intro\">Introduction<\/a><\/h3>\n<p>REST API End Points for managing and checking GD Fields.<\/p>\n<h3><a href=\"#endpoint\">EndPoints<\/a><\/h3>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n<p><label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/fields<\/h6>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n[\r\n    {\r\n        \"id\": \"23\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"post_category\",\r\n        \"title\": \"Category\",\r\n        \"admin_title\": \"Category\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"VARCHAR\",\r\n        \"field_type\": \"categories\",\r\n        \"field_type_key\": \"categories\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": true,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\"\r\n        ],\r\n        \"order\": 4,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": true,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": {\r\n            \"cat_display_type\": \"select\"\r\n        },\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/23\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"24\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"address\",\r\n        \"title\": \"Address\",\r\n        \"admin_title\": \"Address\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"VARCHAR\",\r\n        \"field_type\": \"address\",\r\n        \"field_type_key\": \"address\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": true,\r\n        \"required_msg\": \"Address fields are required\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\",\r\n            \"mapbubble\"\r\n        ],\r\n        \"order\": 7,\r\n        \"icon\": \"fas fa-map-marker-alt\",\r\n        \"class\": \"\",\r\n        \"default\": true,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": {\r\n            \"show_city\": 1,\r\n            \"city_lable\": \"City\",\r\n            \"show_region\": 1,\r\n            \"region_lable\": \"Region\",\r\n            \"show_country\": 1,\r\n            \"country_lable\": \"Country\",\r\n            \"show_zip\": 1,\r\n            \"zip_lable\": \"Zip\/Post Code\",\r\n            \"show_map\": 1,\r\n            \"map_lable\": \"Set Address On Map\",\r\n            \"show_mapview\": 1,\r\n            \"mapview_lable\": \"Select Map View\",\r\n            \"show_mapzoom\": 1,\r\n            \"mapzoom_lable\": \"hidden\",\r\n            \"show_latlng\": 1\r\n        },\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/24\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"25\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"timing\",\r\n        \"title\": \"Time\",\r\n        \"admin_title\": \"Time\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"VARCHAR\",\r\n        \"field_type\": \"text\",\r\n        \"field_type_key\": \"text\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\",\r\n            \"mapbubble\"\r\n        ],\r\n        \"order\": 24,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/25\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"26\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"phone\",\r\n        \"title\": \"Phone\",\r\n        \"admin_title\": \"Phone\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"VARCHAR\",\r\n        \"field_type\": \"phone\",\r\n        \"field_type_key\": \"phone\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\",\r\n            \"mapbubble\"\r\n        ],\r\n        \"order\": 25,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/26\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"27\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"email\",\r\n        \"title\": \"Email\",\r\n        \"admin_title\": \"Email\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"VARCHAR\",\r\n        \"field_type\": \"email\",\r\n        \"field_type_key\": \"email\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\"\r\n        ],\r\n        \"order\": 26,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/27\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"28\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"website\",\r\n        \"title\": \"Website\",\r\n        \"admin_title\": \"Website\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"TEXT\",\r\n        \"field_type\": \"url\",\r\n        \"field_type_key\": \"url\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\"\r\n        ],\r\n        \"order\": 27,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/28\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"29\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"twitter\",\r\n        \"title\": \"Twitter\",\r\n        \"admin_title\": \"Twitter\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"TEXT\",\r\n        \"field_type\": \"url\",\r\n        \"field_type_key\": \"url\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\"\r\n        ],\r\n        \"order\": 28,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/29\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"30\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"facebook\",\r\n        \"title\": \"Facebook\",\r\n        \"admin_title\": \"Facebook\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"TEXT\",\r\n        \"field_type\": \"url\",\r\n        \"field_type_key\": \"url\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"detail\"\r\n        ],\r\n        \"order\": 29,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/30\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"31\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"video\",\r\n        \"title\": \"Video\",\r\n        \"admin_title\": \"Video\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"TEXT\",\r\n        \"field_type\": \"textarea\",\r\n        \"field_type_key\": \"textarea\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"owntab\"\r\n        ],\r\n        \"order\": 30,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/31\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    {\r\n        \"id\": \"32\",\r\n        \"type\": \"gd_place\",\r\n        \"name\": \"special_offers\",\r\n        \"title\": \"Special Offers\",\r\n        \"admin_title\": \"Special Offers\",\r\n        \"description\": \"\",\r\n        \"data_type\": \"TEXT\",\r\n        \"field_type\": \"textarea\",\r\n        \"field_type_key\": \"textarea\",\r\n        \"decimal_point\": \"\",\r\n        \"default_value\": \"\",\r\n        \"placeholder\": \"\",\r\n        \"required\": false,\r\n        \"required_msg\": \"\",\r\n        \"validation_pattern\": \"\",\r\n        \"validation_msg\": \"\",\r\n        \"option_values\": \"\",\r\n        \"location\": [\r\n            \"owntab\"\r\n        ],\r\n        \"order\": 31,\r\n        \"icon\": \"\",\r\n        \"class\": \"\",\r\n        \"default\": false,\r\n        \"private\": false,\r\n        \"status\": 1,\r\n        \"packages\": \"\",\r\n        \"tab_parent\": \"0\",\r\n        \"tab_level\": 0,\r\n        \"sorting\": false,\r\n        \"searching\": false,\r\n        \"extra_fields\": \"\",\r\n        \"_links\": {\r\n            \"self\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/32\"\r\n                }\r\n            ],\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n]\r\n<\/pre>\n<h3><a href=\"#endpoint\">EndPoints<\/a><\/h3>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n<p><label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/fields\/<id><\/h6>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n{\r\n    \"id\": \"23\",\r\n    \"type\": \"gd_place\",\r\n    \"name\": \"post_category\",\r\n    \"title\": \"Category\",\r\n    \"admin_title\": \"Category\",\r\n    \"description\": \"\",\r\n    \"data_type\": \"VARCHAR\",\r\n    \"field_type\": \"categories\",\r\n    \"field_type_key\": \"categories\",\r\n    \"decimal_point\": \"\",\r\n    \"default_value\": \"\",\r\n    \"placeholder\": \"\",\r\n    \"required\": true,\r\n    \"required_msg\": \"\",\r\n    \"validation_pattern\": \"\",\r\n    \"validation_msg\": \"\",\r\n    \"option_values\": \"\",\r\n    \"location\": [\r\n        \"detail\"\r\n    ],\r\n    \"order\": 4,\r\n    \"icon\": \"\",\r\n    \"class\": \"\",\r\n    \"default\": true,\r\n    \"private\": false,\r\n    \"status\": 1,\r\n    \"packages\": \"\",\r\n    \"tab_parent\": \"0\",\r\n    \"tab_level\": 0,\r\n    \"sorting\": false,\r\n    \"searching\": false,\r\n    \"extra_fields\": {\r\n        \"cat_display_type\": \"select\"\r\n    },\r\n    \"_links\": {\r\n        \"self\": [\r\n            {\r\n                \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\/23\"\r\n            }\r\n        ],\r\n        \"collection\": [\r\n            {\r\n                \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/fields\"\r\n            }\r\n        ]\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"featured_media":0,"parent":750,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/782"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/782\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/750"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}