• Resolved italoarista

    (@italoarista)


    Hi,

    I am using a shortcode and I am passing the language parameter to it, but it doesn’t work, it only shows it in English.

    this is the shortcode i am using:

    [shortcode-weather-atlas language=”es” city_selector=2096911 unit_c_f=”c” background_color=”#00″ text_color=”#009f4e” header=”Barakaldo” sunrise_sunset=0 current=0 daily=3]

    Thank you for an answer.

    • This topic was modified 3 years, 9 months ago by italoarista.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Weather Atlas

    (@weatheratlas)

    Hello,

    you have set the widget’s language properly, and it displays the weather in Spanish.

    However, you have WP Fastest Cache plugin active. And you are showing a page with the weather from the moment the page has been saved, and not the current weather.

    Please compare https://visitbarakaldo.eus/conoce-la-ciudad/ and https://visitbarakaldo.eus/conoce-la-ciudad/?1
    (?1 tricks the cache plugin into seeing the same URL as a new page and shows a fresh page, and then it caches it as well)
    Most likely (if the original page is accessed and cached earlier) you will see the difference in weather data.

    Reducing the loading time of the WordPress site is the most important goal of caching. But the caches also bring a disadvantage: If the WordPress cache is activated, information is no longer retrieved live. Depending on the cache setting, your page content may be out of date.
    Unfortunately, you will have to choose:
    – not to use the cache plugin at all, or
    – not to cache (or expire more frequently) the pages that have the weather widget.
    (the weather data is being cached for 15-30min., as well, in your database, and it is not influencing the speed of your site)

Viewing 1 replies (of 1 total)
  • The topic ‘language not working’ is closed to new replies.