About this plugin
Requirements
- WordPress 2.2 or 2.0.x/2.1.x with WordPress Widgets
- PHP 4.3.0 or greater (needed for function file_get_contents)
Location
The location can either be a zip code for US users or the locid. This will return an XML file with search results and their corresponding locid’s.
com website. from=search_city, where USTX0617 is the locid.
Image Hosting
com here. If you want to host your own images, extract and upload the files, then, in the admin panel, edit the ‘Image Location’ field to point to your directory of images. Make sure to have the trailing slash.
com/weatherimages/
Formatting
You can edit ‘Widget Formatting’ to change how the info is displayed. To access the variables, use this formatting:
- %loc% – Location
- %temp% – Current temperature
- %feels% – Feels like temperature
- %icon% – The icon referring to the current weather. This is just a number
- %iconhref% – The location of the image with your set image location at the front
- %attribution% – The link supposedly required to be displayed. Weather data provided by weather.com®
The default formatting is:
<img src=”%iconhref%” alt=”%cond%” style=”float:right;” />
%loc%<br />
<span style=”font-size: 150%;”>%temp% °F</span>
(%feels% °F)<br />
<span style=”font-size: 65%; float: right;”>%attribution%</a>