Forums

WP-Weather
Dynamic location id to wp-weather plugin (4 posts)

  1. johnravrasta
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/wp-weather/

  2. mattbta
    Member
    Posted 1 year ago #

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

  3. mattbta
    Member
    Posted 1 year ago #

    This is now available in version 0.3.9

    Cheers.

  4. indooryields
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags