{"id":2600,"date":"2026-10-20T08:35:20","date_gmt":"2026-10-20T07:35:20","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/category-name-as-archive-page-title\/"},"modified":"2026-10-20T08:39:39","modified_gmt":"2026-10-20T07:39:39","slug":"category-name-as-archive-page-title","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/category-name-as-archive-page-title\/","title":{"rendered":"How to show the category name as the title of GeoDirectory archive pages"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory builds archive page titles from GeoDirectory &gt; Settings &gt; General &gt; Titles &amp; Meta. Use the <code>%%category%%<\/code> variable there and each category page shows its own category name.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; General &gt; Titles &amp; Meta.<\/li>\n\n\n\n<li>Under Archive pages, edit <em>Category Title<\/em>. The default is <code>All %%category%% %%in_location_single%%<\/code>, for example &#8220;All Restaurants&#8221;. Use just <code>%%category%%<\/code> if you only want the name.<\/li>\n\n\n\n<li>Set <em>Category Meta Title<\/em> too if you want the browser tab and search results to match.<\/li>\n\n\n\n<li>For search results, edit the Search page section. Its default title is <code>Search results for: %%search_term%% %%search_near%%<\/code>.<\/li>\n\n\n\n<li>Save the changes.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Click a variable in the settings to copy it. <code>%%in_category%%<\/code> gives &#8220;in Restaurants&#8221; instead of just the name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The title shows something else<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your settings are right but the page shows &#8220;Archives&#8221;, the template page title or the name of the first listing, your theme is printing its own title without the standard WordPress functions GeoDirectory hooks into. To fix it:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Confirm it is the theme by switching to a default WordPress theme for a moment.<\/li>\n\n\n\n<li>Hide the theme&#8217;s title on GeoDirectory pages, if the theme has an option for it.<\/li>\n\n\n\n<li>Edit the page set as <em>Archive page<\/em> at GeoDirectory &gt; Settings &gt; General &gt; Pages and add the GD &gt; Page Title block at the top. It prints the title from your Titles &amp; Meta settings.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you use Yoast SEO or Rank Math, GeoDirectory&#8217;s variables also work in their title templates. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-use-geodirectory-snippet-variables-in-yoast\/\">How to Use GeoDirectory Snippet Variables in Yoast?<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory builds archive page titles from GeoDirectory &gt; Settings &gt; General &gt; Titles &amp; Meta. Use the %%category%% variable there and each category page shows its own category name. Click a variable in the settings to copy it. %%in_category%% gives &#8220;in Restaurants&#8221; instead of just the name. The title shows something else If your settings [&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-2600","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\/2600","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=2600"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2600\/revisions"}],"predecessor-version":[{"id":2783,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2600\/revisions\/2783"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2600"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2600"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}