CSV to html – Choosing files

The source_type attribute defines what kind of structure the fetched file(s) has. visualizer_plugin is set as default. This is because the plugin was made for that format from the beginning (Initially this plugin was made for generating tables from charts fething data from the Visualizer Plugin (https://wordpress.org/plugins/visualizer/). If you are having problem fetching the data – try to to use ”guess” instead (it’s a more ordinary case to use guess).

Valid source types:
  • guess
  • json
  • visualizer_plugin
  • (Visualizer plugin) example data:
  • ,Sweden
  • 2010,number
  • 2011,"1.6%"
  • 2012,"2.2%"
  • 2013,"3.2%"
  • 2014,"4.5%"
  • 2015,"6.9%"

Shortcode
[csvtohtml_create source_type="visualizer_plugin" path="csvfiles" source_files="sweden.csv"]
path defines relative path from the servers upload-folder (e.g. wp-content/uploads/csvfiles).
If path is not defined, then wp-content/uploads is used.

20112012201320142015
Sweden1.6%2.2%3.2%4.5%6.9%

Combine files

If you want to have data from serveral files into one table, just add them in the source_files separated with a semicolon.

Shortcode
[csvtohtml_create source_type="visualizer_plugin" path="csvfiles" source_files="sweden.csv;norway.csv;finland.csv"]
20112012201320142015
Sweden1.6%2.2%3.2%4.5%6.9%
Norway-6.6%1.2%1.4%1.9%2.0%
Finland-16.6%-14.2%10.2%11.0%13.2%

Combine files into one table with a ”wildcard”.

If you want to have data from serveral files into one table, just add the wildcard, like *.csv or *.*. This is only applicapble when dealing with csv-files locally (on the webserver where your site is stored). If any files are added to the given path, those files are included in the generation of the table. (The reason why Sweden is shown twice below is that there are two files with identical data on this server in the csv-files folder (sweden.csv and sweden_mac.csv))

Shortcode
[csvtohtml_create source_type="visualizer_plugin" path="csvfiles" source_files="*.csv"]
20112012201320142015
Denmark-2.6%0%2.6%2.9%2.11%
Finland-16.6%-14.2%10.2%11.0%13.2%
Iceland6.6%6.2%7.2%11.0%16.2%
Norway-6.6%1.2%1.4%1.9%2.0%
Sweden1.6%2.2%3.2%4.5%6.9%
Sweden2010

External files

With CSV to HTML it is also possible to fetch data from external files (the files does not have to be on your own server). Down below is actually a mix of an external file (https – sweden) and internal files (norway,finland,iceland,denmark):

Shortcode
[csvtohtml_create source_type="visualizer_plugin" path="csvfiles" source_files="https://wibergsweb.se/wp-content/uploads/csvfiles/sweden.csv;norway;finland;iceland;denmark"]
20112012201320142015
Sweden1.6%2.2%3.2%4.5%6.9%
Norway-6.6%1.2%1.4%1.9%2.0%
Finland-16.6%-14.2%10.2%11.0%13.2%
Iceland6.6%6.2%7.2%11.0%16.2%
Denmark-2.6%0%2.6%2.9%2.11%

It’s also possible to fetch google sheets if adding some attributes to the url and setting an attribute for the shortcode (add_ext_auto). This add_ext_auto adds the file extension .csv as default. When dealing with google sheets (or maybe some other source) you don’t want any file extension to be added.

Shortcode
[csvtohtml_create source_type="guess" add_ext_auto = "no" source_files="https://docs.google.com/spreadsheets/d/{key}/gviz/tq?tqx=out:csv&sheet={sheet_name}"]

There are no preview for this because google sheet’s specification how to achieve this usually do change over time. Please take a look at https://stackoverflow.com/questions/33713084/download-link-for-google-spreadsheets-csv-export-with-multiple-sheets for some ideas how to fetch your google sheets document as a csv file.


But here’s an example of how it could work: (With permission from https://www.tsg1898-segeln.de/termine/). This example fetches a google document, but not at every single request. When a request is done it checks if an hour has passed. If it has, then google document is fetched again. This is relevant when you fetch external files. Fetch interval options are: hourly, daily, weekly or once. (Once means you only fetch the external file once once).

Shortcode
[csvtohtml_create fetch_interval="hourly" html_id="termine" design_template="no" source_type="guess" add_ext_auto="no" source_files="https://docs.google.com/spreadsheets/d/1qfLHc3jBDXChnexYKL4BcDOwljcsWEQnKerb_0tL7Fs/gviz/tq?tqx=out:csv&sheet=TSG_Termine" responsive="no" grabcontent_col_fromlink="Link" grabcontent_col_tolink="Aktivität" hide_cols="Link" markdown_support="yes"]
MonatDatumAktivitätUhrzeitLink
Januar 2026
08.01.Vorstand TSG19:00 Uhr
10.01.Jugendprojekt (Nähen)15:00 Uhr
16.01.Skat18:30 Uhr
17.01.Kneipenabend für die Junioren Ü1819:00 Uhr
18.01.Bowling (A10 Center Wildau)16:00 Uhr
24.01.Jugendprojekt (Nähen)15:00 Uhr
Februar 2026
12.02.Vorstand TSG19:00 Uhr
14.02.Mitgliederversammlung16:00 Uhr
15.02.Winterwanderung11:00 Uhr
20.02.Skat18:30 Uhr
21.02.Athletikpokal (BSV, Flatow-Schule)
21.02.Jugendprojekt (Nähen) und "Elternklönen"15:00 Uhr
28.02.Kenntertraining (Schwapp Fürstenwalde)09:30 Uhr
März 2026
07.03.Eisbeinessen (auch vegetarisch) / Fahrtenseglerehrung18:30 Uhr / 19:00 Uhr
12.03.Vorstand TSG19:00 Uhr
14.03.Kinder- und Jugendversammlung15:00 Uhr
20.03.Skat18:30 Uhr
28./29.03.Abslippen09:00 Uhr
28.03.Vortrag "Segeln in der Antarktis"18:30 Uhrhttps://www.tsg1898-segeln.de/erst-abslippen-dann-antarktis/
April 2026
11.04.Abslippen09:00 Uhr
11.04.Auslagern Jugendboote11:00 Uhr
11.04.Jahreshauptversammlung16:00 Uhr
16.04.Vorstand TSG19:00 Uhr
18.04.Ansegeln TSG intern11:00 Uhr
18.04.Ansegeln Revier (...)13:00 Uhr
Mai 2026
02.03.05.Ali-Wahrendorf Preis (20er JK)https://www.manage2sail.com/de-de/event/494b70ee-4f54-4910-aaa1-0e5acf1a5b1d#!/
07.05.Vorstand TSG19:00 Uhr
09./10.05.1. + 2. Interne11:00 Uhr
14.-17.05.Trainingslager Himmelfahrt (Opti, ILCA, 420er)https://www.manage2sail.com/de-de/event/TrainingslagerHimmelfahrt2026#!/
30.05.Edgar-Jambor-Preis (Opti C)https://www.manage2sail.com/de-DE/event/EJP2026#!/
30.05.Mitgliederversammlung19:00 Uhr
Juni 2026
05.06.Arbeitsdienst16:00 Uhr
06./07.06.TSG Cup (Yardstick)https://www.manage2sail.com/de-de/event/TSGCup2026#!/
07.06.Arbeitsdienst16:00 Uhr
11.06.Vorstand TSG19:00 Uhr
13.06.gem. Seglerparty mit WLS und SC Aegir18:00 Uhr
14.06.3. Interne, gem. mit WLS und SC Aegir11:00 Uhr
20./21.06.Geldner-Preis (O-Jolle)https://www.manage2sail.com/de-de/event/GeldnerPreis#!/
27.06.Fahrtenseglerausfahrt
Juli 2026
02.07.Vorstand TSG19:00 Uhr
09.-12.07.Trainingslager Ferienbeginn (Opti, ILCA, 420er)https://www.manage2sail.com/de-de/event/SommerTrainingslagerFerienanfang2026#!/
August 2026
16.-22.08.Trainingslager Ueckermünde (Opti, ILCA, 420er)https://www.manage2sail.com/de-de/event/SommerTrainingslagerUeckermuende2026#!/
29.08.Fahrtenseglerausfahrt
September 2026
10.09.Vorstand TSG19:00 Uhr
19.09.Arbeitsdienst14:00 Uhr
19.09.Mitgliederversammlung19:00 Uhr
27.09.4. Interne11:00 Uhr
Oktober 2026
08.10.Vorstand TSG19:00 Uhr
10.10.Absegeln TSG intern inkl. Siegerehrung interne Wettfahrten11:00 Uhr
10.10.Absegeln Revier (...)13:00 Uhr
17.10.Einlagern Jugendboote10:00 Uhr
24./25.10.Aufslippen09:00 Uhr
31.10.Aufslippen09:00 Uhr
31.10.Mitgliederversammlung16:00 Uhr
November 2026
12.11.Vorstand TSG19:00 Uhr
28.11.Jubilarfeier15:00 Uhr
Dezember 2026
12.12.Weihnachtsfest für Jung und Alt
31.12.Silvesterfeier