{"id":15629,"date":"2011-11-09T03:20:51","date_gmt":"2011-11-09T03:20:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sorttable-post\/"},"modified":"2011-11-12T20:17:36","modified_gmt":"2011-11-12T20:17:36","slug":"sorttable-post","status":"closed","type":"plugin","link":"https:\/\/az-tr.wordpress.org\/plugins\/sorttable-post\/","author":7270592,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4.2","stable_tag":"trunk","tested":"3.2.1","requires":"3.2.1","requires_php":"","requires_plugins":"","header_name":"SortTable Post","header_author":"Shaun Scovil","header_description":"","assets_banners_color":"","last_updated":"2011-11-12 20:17:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/mynewsitepreview.com\/sorttablepost","header_author_uri":"http:\/\/shaunscovil.com\/","rating":2.7,"author_block_rating":0,"active_installs":70,"downloads":6539,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":"1","4":"1","5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[86,4644,822,21175,2289],"plugin_category":[],"plugin_contributors":[83145],"plugin_business_model":[],"class_list":["post-15629","plugin","type-plugin","status-closed","hentry","plugin_tags-post","plugin_tags-sort","plugin_tags-sortable","plugin_tags-sorttable","plugin_tags-table","plugin_contributors-sscovil","plugin_committers-sscovil"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sorttable-post.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>By default, the plugin outputs the following columns:<\/p>\n\n<ol>\n<li>Post Thumbnail (if enabled)<\/li>\n<li>Post Title<\/li>\n<li>Post Date<\/li>\n<li>Post Categories<\/li>\n<li>Post Tags<\/li>\n<\/ol>\n\n<p>Options include:<\/p>\n\n<ul>\n<li>Omit any of the default columns<\/li>\n<li>Replace <code>Post<\/code> with a custom post type<\/li>\n<li>Replace <code>Categories<\/code> and <code>Tags<\/code> with custom taxonomies<\/li>\n<li>As of version 4.0 you can insert any number of custom field columns<\/li>\n<\/ul>\n\n<p><strong>How To Use<\/strong><\/p>\n\n<pre><code>[sorttablepost]\n<\/code><\/pre>\n\n<p>Place this shortcode into a post or page to insert a sortable table of all posts.<\/p>\n\n<p><strong>Hide Standard Columns<\/strong><\/p>\n\n<pre><code>[sorttablepost nothumb=\"true\" notitle=\"true\" nodate=\"true\" nocats=\"true\" notags=\"true\"]\n<\/code><\/pre>\n\n<p>You can omit any undesired columns by using one or more of these shortcode options.<\/p>\n\n<p><strong>Show Custom Post Type<\/strong><\/p>\n\n<pre><code>[sorttablepost type=\"my-custom-post-type\"]\n<\/code><\/pre>\n\n<p>You can specify the name of a custom post type (or <code>page<\/code>), instead of showing posts.<\/p>\n\n<p><strong>Use Custom Taxonomies<\/strong><\/p>\n\n<pre><code>[sorttablepost cat=\"my-custom-taxonomy\" tag=\"another-custom-taxonomy\"]\n<\/code><\/pre>\n\n<p>You can replace the standard <code>Categories<\/code> or <code>Tags<\/code> columns (or both) with custom taxonomies.<\/p>\n\n<p><strong>Use Custom Fields<\/strong><\/p>\n\n<pre><code>[sorttablepost meta=\"Custom Field Key,Another Custom Field Key,Yet Another\"]\n<\/code><\/pre>\n\n<p>As of v4.0, you can add as many custom field columns as you like. Use a comma-seperated list of field keys.<\/p>\n\n<p><strong>Assign Unique ID to Table<\/strong><\/p>\n\n<pre><code>[sorttablepost id=\"mytable\"]\n<\/code><\/pre>\n\n<p>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.<\/p>\n\n<p><strong>About This Plugin<\/strong><\/p>\n\n<p>For more information about this plugin, visit: http:\/\/mynewsitepreview.com\/sorttablepost\/<\/p>\n\n<p>To see a live demo, visit: http:\/\/mynewsitepreview.com\/sorttablepost-wordpress-plugin-live-demo<\/p>\n\n<p><strong>About SortTable.js<\/strong><\/p>\n\n<p>The sortable table portion of this plugin is made possible by Stuart Langridge's awesome Javascript library.<\/p>\n\n<p>Documentation for sorttable.js can be found at: http:\/\/www.kryogenix.org\/code\/browser\/sorttable\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Insert the shortcode <code>[sorttablepost]<\/code> in any post or page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I style my sortable tables?<\/dt>\n<dd><p>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<\/p>\n\n<p>You can add similar code to your theme's <code>style.css<\/code>:<\/p>\n\n<pre><code>\/* Header Row Colors *\/\ntable.sortable thead tr {\n    background-color: #71a7c8 !important;\n    color: #fff !important;\n}\n\n\/*  Highlight Color for Header Row Cells on Hover*\/\ntable.sortable th:hover:not(.sorttable_nosort) {\n    background: #b3d0e1 !important;\n}\n\n\/* Shading For Even Rows *\/\ntable.sortable tr:nth-child(even) { background: #f6f6f6 !important; }\n\n\/* Table Border Color *\/\ntable.sortable th,\ntable.sortable td {\n    border: 1px solid #71a7c8 !important;\n}\n\n\/*  Style &amp; Width of Particular Columns *\/\ntable.sortable td.col3,\ntable.sortable td.col4,\ntable.sortable td.col5,\ntable.sortable td.col6,\ntable.sortable td.col7 {\n    text-align: center !important;\n    width: 10% !important;\n}\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.2<\/h4>\n\n<ul>\n<li>Added function to convert links and email addresses contained in custom field values into HTML links.<\/li>\n<li>Added option to assign a unique ID to the table.<\/li>\n<\/ul>\n\n<h4>4.1<\/h4>\n\n<ul>\n<li>Added option to include a Post Excerpt column.<\/li>\n<li>Cleaned up code by grouping variable initializations.<\/li>\n<\/ul>\n\n<h4>4.0<\/h4>\n\n<ul>\n<li>Added option to omit the Title column.<\/li>\n<li>Added support for custom field columns.<\/li>\n<li>Made hide-column shortcode options work regardless of singular or plural (e.g. <code>nothumb=\"true\"<\/code> works the same as <code>nothumbs=\"true\"<\/code>).<\/li>\n<\/ul>\n\n<h4>3.0<\/h4>\n\n<ul>\n<li>Added options to omit the Thumbnail, Date, and Category columns.<\/li>\n<li>Cleaned up code for human readability.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Added support for custom taxonomies.<\/li>\n<li>Added option to omit the Tags column.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First public release.<\/li>\n<\/ul>","raw_excerpt":"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.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15629"}],"author":[{"embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sscovil"}],"wp:attachment":[{"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15629"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15629"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15629"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15629"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15629"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/az-tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}