1. Install the WP-Table Reloaded plugin.
2. Go to plugin options and untick the following:
a. JavaScript library: Yes, enable the use of a JavaScript library. WP-Table Reloaded includes three JavaScript libraries that can add useful features, like sorting, pagination, and filtering, to a table.
AND
b. List of Tables features: Yes, use the DataTables JavaScript features (sorting, pagination, filtering) on the “List Tables” screen.
3. Now create a new page, let’s say, and add your table in it. [table id=1 /]
4. Find a way to insert script into the <head> of your website. My way of doing this was to install the HiFi (Head Injection, Foot Injection) plugin, which allows you to do this customization easily. So if you have installed this plugin, go to the page you are about to create, find the Head & Foot box, and insert inside the <head> the following codes:
To import the necessary CSS styling file.
<style type="text/css" media="all">
/* <![CDATA[ */
@import url("https://localhost/wordpress/wp-content/plugins/wp-table-reloaded/css/datatables.css?ver=1.9.1");
/* ]]> */
</style>
To import the necessary Javascript files, so the plugin will work.
<script type="text/javascript" language="javascript" src="https://localhost/wordpress/wp-content/plugins/wp-table-reloaded/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="https://localhost/wordpress/wp-content/plugins/wp-table-reloaded/js/jquery.datatables.min.js?ver=1.9.1"></script>
Finally, to add a functionality, like “Individual column filtering”, insert this:
[Code moderated as per the Forum Rules. Please use the pastebin]
Make sure to change MYTABLEID to your table id.