WordPress.org

Ready to get started?Download WordPress

Plugin Directory

CSV to SortTable

Import data from a spreadsheet (.csv file format) and display it in a sortable HTML table.

4.2

  • Added id shortcode attribute.
  • Fixed a problem with CSV_to_SortTable::string_to_html_class() that dropped uppercase letters from class names.

4.1.3

  • Added filter csv_to_sorttable_data_array to table data array in CSV_to_SortTable::parse_csv().

4.1.2

  • Added support for relative paths to CSV files.

4.1.1

  • Code cleanup; refactored methods of primary plugin class & improved inline documentation.

4.1

  • Fixed bug with shortcode source and src attributes not working.

4.0.2

  • Fixed support for old shortcode [csv2table].

4.0.1

  • Fixed bug causing image-type and file-type classes from incorrectly carrying over into other table cells.

4.0

  • Major code revision!
  • Replaced custom CSV file import function with WordPress core function: wp_remote_fopen().
  • Replaced custom CSV parser function with str_getcsv() (including support for PHP < 5.3).
  • Replaced custom HTML/link handler function with WordPress core function: make_clickable().
  • JavaScript and CSS is optional and only loads on posts & pages where shortcode is used.
  • Added single shortcode attribute to easily disable features: css, icons, images, or all.
  • Removed file type icons for image and media files.
  • Added feature that converts image file URLs into images with links using jQuery.
  • Modified row and column classes and 'group' class feature.
  • Killed even and odd classes introduced in v2.0; use CSS selectors :nth-child(even) and :nth-child(odd).
  • Added shotcode [csv src=""] and retained legacy support for [csv2table source=""].
  • Included test.csv file as default if source file is defined.

3.1

  • Fixed bug that was adding td .col class without column number (i.e. class was 'col' instead of 'col1', 'col2', etc.)
  • Added icons shortcode parameter to replace url links for certain file types (e.g. PDF, MP3, MOV) with file-type icons
  • Renamed functions using the mnsp_ prefix
  • Cleaned up code

3.0

  • Replaced fopen() function with curl for retrieving .csv data
  • Added mnsp_parse_csv() function to replace fgetcsv(), which requires fopen() -- str_getcsv() would have worked with curl, but requires PHP v5.3
  • Changed the default CSS to a nicer light blue theme
  • Cleaned up code

2.1.1

  • Cleaned up code by creating a separate function for finding links in cell data.

2.1

  • Fixed problem with URLs getting truncated when converted to links.
  • Now correcly converts email and www addresses to mailto: and http:// links, respectively.

2.0

  • Automatically detects URLs contained in cells and converts them into HTML links.
  • Added group option, which assigns a unique common class to all adjacent rows containing the same data in the specified column.
  • Added even and odd classes to row groups.

1.0

  • First public release.

Requires: 3.2.1 or higher
Compatible up to: 3.5.2
Last Updated: 2013-7-11
Downloads: 7,060

Ratings

4 stars
4.7 out of 5 stars

Support

0 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,2,2
100,1,1
100,3,3
100,1,1
50,2,1
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
50,2,1