Location Weather Pro

  1. Home
  2. Docs
  3. Location Weather Pro
  4. Shortcode Using

Shortcode Using

Write the shortcode on page/post editor –

[location-weather-pro]

To add the shortcode to PHP template file, follow the code below –

<?php do_shortcode('[location-weather-pro]'); ?>
Attribute Default value Options Description
auto_location true true / false Activate / deactivate auto location detecte option.
date true true / false Show / hide current date.
humidity true true / false Show / hide humidity update.
wind true true / false Show / hide wind update.
unit f f / c Set temperature showing unit. “f” farenheit and “c” for celsius.
city london any city name Write the name of your city. To emphasis on your location, include the county name too. e.g. Rome, Oneida
country GB ISO 3166 Country code Write the country code name if needs.
background #fff color code Set backgorund color.