Meteorological data tables
Are you wondering how to create tables presenting the data of your weather station? Maybe even have you ever tried to do it directly in HTML? All this to realize that it’s far from obvious and easy …
As you have been many to tell me your dismay, I decided to offer you a simple and foolproof solution. This is the method I use on the pages of this site which include tables and you will see that it is within the reach of everyone.
This method involves the use of TablePress.
TablePress is a WordPress extension that allows you to create and “maintain” tables ready to insert in your site’s content. The interest of this extension is to offer a very simple mode of operation, useful and effective features, from the design of the tables (combination of cells, duplication of rows or columns, etc.) to the final rendering (pagination, sorting, filter, etc.).
You understand well, I love TablePress. And in the lines that follow, you will understand why …
To get started, install TablePress on your site according to your favorite method – the easiest way is to go through Plugins> Add New, search by keyword “TablePress”, then Install and Activate.
Once the activation is done, go to the settings of the plugin by clicking on the “TablePress” item appeared in the main administration menu. Then click on the Add New tab to create a new table by choosing the number of rows and columns (you can of course change these values later) and by naming it:
Once the table is created, you can fill its cells with what you want … Including shortcodes from Weather Station. You can therefore search, for each of your stations, text values that you want to show in your table: the table will always display the latest collected values!
When your table is ready, save it and note the shortcode that corresponds, for example:
[table “4” not found /]
Then insert this shortcode where you want to display your table, as I do here for example:
|東京||44 m||18.6 °C||55 %||1013.8 hPa||N-NE ~ 15 km/h|
|New-York||10 m||14.1 °C||93 %||1018.8 hPa||W-NW ~ 3 km/h|
|北京||49 m||15.5 °C||22 %||1015.1 hPa||NW ~ 3 km/h|
|Москва||144 m||4.8 °C||86 %||1008.0 hPa||N ~ 4 km/h|
Isn’t it a pretty table?
The advantage of using TablePress is that you can now return to the extension to modify the rows, columns, cells and options of your table. Each time you save it, it will be updated in all the content where you have pasted the corresponding shortcode. The second benefit is that by using the Weather Station shortcodes, your table will always show the latest collected values – the most up-to-date. Isn’t it wonderful?
And you, how do you use the Weather Station shortcodes in tables? It’s time to show everyone …
Stay Up to Date
Receive the latest news and updates from Weather Station.