Location Weather Pro

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

Shortcode Using

Write the shortcode on page/post editor –

Example → [location-weather-pro]
Example with attribute → [location-weather-pro auto_location="true" date="true"]


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 detection 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” Fahrenheit and “c” for Celsius.
city london any city name Write the name of your city. To emphasize 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 background color.