Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

My Geo Posts Free

Описание

My Geo Posts Free plugin uses IpInfoDb and/or geoPlugin’s service to get geolocation data of visitor’s ip address. It save location data in visitors browser cookies to save number of api calls.

How to use My GEO Post Free Plugin ?

Use following shortcodes almost anywhere in WordPress, ie. Title/Content of WordPress post/page/widget etc.. Within a title or within a content itself, just copy paste following shortcodes.

  • [mygeo_city] // to display City name
  • [mygeo_country_code] // to display Country Code
  • [mygeo_country_name] // to display Country Name
  • [mygeo_region] // to display state / region name
  • [mygeo_latitude] // to display latitude of the visitors location
  • [mygeo_longitude] // to display longitude of the visitors location
  • [mygeo_postal_code] // to display postal code if available

You can also add default value when geo data is not available i.e.

  • [mygeo_city default='Your City']

To directly display data using PHP code in template files itself, you can use following php code by replacing SHORTCODE with any of the above code.

<?php echo do_shortcode('SHORTCODE'); ?>

Hire plugin author for your WordPress Development.

Visit official website for this plugin at Mindstien Technologies.

Установка

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use following shortcodes almost anywhere in WordPress, ie. Title/Content of WordPress post/page/widget etc.. Within a title or within a content itself, just copy paste following shortcodes.
  • [mygeo_city] // to display City name
  • [mygeo_country_code] // to display Country Code
  • [mygeo_country_name] // to display Country Name
  • [mygeo_region] // to display state / region name
  • [mygeo_latitude] // to display latitude of the visitors location
  • [mygeo_longitude] // to display longitude of the visitors location
  • [mygeo_postal_code] // to display postal code if available

To directly display data using PHP code in template files itself, you can use following php code by replacing SHORTCODE with any of the above code.

<?php echo do_shortcode('SHORTCODE'); ?>

Часто задаваемые вопросы

How accurate the location data are ?

The accuracy of geo location data purely depends on the geoip service providers, i.e. IpInfoDb and GeoPlugin

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«My Geo Posts Free» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «My Geo Posts Free» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.2: Option of default value in shortcode is added.
1.1: Plugin updated to use geodata from ipinfodb and geoplugin services.
1.0: New plugin launched.