WordPress.org

Forums

Weather Layer
Not Quite (2 posts)

2 stars
  1. guitarjosh
    Member
    Posted 7 months ago #

    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.

  2. MorganF
    Member
    Plugin Author

    Posted 7 months ago #

    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".

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.