WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Posts Table with Search & Sort

A simple plugin to display all your posts in a searchable and sortable table or list.

Posts Table with Search & Sort provides an easy way to list all of your site's posts in a searchable and sortable data table. Simply add the shortcode [posts_data_table] to any page.

It uses the jQuery DataTables plugin to provide the searching and sorting features, as well as pagination and responsive layouts for smaller screens.

Posts Table Pro now available, with lots more features including:

  • Support for for pages and custom post types (e.g. courses, products, staff, music, books, etc)
  • Featured images
  • Custom taxonomies, terms and posts tags
  • Custom fields & support for Advanced Custom Fields

WooCommerce Product Table now available - create tables of products from your WooCommerce store:

  • Include Add to Cart buttons, quantity, price, reviews, stock level, categories, tags, weight, dimensions, and more!

Translations currently provided for French, Spanish and German (more to follow).

It's compatible with WPML which means that, if you're using this, posts will be shown for the current language only.

There are a few options available with the shortcode:

  • columns - the columns you'd like to show in your table. This can be any of the following as a comma-separated list: id, title, content, category, author, and date. Defaults to 'title,content,date,author,category'
  • rows_per_page - the number of posts to show on each page of results in the table. Set to 'false' to disable pagination. Defaults to 20 rows.
  • category - restrict the table to this category only. Use the category 'slug' here, NOT the name of the category. You can find the slug from the Posts -> Categories menu in the WordPress admin.
  • sort_by - the column to sort by. Defaults to 'date'. If the column you want to sort by isn't shown in the table, it will be added as a hidden column. This means, for example, that you can sort by date without actually showing the date column.
  • sort_order - whether to sort ascending ('asc') or descending ('desc'). If you order by date, it will default to 'desc' (newest posts first).
  • search_on_click - whether to enable automatic searching for categories and authors when clicking on links in the table. Default: true
  • wrap - whether the table content wraps onto more than one line. Set to 'false' to keep everything on one line or 'true' to allow the content to wrap. Default: true
  • content_length - the number of words of post content to show in the table (if you've included the 'content' column). Defaults to 15 words.
  • scroll_offset - advanced: the table scrolls back to the top each time you navigate forward or backwards through the list of posts. This
    value controls the 'offset' for the scroll. For example, if your site uses a sticky header you can adjust the scroll amount here to compensate. Enter a whole number (e.g. 50) or set to 'false' to disable scrolling to top.

Example

The following will list your posts in a table with 3 columns (title, content and date) showing the first 10 words of each post:

[posts_data_table columns='title,content,date' content_length="10"]

Demo

Please see the demo for examples of the plugin in action.

Requires: 3.0.1 or higher
Compatible up to: 4.7.1
Last Updated: 2 months ago
Active Installs: 700+

Ratings

4.9 out of 5 stars

Support

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

Got something to say? Need help?

Compatibility

+
=
Not enough data

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