Title: Posts Table with Search &amp; Sort
Author: Barn2 Plugins
Published: <strong>January 29, 2016</strong>
Last modified: December 8, 2025

---

Search plugins

![](https://ps.w.org/posts-data-table/assets/banner-772x250.png?rev=2997236)

![](https://ps.w.org/posts-data-table/assets/icon-256x256.png?rev=2997236)

# Posts Table with Search & Sort

 By [Barn2 Plugins](https://profiles.wordpress.org/barn2media/)

[Download](https://downloads.wordpress.org/plugin/posts-data-table.1.4.12.zip)

[Live Preview](https://mlt.wordpress.org/plugins/posts-data-table/?preview=1)

 * [Details](https://mlt.wordpress.org/plugins/posts-data-table/#description)
 * [Reviews](https://mlt.wordpress.org/plugins/posts-data-table/#reviews)
 *  [Installation](https://mlt.wordpress.org/plugins/posts-data-table/#installation)
 * [Development](https://mlt.wordpress.org/plugins/posts-data-table/#developers)

 [Support](https://wordpress.org/support/plugin/posts-data-table/)

## Description

_Posts Table with Search & Sort_ is a WordPress table plugin which helps site owners
organize WordPress posts into sortable and filterable tables, making it easy for
your audience to find the content they need.

Visitors can easily filter content by date, category, tag or author – making this
WordPress table plugin highly adaptable to different use cases.

Install this plugin to organize your WordPress posts into simple, searchable, and
visibly appealing tables. It includes pagination and responsive layouts for smaller
screens as standard.

To get started with this WordPress table plugin, simply add the shortcode `[posts_table]`
to any page or widget.

**Posts Table with Search & Sort (free) includes:**

 * Create sortable and filterable post tables.
 * Choose any or all of the following columns: post ID, image, title, content, categories,
   tags, author, or date.
 * Streamlined content using pagination.
 * 100% responsive to different screen sizes.
 * Display WordPress blog posts in a simple HTML table.
 * WPML compatible for international translations.

**[Posts Table Pro](https://barn2.com/wordpress-plugins/posts-table-pro/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)–
our premium version adds lots more functionality:**

[View free & pro comparison table](https://barn2.com/kb/posts-table-free-pro-comparison/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)

 * Display posts, pages, or any custom post type (e.g. documents, audio, music, 
   courses, products, staff and member directories, publications, articles, books,
   etc).
 * Add extra columns: custom fields, custom taxonomies, post excerpts, status.
 * WordPress media embeds, including audio and video galleries and media playlists.
 * Showcase featured images in a lightbox and choose your image size.
 * Dropdown filters for taxonomies, categories, and tags.
 * Select posts by custom field, term, date, ID, and more.
 * Advanced Custom Fields and ACF Pro support.
 * Enable AJAX to reduce server load.
 * 100% responsive, with options to control how behaviour on different screen sizes
   and devices.
 * Support for advanced use cases such as how to create [compelling tables for your blog](https://barn2.com/wordpress-post-table/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
   a [WordPress document library](https://barn2.com/wordpress-document-library-plugin/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
   [member directory](https://barn2.com/wordpress-member-directory-plugin/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
   [audio gallery](https://barn2.com/wordpress-audio-library/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
   or an [intranet for your organization](https://barn2.com/wordpress-intranet-plugins/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free).
 * [And much more…](https://barn2.com/our-wordpress-plugins/posts-table-pro-features/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)

**[WooCommerce Product Table](https://barn2.com/wordpress-plugins/woocommerce-product-table/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)–
create product tables from your WooCommerce store:**

 * Include Add to Cart buttons, quantity, price, reviews, stock level, categories,
   tags, weight, dimensions, and more.
 * Full support for WooCommerce products and stores.
 * Create custom order forms which increase your conversion rate!
 * Support for advanced use cases such as [restaurant ordering systems](https://barn2.com/online-restaurant-ordering-system-woocommerce/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
   [events calendars](https://barn2.com/woocommerce-events/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
   and [advanced order forms](https://barn2.com/woocommerce-order-form-plugin/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free).

Translations for _Posts Table with Search & Sort_ are currently provided for French,
Spanish, German, Greek and Chinese (Taiwan). This data-table plugin is WPML-compatible
for content translation, so if you’re using WPML, you’ll be able to display post
tables in whichever language you have set up.

We make use of the jQuery DataTables library to power the searching and sorting 
features.

[See the demo](https://poststable-free.barn2.com/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)
for examples of the plugin in action, and view the full [plugin documentation](https://barn2.com/kb-categories/posts-table-search-sort-free-kb/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)
in our Knowledge Base.

### How to create your own WordPress Post Tables

You can use _Posts Table with Search & Sort_ to display your content in searchable
and sortable tables. This has a huge range of use cases, from a simple archive of
your posts, to previews of your content, to sorting by author, tags, date, and more.

To list blog posts in a table, simply enter the shortcode `[posts_table]` to any
WordPress page, post, or text widget. The easiest way to set your columns and other
options is on the plugin settings page at _Settings > Posts Table With Search & 
Sort_. These global settings will affect all the posts tables throughout your WordPress
site.

You can also add options directly to the shortcode. This allows you to configure
each table individually – for example, in order to show different columns in each
table, or to list posts from specific categories. Here are a couple of examples 
of shortcodes you can use:

 1. **List your posts in a table with 4 columns** (image, title, content, and date)
    showing the first 10 words of each post in the content column: `[posts_table columns
    ="image,title,content,date" content_length="10"]`
 2. **List posts in a table with with 5 columns** (post ID, title, tags, date and author),
    and sort in ascending date order: `[posts_table columns="id,title,tags,date,author"
    sort_by="date" sort_order="asc"]`
 3. **List posts in a table with rows on one line** by using the parameter `wrap=false`.
    If selected columns no longer fit in the table, then a “+” icon will appear to 
    the left of each row to allow access to the rest of the data: `[posts_table wrap
    ="false" rows_per_page="5"]`
 4. **List posts in a table sortable by any column**. If the column does not appear
    in your table, it will be added as a hidden column at the end, so the ordering 
    still works as expected. This example sorts each post by title. It also shows how
    to use `content_length` to set the number of words in the `content` column: `[posts_table
    sort_by="title" columns="date,author,title,content" content_length=5 rows_per_page
    ="5"]`

You can see all of these in action [on the plugin demo](https://poststable-free.barn2.com/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
and do even more with [Posts Table Pro](https://barn2.com/wordpress-plugins/posts-table-pro/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
our premium plugin!

Popular use cases for Pro take advantage of advanced features, including support
for custom post types, advanced filtering, and media embed support, letting you 
[build your own WordPress document library](https://barn2.com/wordpress-document-library-plugin/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
[create a WordPress file manager](https://barn2.com/wordpress-file-manager/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
or create a [WordPress events table](https://barn2.com/events-calendar-table-list/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free).

### Here’s the full list of shortcode parameters you can use for this data-table plugin:

You can see some practical examples of how to build your own Post Tables above, 
and below you’ll find a full list of the shortcode parameters you can use to customize
the output of your own Posts Tables. Remember, most of these options can also be
set globally on the plugin settings page at _Settings > Posts Table With Search &
Sort_:

 * **`columns`** – the columns you’d like to show in your table. This can be any
   combination of the following (comma-separated): `id`, `image`, `title`, `content`,`
   categories`, `tags`, `author`, or `date`. Default: `title,content,date,author,
   categories`.
 * **`rows_per_page`** – the number of posts to show on each page of results. Set
   to `false` to disable pagination. Defaults to 20 rows per page.
 * **`category`** – restrict the table to this category only. Use the category ID
   or ‘slug’ here, NOT the name of the category. You can find the slug in the Posts-
   > Categories menu.
 * **`tag`** – restrict the table to this tag only. Use the tag ‘slug’ or ID here.
   You can find the slug in the Posts -> Tags menu.
 * **`author`** – restrict the posts in the table to the specified author. Use the
   author name (`user_nicename`), author ID or a comma-separated list of IDs.
 * **`post_status`** – display posts with this post status (draft, pending, publish,
   future, private or any). Default: `publish`.
 * **`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).
 * **`date_format`** – you can set the `date_format` option to choose the way the
   post date is displayed in the table. The default is Y/m/d. See [this page](https://dev.to/osejudith/php-date-time-cheat-sheet-48dm)
   for the full list of date formatting options.
 * **`search_on_click`** – whether to enable automatic searching for categories,
   tags 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.

View the [full documentation](https://barn2.com/kb-categories/posts-table-search-sort-free-kb/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
checkout the [demo](https://poststable-free.barn2.com/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free),
and if you need more features have a look at [Posts Table Pro](https://barn2.com/wordpress-plugins/posts-table-pro/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free).

Thank you for using our WordPress table plugin 🙂

## Screenshots

 * [[
 * Searching and sorting a posts table.
 * [[
 * Choose your columns so users can quickly access post information.
 * [[
 * Sort by any column – this example shows a table sorted by Content.
 * [[
 * Prevent rows wrapping onto multiple lines – users can expand a row for extra 
   information.
 * [[
 * The settings page.
 * [[
 * Upgrade to Posts Table Pro for premium features including custom post types, 
   custom fields, multimedia embeds, and much more.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/posts-data-table` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to _Settings > Posts Table With Search & Sort_ and configure your post tables.
 4. Add the shortcode `[posts_table]` to any page.

## FAQ

### How do I display the posts table?

Simply choose your options at _Settings > Posts Table With Search & Sort_, then 
add the shortcode `[posts_table]` to any page.

### Does it show all posts or can I restrict it to a certain category?

By default it will list all of your posts, but you can use the ‘category’, ‘tag’,‘
author’ or ‘post_status’ option in the shortcode to restrict the table to that category/
tag/author/status only.

### What are the shortcode options?

See the main [plugin description](https://wordpress.org/plugins/posts-data-table/)
above for the list of options.

### Can I see a demo of the plugin?

Yes, please visit [our plugin demo](https://poststable-free.barn2.com/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)
to see the posts table in action.

### Will the posts table work with my theme?

The plugin has been designed to work with different WordPress themes and will take
the styling from your theme for the fonts etc. where possible.

### Does the posts table work with custom post types?

No, it only displays standard Posts. Our [Pro Version](https://barn2.com/wordpress-plugins/posts-table-pro/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free)
supports custom post types, as well as taxonomies, custom fields, and much more.

### Can I change the width of the columns?

The column widths are calculated automatically by the plugin, based on the contents
of each column. However, you can override this for one (or more) columns by setting
an exact width. You would need to add some code to your theme (or in a custom plugin)
to do this. The filter to hook into is `posts_data_table_column_defaults`. Here’s
an example setting the `title` column to 80px;

    ```
    add_filter( 'posts_data_table_column_defaults', 'posts_table_set_title_column_width' );

    function posts_table_set_title_column_width( $column_defaults )
        $column_defaults['title']['width'] = '80px';
        return $column_defaults;
    }
    ```

Bear in mind that the plugin might still override your column width if there isn’t
enough room for the data it contains, or the rest of the columns in the table.

### Does it work on mobiles/tablets?

Yes, the table will automatically adapt to fit different screen sizes. If your table
has too many columns to fit on smaller screens then a ‘+’ icon will appear alongside
each post, allowing you to click to view the hidden columns.

### When I click to the next page on my posts list, I can’t see the top of the table

This is probably because you have a sticky header (your header sticks to the top
of the screen when you scroll down). This means it’s covering the top of your posts
table. You can add a ‘scroll offset’ to push the table down to prevent this from
happening. For example, if your sticky header is 50 pixels high then use `[posts_table
scroll_offset="50"]`

### How do I use the posts table with WPML?

If you have a multilingual site using WPML then the plugin will display your posts
in the correct language automatically.

### Can you customize the plugin for me?

We developed this free plugin to be flexible and easy to configure so that it will
be suitable for many different websites. If you would like to modify the plugin 
to suit your exact requirements, we would recommend [Codeable](https://barn2.com/go/codeable/?utm=content&utm_source=wporg&utm_content=posts-table-free)

### Where can I find the documentation?

Please visit our [Knowledge Base](https://barn2.com/kb-categories/posts-table-search-sort-free-kb/?utm=content&utm_source=wporg&utm_medium=freeplugin&utm_campaign=freepluginwporg&utm_content=posts-table-free).

### Where do I report security bugs found in this plugin?

Please report any security bugs through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/posts-data-table).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.

## Reviews

![](https://secure.gravatar.com/avatar/3637d827ddea992cc37ea2128c0966a52cf2c49ee03c6053cc8dd2c0b33d4453?
s=60&d=retro&r=g)

### 󠀁[Great plugin, outstanding support](https://wordpress.org/support/topic/great-plugin-outstanding-support-61/)󠁿

 [barkingbird](https://profiles.wordpress.org/barkingbird/) May 27, 2024 1 reply

I bought the Pro version and the plugin works great, well worth the money. There
is nothing else out there like it. The support I received has been fantastic and
much appreciated!

![](https://secure.gravatar.com/avatar/d54979d7b906632d5258512990cabac09fe488c557595c2ae54f07ea68b0239d?
s=60&d=retro&r=g)

### 󠀁[Good Plugin and good support](https://wordpress.org/support/topic/good-plugin-and-good-support-70/)󠁿

 [fraskeke](https://profiles.wordpress.org/fraskeke/) January 9, 2024 1 reply

A great plugin with solid support, lightweight, and easy to set up. It provides 
an effective solution. What more could you ask for? Thanks.

![](https://secure.gravatar.com/avatar/79e10f1cc126463050bac83cb078bc91209b5f902a353f57cad476ccea7aab1c?
s=60&d=retro&r=g)

### 󠀁[So far, so great.](https://wordpress.org/support/topic/so-far-so-great-38/)󠁿

 [jerome21z](https://profiles.wordpress.org/jerome21z/) February 2, 2023 1 reply

I don’t usually leave reviews so early, but this thing is so easy to use right out
of the box, there’s no reason for me not to! Simple to use, works like a charm, 
and is easily responsive. If I have a gripe, believe me, I would say so. But, if
you’re reading this and you’ve been in my position – needing to tablize your posts
with sorting and search features – then install this. I’m sure you’ll be glad you
did.

![](https://secure.gravatar.com/avatar/5e8c09ee2e563f698991a154aac66154135c1a3005d59deaecca25f5d6ac0a68?
s=60&d=retro&r=g)

### 󠀁[Very Helpfull Plugin](https://wordpress.org/support/topic/very-helpfull-plugin-29/)󠁿

 [bharti9107](https://profiles.wordpress.org/bharti9107/) March 31, 2022 1 reply

Thank You Edge for you great support.

![](https://secure.gravatar.com/avatar/8abe2b9fdd27d91c967ccd5212b6437a3e3d31eca9e860df4815338ae398b335?
s=60&d=retro&r=g)

### 󠀁[update the pot file](https://wordpress.org/support/topic/update-the-pot-file/)󠁿

 [larraisme](https://profiles.wordpress.org/larraisme/) May 25, 2021 1 reply

This plugin really solved lots of people’s problem. Thank you!!! But, I come from
Asia, so I need to translate some words to chinese. I used loco translate (plugin)
to translate, but the pot file was not the latest version. Could you update the 
pot file? Thaaaaanks

![](https://secure.gravatar.com/avatar/3f340d05801af2b663e853f1fbc31780fa0ff25a5fd0c1297976666ce3596596?
s=60&d=retro&r=g)

### 󠀁[Table Directory Not Showing](https://wordpress.org/support/topic/table-directory-not-showing/)󠁿

 [jaimemoncada](https://profiles.wordpress.org/jaimemoncada/) December 28, 2020 
1 reply

The Plugin Features are excellent but sad to say the Table directory is not showing
on my end. Kindly check this issue.

 [ Read all 20 reviews ](https://wordpress.org/support/plugin/posts-data-table/reviews/)

## Contributors & Developers

“Posts Table with Search & Sort” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Barn2 Plugins ](https://profiles.wordpress.org/barn2media/)

“Posts Table with Search & Sort” has been translated into 9 locales. Thank you to
[the translators](https://translate.wordpress.org/projects/wp-plugins/posts-data-table/contributors)
for their contributions.

[Translate “Posts Table with Search & Sort” into your language.](https://translate.wordpress.org/projects/wp-plugins/posts-data-table)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/posts-data-table/),
check out the [SVN repository](https://plugins.svn.wordpress.org/posts-data-table/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/posts-data-table/)
by [RSS](https://plugins.trac.wordpress.org/log/posts-data-table/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.4.12

Release date 8 December 2025

 * Dev: Updated internal libraries
 * Dev: Tested up to WordPress 6.9

See changelog.txt for more details.

## Commercial plugin

This plugin is free but offers additional paid commercial upgrades or support. [View support](https://barn2.com/support-center/)

## Meta

 *  Version **1.4.12**
 *  Last updated **4 months ago**
 *  Active installations **3,000+**
 *  WordPress version ** 6.1 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Bengali (Bangladesh)](https://bn.wordpress.org/plugins/posts-data-table/), [Chinese (Taiwan)](https://tw.wordpress.org/plugins/posts-data-table/),
   [English (Canada)](https://en-ca.wordpress.org/plugins/posts-data-table/), [English (New Zealand)](https://en-nz.wordpress.org/plugins/posts-data-table/),
   [English (UK)](https://en-gb.wordpress.org/plugins/posts-data-table/), [English (US)](https://wordpress.org/plugins/posts-data-table/),
   [French (France)](https://fr.wordpress.org/plugins/posts-data-table/), [Persian](https://fa.wordpress.org/plugins/posts-data-table/),
   [Russian](https://ru.wordpress.org/plugins/posts-data-table/), and [Swedish](https://sv.wordpress.org/plugins/posts-data-table/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/posts-data-table)
 * Tags
 * [table](https://mlt.wordpress.org/plugins/tags/table/)[table plugin](https://mlt.wordpress.org/plugins/tags/table-plugin/)
   [wordpress table](https://mlt.wordpress.org/plugins/tags/wordpress-table/)[WordPress table plugin](https://mlt.wordpress.org/plugins/tags/wordpress-table-plugin/)
 *  [Advanced View](https://mlt.wordpress.org/plugins/posts-data-table/advanced/)

## Ratings

 4.6 out of 5 stars.

 *  [  16 5-star reviews     ](https://wordpress.org/support/plugin/posts-data-table/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/posts-data-table/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/posts-data-table/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/posts-data-table/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/posts-data-table/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/posts-data-table/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/posts-data-table/reviews/)

## Contributors

 *   [ Barn2 Plugins ](https://profiles.wordpress.org/barn2media/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/posts-data-table/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://barn2.com)