{"id":722,"date":"2025-03-24T14:27:30","date_gmt":"2025-03-24T14:27:30","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-add-a-filter-to-the-advanced-search-filters\/"},"modified":"2025-04-03T15:23:51","modified_gmt":"2025-04-03T14:23:51","slug":"how-to-add-a-filter-to-the-advanced-search-filters","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/advanced-search\/how-to-add-a-filter-to-the-advanced-search-filters\/","title":{"rendered":"How to Add a Filter to the Advanced Search Filters?"},"content":{"rendered":"<p>Add filters for your custom fields to the GeoDirectory Advanced Search Filters. For each CPT you can have a different set of search filters.<\/p>\n<section class=\"alert alert-warning\">\n\t You need to have the <a target=\"_blank\" href=\"https:\/\/wpgeodirectory.com\/downloads\/advanced-search-add-on\/\">Advanced Search Filters<\/a> extension installed and activated to access these options.<\/section>\n<p>\n\t In general, you need to access <strong>CPT &gt; Settings &gt; Search (tab) <\/strong>section to add fields to Advanced Search form. For instance, this guide uses the <strong>Places <\/strong>CPT.&nbsp;<\/p>\n<h2>Adding Fields to Advanced Search Form<\/h2>\n<div>\n<p>\n\t\t<img width=\"920\" height=\"369\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-PxNahvAnkJ-1024x411.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-PxNahvAnkJ-1024x411.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-PxNahvAnkJ-300x120.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-PxNahvAnkJ-768x308.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-PxNahvAnkJ.png 1308w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/>\n\t<\/p>\n<\/div>\n<dl>\n<dt>\n\t1\n\t<\/dt>\n<dd>\n\tNavigate to <strong>CPT &gt; Settings &gt; Search (tab). <\/strong>You will find two columns &#8212; the <strong>left column <\/strong>has available fields, whereas the <strong>right column <\/strong>has active fields in the form.&nbsp;\n\t<\/dd>\n<section class=\"alert alert-info\">\n<p>\t\t You can find details about the Search tab on <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/advanced-search\/settings-overview-for-cpt-settings-search\/\">Settings Overview<\/a> page.<br \/>\n\t<\/section>\n<dt>\n\t2\n\t<\/dt>\n<dd>\n\tClick on the field that you wish to add. It will be added to the right column. You need to <strong>save each field<\/strong> before adding a new one.&nbsp;\n\t<\/dd>\n<\/dl>\n<section class=\"alert alert-info\">\n\t You can customize the properties of each field individually after it is added.&nbsp;<\/section>\n<p>\n\t Optionally, you may also drag and drop to arrange or re-order fields on the CPT listing and search results page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add filters for your custom fields to the GeoDirectory Advanced Search Filters. For each CPT you can have a different set of search filters. You need to have the Advanced Search Filters extension installed and activated to access these options. In general, you need to access CPT &gt; Settings &gt; Search (tab) section to add [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[541,542,543,544,545,546,547],"article\/categories":[213,400],"class_list":["post-722","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-geodirectory-addons","gd_place_tags-advanced-search-form","gd_place_tags-adding-fields-to-search-form","gd_place_tags-field-search","gd_place_tags-filters","gd_place_tags-search-filters","gd_place_tags-field-filter-bar","gd_placecategory-extensions-features","gd_placecategory-advanced-search"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=722"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/722\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=722"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=722"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}