How to Use GeoDirectory Snippet Variables in Yoast?
By default, GeoDirectory can handle its own meta data for pages and CPTs.
However, if you are using Yoast SEO for adding meta title and description to GeoDirectory pages, you will need to use _gd_ prefix for all GeoDirectory snippet variables.
Working with GeoDirectory Snippet Variables
Using Yoast SEO for GeoDirectory Snippet Variables
To render GeoDirectory custom fields and variables properly using Yoast SEO meta, the _gd_ prefix is necessary.
You can specify the custom snippets for titles and meta here, with the _gd_ prefix.
Here is how the _gd_ prefix for GeoDirectory variables will work when used in Yoast SEO plugin:
- %%in_location_single%% variable in GeoDirectory will be %%_gd_in_location_single%% in Yoast
- %%category%% variable in GeoDirectory will be referred to as %%_gd_category%% in Yoast
- %%location_city%% variable in GeoDirectory will become %%_gd_location_city%% in Yoast
Similarly, any GeoDirectory custom field too will need to be prefixed by _gd_ when working with Yoast SEO. For example, if you have a GeoDirectory custom field %%_zip_locality%% it will be referred to as %%_gd_zip_locality%% for Yoast.