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.
Author: | Shaun Scovil (profile at wordpress.org) |
WordPress version required: | 3.2.1 |
WordPress version tested: | 3.2.1 |
Plugin version: | 4.2 |
Added to WordPress repository: | 09-11-2011 |
Last updated: | 12-11-2011
Warning! This plugin has not 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.
|
Rating, %: | 54 |
Rated by: | 3 |
Plugin URI: | http://mynewsitepreview.com/sorttablepost |
Total downloads: | 5 989 |
Active installs: | 100+ |
Click to start download |
Ever want to list your WordPress posts in an easy-to-read, sortable data table? This plugin makes it easy to do just that. It supports post thumbnails, custom post types, custom taxonomies, and (as of v4.0) custom fields.
By default, the plugin outputs the following columns:
- Post Thumbnail (if enabled)
- Post Title
- Post Date
- Post Categories
- Post Tags
Options include:
- Omit any of the default columns
- Replace
Post
with a custom post type - Replace
Categories
andTags
with custom taxonomies - As of version 4.0 you can insert any number of custom field columns
How To Use
[sorttablepost]
Place this shortcode into a post or page to insert a sortable table of all posts.
Hide Standard Columns
[sorttablepost nothumb="true" notitle="true" nodate="true" nocats="true" notags="true"]
You can omit any undesired columns by using one or more of these shortcode options.
Show Custom Post Type
[sorttablepost type="my-custom-post-type"]
You can specify the name of a custom post type (or page
), instead of showing posts.
Use Custom Taxonomies
[sorttablepost cat="my-custom-taxonomy" tag="another-custom-taxonomy"]
You can replace the standard Categories
or Tags
columns (or both) with custom taxonomies.
Use Custom Fields
[sorttablepost meta="Custom Field Key,Another Custom Field Key,Yet Another"]
As of v4.0, you can add as many custom field columns as you like. Use a comma-seperated list of field keys.
Assign Unique ID to Table
[sorttablepost id="mytable"]
As of v4.2, you can give each table a unique ID. This is particularly useful when displaying multiple tables on the same page, as it allows you to style each one differently.
About This Plugin
For more information about this plugin, visit: http://mynewsitepreview.com/sorttablepost/
To see a live demo, visit: http://mynewsitepreview.com/sorttablepost-wordpress-plugin-live-demo
About SortTable.js
The sortable table portion of this plugin is made possible by Stuart Langridge's awesome Javascript library.
Documentation for sorttable.js can be found at: http://www.kryogenix.org/code/browser/sorttable/
FAQ
ChangeLog