• The shortcode for the sidebar doesn’t work.. just shows the code in my blog. Also a star deduction for making the linkback so big and required. Don’t mind a linkback to the developers site but work it in more elegantly.

Viewing 1 replies (of 1 total)
  • Plugin Author MorganF

    (@morganf)

    Hi guitarjosh, did you try to use the “do_shortcode” WordPress function ?

    Otherwise, here is a way to call the plugin with PHP :

    $plugins = get_option('active_plugins');
    
    if (in_array('weather-layer/weather-layer.php', $plugins)) :
       $args = array
       (
          'country' => 'France',
          'city'  => 'Paris',
          'display' => 'vertical'
       );
    
       echo weather_layer_getWeatherLayer ($args);
    endif;

    Btw, about the backlink, the plugin was initially developed for blogovoyage.fr only, but I’ve decided to share it with WP community. That’s the reason why it is so “visible”.

Viewing 1 replies (of 1 total)
  • The topic ‘Not Quite’ is closed to new replies.