i would like to ask if we can have the location id argument inside weather_display(); function like we can in shortcode ie [weather_display location_id="GRXX0041"]. In shortcode we can have arguments like the one displayed above or Forecast length (in days) but this approach does not work on the function :(
If i manage to get something like:
$locid=GRXX0041
weather_display($locid);
i could just insert a custom field with the location id of every post (which is actually a destination), retrieve this using get_post_meta and assign it to weather_display() function.
This is very useful for dynamic weather display on a sidebar widget. It can already be done as you know inside a post, using the shortcode (something that is not an option for my website)
thanks for any reply