Wordpress plugins
Posts Table with Search & Sort

Posts Table with Search & Sort

Version : 1.1
Tested up to : 4.8.2
Number of download : 7114
Author : Barn2 Media
Average rating : 5 / 5 on 7 votes 7 votes, 5 avg.rating

Screenshots

Posts Table with Search & Sort
Posts Table with Search & Sort
Posts Table with Search & Sort
Posts Table with Search & Sort

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 columns, given as a comma-separated list: id, title, content, category, tags, 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 ID or ‘slug’ here, NOT the name of the category. You can find the slug from the Posts -> Categories menu in the WordPress admin. tag – restrict the table to this tag only. Use the tag ‘slug’ or ID here. You can find the slug from the Posts -> Tags menu. 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. Examples The following will list your posts in a table with 3 columns (title, content and date columns) showing the first 10 words of each post in the content column: [posts_data_table columns='title,content,date' content_length="10"] The following will list posts with 4 columns (ID, title, tags, and author columns), and will be sorted by date in ascending order (oldest posts first): [posts_data_table columns='id,title,tags,author' sort_by="date" sort_order="asc"] Demo Please see the demo for examples of the plugin in action.

Download now