WordPress.org

Forums

Weather Underground
Output Location via variables within do_shortcode function (1 post)

  1. kcomphlint
    Member
    Posted 1 year ago #

    Anyone had success doing this? Something like this should work:

    [php]
    $weathercity = do_shortcode('[mmjs-city]');
    $weatherstate = do_shortcode('[mmjs-regionname]');
    echo $weathercity .', '.$weatherstate;
    echo do_shortcode('[forecast location="'.$weathercity.', '.$weatherstate.'"]');
    [/php]

    But doesn't

    http://wordpress.org/extend/plugins/wunderground/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic