Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

SortTable Post

This plugin allows you to display an index of posts (or a custom post type) in a sortable table on any page or post, using a simple shortcode.

How do I style my sortable tables?

I know, I know. The default colors look pretty nasty in most themes. Also, you may want to style individual columns. Below is the code I used to change the default colors to match my theme on the live demo seen here: http://mynewsitepreview.com/sorttablepost-wordpress-plugin-live-demo

You can add similar code to your theme's style.css:

/* Header Row Colors */
table.sortable thead tr {
    background-color: #71a7c8 !important;
    color: #fff !important;

/*  Highlight Color for Header Row Cells on Hover*/
table.sortable th:hover:not(.sorttable_nosort) {
    background: #b3d0e1 !important;

/* Shading For Even Rows */
table.sortable tr:nth-child(even) { background: #f6f6f6 !important; }

/* Table Border Color */
table.sortable th,
table.sortable td {
    border: 1px solid #71a7c8 !important;

/*  Style & Width of Particular Columns */
table.sortable td.col3,
table.sortable td.col4,
table.sortable td.col5,
table.sortable td.col6,
table.sortable td.col7 {
    text-align: center !important;
    width: 10% !important;

Requires: 3.2.1 or higher
Compatible up to: 3.2.1
Last Updated: 5 years ago
Active Installs: 300+


2.7 out of 5 stars


Got something to say? Need help?


Not enough data

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

100,1,1 100,1,1 100,3,3