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"]
  • 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"]
  • labels – enable/disable labels display. The available value: On, Off. The example below.
[coronar labels="off"]
  • 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"]

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"]
  • 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"]
  • filter – displays the top ranking of the US state for a particular data type. You can specify a certain number of states to display in the ranking. For example, Top3, Top5, Top15, etc. There are available data types: TotalConfirmed, TotalDeaths, TotalRecovered.

The example of displaying the top 3 states by the number of “Total Confirmed”

[coronar-usa  filter="Top3TotalConfirmed"]

The example of displaying the top 5 states by the number of “TotalRecovered”

[coronar filter="Top5TotalRecovered"]

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]
  • relative date indicating day/time (time ago)
[coronar-relative-date]

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"]
  • 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"]
  • 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"]

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, America, Asia, Oceania. The example below displays a map focused on Europe.
[coronar-map region="Europe"]

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"]

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 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]

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"]

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.