{"id":923,"date":"2025-03-24T14:28:02","date_gmt":"2025-03-24T14:28:02","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-use-geodirectory-snippet-variables-in-yoast\/"},"modified":"2025-04-03T15:24:23","modified_gmt":"2025-04-03T14:24:23","slug":"how-to-use-geodirectory-snippet-variables-in-yoast","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-use-geodirectory-snippet-variables-in-yoast\/","title":{"rendered":"How to Use GeoDirectory Snippet Variables in Yoast?"},"content":{"rendered":"<p>\n\tYou can use Yoast to manage meta for GeoDirectory listings and insert GeoDirectory custom field data and GeoDirectory variables into Yoast Settings.<\/p>\n<section class=\"alert alert-danger\">\n\t By default, GeoDirectory can handle its own meta data for pages and CPTs using the GeoDirectory&nbsp; <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/explore-settings\/settings-overview-for-general-titles-meta\/\" target=\"_blank\">Titles &amp; Metas settings<\/a>.&nbsp;<\/section>\n<h2>Use Yoast with GeoDirectory<\/h2>\n<div>\n\tIf you have Yoast SEO installed, Yoast will automatically&nbsp;take over meta data from GeoDirectory.&nbsp;\n<\/div>\n<div>\n\tGeoDirectory will still create Titles for GD Pages though, so you will continue to use the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/explore-settings\/settings-overview-for-general-titles-meta\/\">Titles &amp; Metas settings<\/a> but only for titles.&nbsp;You can know that is working because there will be a new option in the GD Titles and Metas settings to disable Yoast overwrites for GD meta.\n<\/div>\n<div>\n<p>\n\t\t<img width=\"920\" height=\"316\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ExmZ8QVT8c-1024x352.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ExmZ8QVT8c-1024x352.png 1024w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ExmZ8QVT8c-300x103.png 300w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ExmZ8QVT8c-768x264.png 768w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-ExmZ8QVT8c.png 1051w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/>\n\t<\/p>\n<\/div>\n<h2 id=\"fields\">Custom Fields<\/h2>\n<p>\n\tYou can use GeoDirectory Custom Fields in the Yoast search appearance settings for the Single page templates.<\/p>\n<div>\n<section class=\"alert alert-info\">\n<p>\t\t To render GeoDirectory custom fields&nbsp;the&nbsp;_gd__&nbsp;prefix is necessary.<\/p>\n<p>\t\tExamples:&nbsp; <strong>%%_gd__timing%%<\/strong>&nbsp;or&nbsp;<strong>%%_gd__website%%<\/strong><br \/>\n\t<\/section>\n<\/div>\n<h2 id=\"variable\">Variables<\/h2>\n<p>\n\tYou can use GeoDirectory variables in Yoast search appearance settings.&nbsp;<\/p>\n<p>\n\tGeoDirectory variables, the complete list, can be found in your site on the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/explore-settings\/settings-overview-for-general-titles-meta\/\">Titles &amp; Metas settings<\/a> page.<\/p>\n<div>\n<section class=\"alert alert-info\">\n<p>\t\tTo render GeoDirectory variable in Yoast meta, add an additional underscore _ prefix for the variable.<\/p>\n<p>\t\tExamples:&nbsp; <strong>%%_in_location%%<\/strong>&nbsp;or&nbsp;<strong>%%_in_location_country%% or&nbsp;<\/strong><strong>%%_gd_category%%<\/strong><br \/>\n\t<\/section>\n<\/div>\n<h2>Yoast SEO Global Settings<\/h2>\n<div>\n  To manage the meta data for GeoDirectory content types using Yoast SEO plugin, you will need to go to the Yoast settings section, located at:&nbsp; &nbsp;\n<\/div>\n<div> <strong>SEO &gt; Search Appearance &gt; Content Types<\/strong> <\/div>\n<div>\n\tEach GeoDirectory Custom Post Type will be listed with a meta box allowing you to fill in settings.\n<\/div>\n<p>\n\t<img width=\"556\" height=\"527\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UkYpzAUpvx.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UkYpzAUpvx.png 556w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-UkYpzAUpvx-300x284.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use Yoast to manage meta for GeoDirectory listings and insert GeoDirectory custom field data and GeoDirectory variables into Yoast Settings. By default, GeoDirectory can handle its own meta data for pages and CPTs using the GeoDirectory&nbsp; Titles &amp; Metas settings.&nbsp; Use Yoast with GeoDirectory If you have Yoast SEO installed, Yoast will automatically&nbsp;take [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[580,762,763,764,765],"article\/categories":[211,432],"class_list":["post-923","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-custom-fields","gd_place_tags-yoast-seo","gd_place_tags-seo-meta-data","gd_place_tags-custom-variables","gd_place_tags-snippet-variables-in-yoast","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/923","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=923"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/923\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=923"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=923"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}