{"id":2504,"date":"2026-10-20T08:34:09","date_gmt":"2026-10-20T07:34:09","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/delete-places-post-type\/"},"modified":"2026-10-20T08:39:20","modified_gmt":"2026-10-20T07:39:20","slug":"delete-places-post-type","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/custom-post-types-extension\/delete-places-post-type\/","title":{"rendered":"Can I delete the Places post type in GeoDirectory?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">No. Places is GeoDirectory&#8217;s built-in post type and can&#8217;t be deleted, even with the Custom Post Types add-on, which can only delete post types you created. You can rename Places to anything you like and hide it from visitors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rename Places<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Go to Places &gt; Settings &gt; General and change the name, singular name, slug and labels. Many directories use the built-in post type as their main one under a different name. Only the internal key, <code>gd_place<\/code>, stays the same, and visitors never see it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hide Places from the search bar<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The post type dropdown in the search bar only lists post types that have listings. If you never add a place, Places doesn&#8217;t appear there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To hide it even when it has listings, add this snippet to your child theme&#8217;s functions.php or a snippets plugin:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter( &#039;geodir_search_form_post_types&#039;, &#039;my_gd_hide_places_in_search&#039; );\nfunction my_gd_hide_places_in_search( $post_types ) {\n\tif ( isset( $post_types-&gt;gd_place ) ) {\n\t\tunset( $post_types-&gt;gd_place );\n\t}\n\n\treturn $post_types;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For a single search bar, you can instead set its Default Post Type and tick Hide Post Type Selector in the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-search\/\">GD &gt; Search<\/a> settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other places to tidy up<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tick Disable frontend add at Places &gt; Settings &gt; General so nobody can submit new places.<\/li>\n\n\n\n<li>Remove Places from your menus.<\/li>\n\n\n\n<li>Check GD &gt; Listings and GD &gt; Map blocks that point at Places and change their post type.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>No. Places is GeoDirectory&#8217;s built-in post type and can&#8217;t be deleted, even with the Custom Post Types add-on, which can only delete post types you created. You can rename Places to anything you like and hide it from visitors. Rename Places Go to Places &gt; Settings &gt; General and change the name, singular name, slug [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,423],"class_list":["post-2504","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-custom-post-types-extension"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2504","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"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2504"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2504\/revisions"}],"predecessor-version":[{"id":2582,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2504\/revisions\/2582"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2504"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2504"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}