Location Weather Pro

  1. Home
  2. Docs
  3. Location Weather Pro
  4. Post & Page Setup

Post & Page Setup

To Set up the Location Weather Pro in a post or page, just write the shortcode on post/page editor.

Example[location-weather-pro]

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

PHP Template Inclusion<?php echo do_shortcode('[location-weather-pro]'); ?>

PHP Template Inclusion with Attribute<?php echo do_shortcode('[location-weather-pro city="London" country="UK" unit="c"]'); ?>

 

Single Instance: 

To show the weather once, just write/paste the shortcode in your post/page editor.

Example[location-weather-pro]

 

Multiple Instance: 

To show the weather multiple times, just write/paste the shortcode in your post/page editor multiple times. You can use attributes, different cities, etc too.

Examples

  • [location-weather-pro]
  • [location-weather-pro city=”New York”, country=”USA”]
  • [location-weather-pro city=”Abu Dhabi” country=”AE” unit=”c”]

Screenshot