WordPress.org

Ready to get started?Download WordPress

Forums

Weather Layer
Not Quite (2 posts)

2 stars
  1. guitarjosh
    Member
    Posted 1 year 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 1 year 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".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.