# Geo Meta Tags for Local Businesses

> Adds geo.region, geo.placename, geo.position and ICBM meta tags with your business location to every page, a small extra local signal for some search engines and directories.

- Type: PHP
- Runs: Site-wide header
- Category: [SEO](https://wpide.com/library/category/seo/)
- Tags: local-seo, meta, geo
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/seo-geo-meta-tags/

## Code

```php
// Your location.
$wpide_geo = array(
    'region'    => 'US-IL',
    'placename' => 'Springfield',
    'latitude'  => '39.7817',
    'longitude' => '-89.6501',
);

printf(
    '<meta name="geo.region" content="%1$s">' . "\n" . '<meta name="geo.placename" content="%2$s">' . "\n" . '<meta name="geo.position" content="%3$s;%4$s">' . "\n" . '<meta name="ICBM" content="%3$s, %4$s">' . "\n",
    esc_attr( $wpide_geo['region'] ),
    esc_attr( $wpide_geo['placename'] ),
    esc_attr( (float) $wpide_geo['latitude'] ),
    esc_attr( (float) $wpide_geo['longitude'] )
);
```

## Notes

Region uses the ISO 3166-2 code (country-state), e.g. US-IL or GB-LND. Find coordinates by right-clicking the spot in Google Maps.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Geo Meta Tags for Local Businesses" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
