• 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

    https://www.ads-software.com/extend/plugins/wp-weather/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mattbta

    (@mattbta)

    I should be able to get something like this done. Give me a few days.

    Plugin Author mattbta

    (@mattbta)

    This is now available in version 0.3.9

    Cheers.

    Thanks, mattbta – great work. johnravrasta, I too want to use custom fields along with wp-weather plug-in to add local weather to my posts. It sounds like I can do this in 0.3.9 – but I am not clear how to make it happen? I can make the basic WP custom field example work, but I am having trouble making this work.

    Any help would be appreciated. TIA.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic location id to wp-weather plugin’ is closed to new replies.