• Resolved alainxps

    (@alainxps)


    Hi!

    I found your plugin to be very helpful, and with the help of your documentation I was able to create a custom template that I output via a Content shortcode.
    I just want to know, how can I set the custom template so I could have both Celsius and Fahrenheit measurement units at the same time displayed on a site?

    Thank you in advance.

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

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

    (@uwejacobs)

    Hi!

    Thanks for using my plugin and taking the time to open a ticket.

    I added siblings for all “temperature”, “feels_like” and “dew_point” fields to store the celsius and fahrenheit values at the same time. For example, for the field $owmw_data[“temperature”] – which you are displaying on your page – it stores those now in addition in $owmw_data[“temperature_celsius”] and $owmw_data[“temperature_fahrenheit”].

    Please update to version 5.0.7. Then you can print and style $owmw_data[“temperature_celsius”] and $owmw_data[“temperature_fahrenheit”] as you see fit. Let me know if that works for you.

    Thread Starter alainxps

    (@alainxps)

    Thank you, that’s great!!

    Just one thing: the measurement unit stays the same for both numbers (imperial or metric, according the Weather CPT set unit). I override this via CSS, but I thought you should be aware of this.

    Plugin Author Uwe Jacobs

    (@uwejacobs)

    Thanks for your reply. Your webpage looks great.

    I was aware of this limitation. In one of the future versions I will add the necessary CSS and provide HTML snippets in $owmw_html[].

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Both temperature measurements at the same time’ is closed to new replies.