{"id":2482,"date":"2026-10-20T08:34:08","date_gmt":"2026-10-20T07:34:08","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/customize-search-results-page\/"},"modified":"2026-10-20T08:38:59","modified_gmt":"2026-10-20T07:38:59","slug":"customize-search-results-page","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/customize-search-results-page\/","title":{"rendered":"How to customize the search results page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The GeoDirectory search results page is a normal WordPress page, so you change it by editing that page. There is no template file to edit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Edit the search page<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; General &gt; Pages and find the page set as Search Page.<\/li>\n\n\n\n<li>Edit that page. It holds the blocks or shortcodes that build the results, such as <code>&#091;gd_search&#093;<\/code>, <code>&#091;gd_loop_actions&#093;<\/code>, <code>&#091;gd_loop&#093;<\/code> and <code>&#091;gd_loop_paging&#093;<\/code>.<\/li>\n\n\n\n<li>Add your own content above or below them, or remove the parts you don&#8217;t need, then update the page.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Keep <code>&#091;gd_loop&#093;<\/code> on the page, as it outputs the results. Each listing in the results uses your Archive item template, set on the same settings screen, so edit that page to change how a single result looks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change the &#8220;no listings found&#8221; message<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When nothing matches, GeoDirectory shows &#8220;No listings were found matching your selection.&#8221; You can change the wording with a translation, as shown in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/translations\/how-to-change-just-one-language-string\/\">how to change just one language string<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To change the message only on the search page, or add your own HTML to it, use the <code>geodir_no_listings_found_message<\/code> filter:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter( &#039;geodir_no_listings_found_message&#039;, function( $message, $post_type ) {\n\tif ( geodir_is_page( &#039;search&#039; ) ) {\n\t\t$message = &#039;Nothing matched your search. Try fewer words or a wider area.&#039;;\n\t}\n\n\treturn $message;\n}, 10, 2 );<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Sidebar shows below the results<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The position of the sidebar comes from your theme&#8217;s page layout, not from GeoDirectory. Check the layout or page template options your theme offers for the search page. If your theme uses a page builder, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/getting-started\/using-a-builder-with-geodirectory\/\">using a builder with GeoDirectory<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For an overview of the GeoDirectory page templates, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/design-or-customize-geodirectory-pages\/\">design or customize GeoDirectory pages<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GeoDirectory search results page is a normal WordPress page, so you change it by editing that page. There is no template file to edit. Edit the search page Keep &#091;gd_loop&#093; on the page, as it outputs the results. Each listing in the results uses your Archive item template, set on the same settings screen, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2482","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2482","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=2482"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2482\/revisions"}],"predecessor-version":[{"id":2560,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2482\/revisions\/2560"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2482"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2482"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}