Pages with more than just one Weather display can utilize additional shortcode parameters to cut down on the number of Weather posts. Create one master Weather and then use one of the location shortcodes to set a different location.
The following shortcode parameters are available:
- id (mandatory)
The page id for the Weather post. - alert_popup
“modal” or “inline”. Default “modal”. - background_image
sunny_background_image
cloudy_background_image
drizzly_background_image
rainy_background_image
snowy_background_image
stormy_background_image
foggy_background_image
The WordPress page number for the media image. No default. - background_yt_video
sunny_background_yt_video
cloudy_background_yt_video
drizzly_background_yt_video
rainy_background_yt_video
snowy_background_yt_video
stormy_background_yt_video
foggy_background_yt_video
The id of the YouTube video to embed in the background. No default. - city
The name of the city. No default. - country_code
The 2-letter country code. Default “US”. - custom_city_name
Any text. No default. - custom_css
Any CSS rules. No default. - custom_timezone
“Default”, “local”, “-12”, “-11”, “-10”, “-9”, “-8”, “-7”, “-6”, “-5”, “-4”, “-3”, “-2”, “-1”, “0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, or “12”. Default is “Default”. - display_length_days_names
“short” or “normal”. Default: “short”. - font
“Default”, “Arvo”, “Asap”, “Bitter”, “Droid Serif”, “Exo 2”, “Francois One”, “Inconsolata”, “Josefin Sans”, “Lato”, “Merriweather Sans”, “Nunito”, “Open Sans”, “Oswald”, “Pacifico”, “Roboto”, “Signika”, “Source Sans Pro”, “Tangerine”, or “Ubuntu”. Default: Current font from WordPress template. - forecast_no
The number of forecast days (0-8), 1 meaning today. Default: 0. - hours_forecast_no
The number of forecast hours (0-48), 1 meaning this hour. Default: 0. - iconpack
“Climacons”, “OpenWeatherMap”, “WeatherIcons”, “Forecast”, “Dripicons”, or “Pixeden”. Default: “Climacons”. - id_owm
The [OpenWeatherMap city id][https://openweathermap.org/find?q=]. No default. - latitude
Latitude of the locations is a real number between -90 and 90. No default. - longitude
Longitude of the locations is a real number between -180 and 180. No default. - background_opacity
map_opacity
Real number in 0.1 steps from 0 to 1. Default: 0.8. - map_zoom
Map zoom level as an integer between 1 and 18. Default 9. - owm_language
The [OpenWeatherMap language code][https://openweathermap.org/api/one-call-api#multi]. Default “en”. - pressure_unit
“inches of mercury”, “millimeter of mercury”, “millibar” or “hectopascal”. Default “inches of mercury”. - size
“small”, “medium” or “large”. Default “small”. - template
“Default”, “card1”, “card2”, “chart1”, “chart2”, “custom1”, “custom2”, “slider1”, “slider2”, “tabbed1”, “tabbed2”, “table1”, “table2”, or “debug”. Default is “Default”. - time_format
“12” or “24”. Default “12”. - today_date_format
“none”, “day” or “date”. Default is “none”. - unit
“imperial” or “metric”. Default “imperial”. - wind_unit
“mi/h”, “m/s”, “km/h”, or “kt”. Default “mi/h”. - zip
Postal code. No default. - zip_country_code
Country code for the postal code. Default “US”. - chart_height map_height
Positive integer height in pixels. See defaults at description. - alerts_button_color
background_color
sunny_background_color
cloudy_background_color
drizzly_background_color
rainy_background_color
snowy_background_color
stormy_background_color
foggy_background_color
border_color
chart_background_color
chart_border_color
chart_dew_point_color
chart_cloudiness_color
chart_rain_chance_color
chart_humidity_color
chart_pressure_color
chart_rain_amt_color
chart_snow_amt_color
chart_wind_speed_color
chart_wind_gust_color
chart_feels_like_color
chart_temperature_color
table_background_color
table_border_color
table_text_color
text_color
sunny_text_color
cloudy_text_color
drizzly_text_color
rainy_text_color
snowy_text_color
stormy_text_color
foggy_text_color
HTML HEX Color without “#”. See defaults at description. - border_width
chart_border_width
table_border_width
Positive integer width in pixels; 0 to suppress border. Default: 0. - border_style
chart_border_style
table_border_style
“solid”, “dotted”, “dashed”, “double”, “groove”, “inset”, “outset”, or “ridge”. Default: “solid”. - border_radius
chart_border_radius
table_border_radius
Positive integer radius in pixels; 0 to suppress radius. Default: 0. - alerts
bypass_exclude
cloudiness
current_city_name
current_feels_like
current_temperature
current_weather_description
current_weather_symbol
dew_point
disable_anims
disable_spinner
display_temperature_unit
gtag
hours_time_icons
humidity
last_update
map
map_cities
map_cities_legend
map_cities_on
map_clouds
map_clouds_legend
map_clouds_on
map_disable_zoom_wheel
map_precipitation
map_precipitation_legend
map_precipitation_on
map_pressure
map_pressure_legend
map_pressure_on
map_rain
map_rain_legend
map_rain_on
map_snow
map_snow_legend
map_snow_on
map_temperature
map_temperature_legend
map_temperature_on
map_wind
map_wind_legend
map_wind_on
map_windrose
map_windrose_legend
map_windrose_on
moonrise_moonset
owm_link
precipitation
pressure
sunrise_sunset
text_labels
uv_index
visibility
wind
“yes” or “no”. No default.