There is no built in way to display tables of information in WordPress. You either have to hand code it yourself (which requires knowledge of HTML), bring in an existing table from a program like Dreamweaver (ugh. don’t get me started), OR the best solution, use a little plugin called WP-Table Reloaded.

WP-Table Reloaded is a plugin that will allow you to display tables of information in posts, pages, or in widgets. You can download it from the WordPress plugin respository here: http://wordpress.org/extend/plugins/wp-table-reloaded/ . It is the only plugin I use to display tables.

WP-Table Reloaded allows you the following (not necessarily a complete list):

  • manage tables in your WP admin area
  • show them in your posts, on pages or in text widgets using a shortcode or anywhere else in your theme using a template tag function (see Usage)
  • table features include (may be enabled for each table individually)
    • any content, even HTML, you like
    • table structure can contain colspanned and rowspanned cells
    • first row will be table headline (HTML tag <th>)
    • last row will be table footer (HTML tag <th>)
    • alternating row colors
    • row highlighting (when hovered with the mouse)
    • print table’s name above or under the table
    • print table’s description above or under the table
    • use the DataTables JavaScript library to allow pagination, sorting, and filtering of table data (see Demo)
    • individual styling of your table via CSS Styling possible (this may be used for different column widths or text-alignment)
  • functions in the backend include:
    • add/create tables (by manual input)
    • import a table (from CSV, XML or HTML files, URLs or direct input)
    • export/save/backup a table to these formats
    • import tables from old WP-Table plugin (if found)
    • edit the table data and structure (add/insert/delete/move/swap/hide columns/rows, sort columns)
    • easily add links or images to your table (from the Media Library)
    • copy/duplicate and delete tables
    • easily insert a table in to your posts/pages using a button in the editor toolbar
    • preview the table
Advertisements