• Resolved painlessseo

    (@painlessseo)


    My awesome support,

    I have found the plugin is really helpful but how to increase the number limit of “How many wp-forecast widgets would you like?” found in the Global Settings.

    By default, it has up to 8 but what if I need to add more?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Hi,

    if you want more than 8 widgets, you can edit wp-forecast.php. At the top of the file you find:

    //
    // maximal number of widgets to use.
    //
    $wpf_maxwidgets = 8;

    Change the 8 to whatever you like and you will bea ble to have the number of widgets.

    But please take care of the terms of usage of the selected weather data provider and do not be surprised if your site is getting slower, because all the weather data has to be loaded. To optimize this play with the cache settings in the wp-forecast admin dialog.

    Hope it helps.

    Thread Starter painlessseo

    (@painlessseo)

    Thank you so much @tuxlog! Just wanted to follow up with your comment about all the weather data being loaded… If I have two pages and one has the sidebar for Tokyo and the other has it for Chicago, will the Tokyo page load the weather data for Chicago too? I set my sidebars with conditions, meaning that the Tokyo page only shows the corresponding sidebar for Tokyo.

    Again, thanks for the help. Impressive plugin!

    Plugin Author tuxlog

    (@tuxlog)

    The plugin has an inbuilt cache for the weather data and it will load the weather data for each location/widget if the cache has expired. You can set the duration in seconds until the cache expires for each location using the field “Refresh cache after”.

    So, it will load the weather data for all widgets the cache has expired, when you load the page.

    Hope it helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.