Add COVID-19 Informer to the page

Once you have installed the plugin, it is ready to use. To add the COVID-19 Informer to the page, use different shortcodes depending on the result you want to get.

COVID-19 Data Table

To get a summary of coronavirus pandemic table data for all countries uses the shortcode:

 [coronar]

The COVID-19 Informer includes New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered. Each field is sorted in ascending and descending order. Besides, the search field for all data is available.

Available Coronar Attributes

The following attributes are available to use in conjunction with the [coronar]shortcode:

  • countries – specific countries for which data is displayed. The example below.
[coronar countries="Afghanistan, Italy, France, Canada"]
Specific countries COVID-19 informer
  • columns – specific columns to display in the table and their order. The available columns: Flag, Country, New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered, Chart Confirmed, Chart Deaths, Chart Recovered. The example below.
[coronar columns="Flag, Country, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered"]
Specific columns COVID-19 informer
  • labels – enable/disable labels display. The available value: On, Off. The example below.
[coronar labels="off"]
Table data without labels
  • filter – displays the top ranking of countries for a particular data type. You can specify a certain number of countries to display in the ranking. For example, Top3, Top5, Top15, etc. There are available data types: NewConfirmed, TotalConfirmed, NewDeaths, TotalDeaths, NewRecovered, TotalRecovered.

The example of displaying the top 10 countries by the number of “New Confirmed”

[coronar filter="Top10NewConfirmed"]
Top10 countries of New Confirmed cases

The example of displaying the top 5 countries by the number of “Total Recovered”

[coronar filter="Top5TotalRecovered"]

COVID-19 USA States Table

To get a table of data by US states, use a shortcode [coronar-usa]

[coronar-usa]

Available Coronar USA Attributes

  • provinces – specific US provinces for which data is displayed. The example below.
[coronar-usa provinces="New York, California, Washington"]
COVID-19 Informer for USA provinces
  • columns – specific columns to display in the table and their order. The available columns for [coronar-usa] : Province, Total Confirmed, Total Deaths, Total Recovered.

In the code below you will find a list of the available data types for this shortcode.

[coronar-usa columns="Province, Total Confirmed, Total Deaths, Total Recovered"]

Data Update Date

To inform about the relevance of the information, you can display the date of the last updating. Use the provided shortcodes to display the date:

  • date is displayed indicating month/day/year/time
[coronar-date]
Last update date in format month/day/year/time
  • relative date indicating day/time (time ago)
[coronar-relative-date]
Last update date in relative format

COVID-19 Date Cards

To get a summary of coronavirus pandemic data for all countries displayed as cards use the shortcode:

 [coronar-card]

This includes New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered.

Available Coronar Card Attributes

The following attributes are available to use in conjunction with the [coronar-card] shortcode:

  • countries – specific countries for which data is displayed. The example below.
[coronar-card countries="Afghanistan, Italy, France, Canada"]
Coronar cards for specific countries
  • columns – specific columns to display in the card and their order. The available columns: Flag, Country, New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered, Chart Confirmed, Chart Deaths, Chart Recovered. The example below.
[coronar-card columns="Flag, Country, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered"]
  • labels – enable/disable labels display. The available value: On, Off. The example below.
[coronar-card labels="off"]
Coronar cards without labels
  • filter – displays the top ranking of countries for a particular data type. You can specify a certain number of countries to display in the ranking. For example, Top3, Top5, Top15, etc. There are available data types: NewConfirmed, TotalConfirmed, NewDeaths, TotalDeaths, NewRecovered, TotalRecovered.

The example of displaying the top 10 countries by the number of “New Confirmed”

[coronar-card filter="Top10NewConfirmed"]

The example of displaying the top 5 countries by the number of “Total Recovered”

[coronar-card filter="Top5TotalRecovered"]

You can combine and use several attributes of Coronar shortcodes as well as use multiple shortcodes on the page. To manage the display styles of the data, go to Plugin Settings

COVID-19 Maps

A new shortcode has been added in plugin version 1.0.4 for displaying the interactive map [coronar-map]. This is a very convenient way to view data around the world. When hovering over any country you will see available pandemic information. Besides, each country is colored and color transparency depends on the value of the specified data type. The higher the value of the selected data type, the more intense the color.

Please note that to use the maps, you need to get your own API key and add it to the Coronar>Map>API Key

The shortcode example for displaying a map with highlighting by type TotalConfirmed

[coronar-map] or [coronar-map value="TotalConfirmed"]

Available Coronar Map Attributes

  • value – the data type that will be taken into account when displaying the map. The available data types: TotalConfirmed, TotalDeaths, TotalRecovered.

The shortcode example for displaying a map with highlighting by type TotalConfirmed

[coronar-map value="TotalConfirmed"]
COVID-19 map of Confirmed Cases

The shortcode example for displaying a map with highlighting by type TotalRecovered

[coronar-map value="TotalRecovered"]
  • region – scale a certain region on the map to focus on specific countries. The available regions: Africa, Europe, Americas, Asia, Oceania. The example below displays a map focused on Europe.
[coronar-map region="Europe"]
COVID-19 map of total confirmed cases in Europe region

Some countries(like Russia, USA, etc) may be delayed on the map due to the fact that they are composite and take a little more time to load them. They are loaded in the background a few seconds after the entire page has loaded.

In addition, the COVID-19 Informer can display the data in graphs. In the graph of trends in the number of cases, the schedule of deaths and schedules of cured. Trend chart is available both shortcodes for the variant with the table [coronar] and for the variant with the country card [coronar-card].

The example below will show the flag of the country, the name of the country, the schedule of cases, the schedule of deaths and the schedule of recovered:

[coronar columns="Flag, Country, Chart Confirmed, Chart Deaths, Chart Recovered"]
COVID-19 Informer graphs for all countries

The same column names are available for output in card format.

You can also display trends for specific countries by adding thecountries attribute for the shortcode. The example below displays the graphs of Total Confirmed and Total Recovered for Afghanistan, Italy and France.

[coronar countries="Afghanistan, Italy, France" columns="Flag, Country, Chart Confirmed, Chart Recovered"]
COVID-19 Informer graphs for specific countries and columns

COVID-19 Total

Use the shortcode [coronar-total] to display global pandemic data for the whole world. The example below shows the total number of New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered for all countries

[coronar-total]
Global pandemic data

Available Coronar Total Attributes

  • columns – specific columns and their order to display in the card of the COVID-19 informer. The available columns: Flag, New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered. The example below.
[coronar-total columns="Flag, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered"]
Global pandemic data with specific columns

COVID-19 Live Summary

A new shortcode [coronar-live] has been added in plugin version 1.0.8 for displaying the table with a live summary. The data in this case will be updated every 10-20 minutes. The shortcode below displays the latest data for all countries in the table.

[coronar-live]

Available Coronar Live Summary Attributes

  • countries – specific countries for which data is displayed. The example below.
[coronar-live countries="Afghanistan, Italy, France, Canada"]
Live Summary for the specific countries
  • columns – specific columns to display in the table and their order. The available columns: Flag, Country, New Confirmed, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered, Chart Confirmed, Chart Deaths, Chart Recovered. The example below.
[coronar-live columns="Flag, Country, Total Confirmed, New Deaths, Total Deaths, New Recovered, Total Recovered"]
  • labels – enable/disable labels display. The available value: On, Off. The example below.
[coronar-live labels="off"]

Hosting

Fast and reliable hosting is significant for any WordPress site. We recommend all our customers use SiteGround WordPress Hosting. Many unique settings and features make this hosting the number 1 for WordPress: Free Website Transfer, Staging Tools, Free SSL, CDN, and much more for 3.95/mo.

Was this article helpful to you?