AI助手支持GPT4.0
Adds the Weather to your site.
将天气添加到您的站点。
The weather app is avaliable as both a widget and a shortcode.
天气应用程序既可以作为小部件也可以作为简码。
If you have any problems or questions please email me at alex@dobsondev.com.
如果您有任何问题或疑问,请发送电子邮件至 alex@dobsondev.com 。 p>
Widget
小部件 strong> p>To get the Widget working, simply go to Appearance -> Widgets and drag the “DobsonDev Weather Widget” to where ever you want it to display.要使小部件正常工作,只需转到外观->小部件,然后将“ DobsonDev Weather小部件”拖到您希望其显示的位置。Inside the widget you simply need to fill out the City/Town you want the weather for.在小部件内,您只需要填写所需天气的城市/城镇即可。The City/Town should be in the format of Town or City, comma, then the country code.城市/城镇的格式应为城镇或城市,逗号,然后是国家/地区代码。For example, New York would be location=”New York, US”.例如,纽约将是location =“美国纽约”。Click save and the widget will then display the weather on the front end of the site.单击“保存”,然后小部件将在网站的前端显示天气。 p>Shortcode 简码 strong> p>[weather location=”City/Town, CC” align=”align”] [天气位置=“城市/城镇,CC” align =“ align”] p>This Shortcode will embed the weather app into your page.此简码会将天气应用嵌入到您的页面中。Be sure to replace the above code with information pertaining to you.确保用与您有关的信息替换上面的代码。The location should be in the format of Town or City, comma, then the country code.该位置的格式应为城镇或城市,逗号,然后是国家/地区代码。For example, New York would be location=”New York, US”.例如,纽约将是location =“美国纽约”。The alignment is where you want the shortcode to be aligned to.对齐是您希望短代码对齐的位置。This works the same way as the WordPress image alignments, so your choices are “right”, “left”, or “center”.此方法与WordPress图像对齐方式相同,因此您可以选择“右”,“左”或“中心”。 p>API Key API密钥 strong> p>Please note that this plugin DOES use an API to get the weather and you do have to supply your own API key (the key is free with paid versions for high traffic).请注意,此插件确实使用API来获取天气,并且您必须提供自己的API密钥(该密钥是免费的,付费版本用于高流量)。The API used for this plugin is Open Weather Map.用于此插件的API是打开天气地图。You can register for an API key here: http://openweathermap.orgegister.您可以在此处注册API密钥: http://openweathermap.orgegister 。 p>
To get the Widget working, simply go to Appearance -> Widgets and drag the “DobsonDev Weather Widget” to where ever you want it to display.
要使小部件正常工作,只需转到外观->小部件,然后将“ DobsonDev Weather小部件”拖到您希望其显示的位置。
Inside the widget you simply need to fill out the City/Town you want the weather for.
在小部件内,您只需要填写所需天气的城市/城镇即可。
The City/Town should be in the format of Town or City, comma, then the country code.
城市/城镇的格式应为城镇或城市,逗号,然后是国家/地区代码。
For example, New York would be location=”New York, US”.
例如,纽约将是location =“美国纽约”。
Click save and the widget will then display the weather on the front end of the site.
单击“保存”,然后小部件将在网站的前端显示天气。 p>
Shortcode
简码 strong> p>[weather location=”City/Town, CC” align=”align”] [天气位置=“城市/城镇,CC” align =“ align”] p>This Shortcode will embed the weather app into your page.此简码会将天气应用嵌入到您的页面中。Be sure to replace the above code with information pertaining to you.确保用与您有关的信息替换上面的代码。The location should be in the format of Town or City, comma, then the country code.该位置的格式应为城镇或城市,逗号,然后是国家/地区代码。For example, New York would be location=”New York, US”.例如,纽约将是location =“美国纽约”。The alignment is where you want the shortcode to be aligned to.对齐是您希望短代码对齐的位置。This works the same way as the WordPress image alignments, so your choices are “right”, “left”, or “center”.此方法与WordPress图像对齐方式相同,因此您可以选择“右”,“左”或“中心”。 p>API Key API密钥 strong> p>Please note that this plugin DOES use an API to get the weather and you do have to supply your own API key (the key is free with paid versions for high traffic).请注意,此插件确实使用API来获取天气,并且您必须提供自己的API密钥(该密钥是免费的,付费版本用于高流量)。The API used for this plugin is Open Weather Map.用于此插件的API是打开天气地图。You can register for an API key here: http://openweathermap.orgegister.您可以在此处注册API密钥: http://openweathermap.orgegister 。 p>
[weather location=”City/Town, CC” align=”align”]
[天气位置=“城市/城镇,CC” align =“ align”] p>
This Shortcode will embed the weather app into your page.
此简码会将天气应用嵌入到您的页面中。
Be sure to replace the above code with information pertaining to you.
确保用与您有关的信息替换上面的代码。
The location should be in the format of Town or City, comma, then the country code.
该位置的格式应为城镇或城市,逗号,然后是国家/地区代码。
The alignment is where you want the shortcode to be aligned to.
对齐是您希望短代码对齐的位置。
This works the same way as the WordPress image alignments, so your choices are “right”, “left”, or “center”.
此方法与WordPress图像对齐方式相同,因此您可以选择“右”,“左”或“中心”。 p>
API Key
API密钥 strong> p>Please note that this plugin DOES use an API to get the weather and you do have to supply your own API key (the key is free with paid versions for high traffic).请注意,此插件确实使用API来获取天气,并且您必须提供自己的API密钥(该密钥是免费的,付费版本用于高流量)。The API used for this plugin is Open Weather Map.用于此插件的API是打开天气地图。You can register for an API key here: http://openweathermap.orgegister.您可以在此处注册API密钥: http://openweathermap.orgegister 。 p>
Please note that this plugin DOES use an API to get the weather and you do have to supply your own API key (the key is free with paid versions for high traffic).
请注意,此插件确实使用API来获取天气,并且您必须提供自己的API密钥(该密钥是免费的,付费版本用于高流量)。
The API used for this plugin is Open Weather Map.
用于此插件的API是打开天气地图。
You can register for an API key here: http://openweathermap.orgegister.
您可以在此处注册API密钥: http://openweathermap.orgegister 。 p>
If you get a lot of volume you can upgrade to a paid version.
如果数量很多,您可以升级到付费版本。 li>
Click Save.
点击保存。 li>
ol>
原文出处:http://www.sanshu.cn/a/11345.html
群主管理都是支付大佬