1. Home
  2. Knowledge Base
  3. Posts Table Pro
  4. Advanced Usage

Adding advanced search to the posts table

Posts Table Pro comes with an instant AJAX search box which appears above the list of posts, as well as a standalone search box. You can add more advanced logic to either or both searches by using it with the SearchWP plugin.

We have integrated Posts Table Pro with SearchWP so that the two plugins will work perfectly together with no special configuration. This allows you to use all of SearchWP's powerful search functionality, including:

  • Choose which data is searchable, including data that isn't usually indexed such as attributes and custom fields, and the content of supported file types.
  • Control how search results are ordered and prioritized.
  • Analytics and reporting on how people are using the search.

Instructions - search box above the table

This is how to use SearchWP to power the search box that appears above the table:

  1. Install Posts Table Pro and enable the lazy load option.
  2. Install SearchWP and make sure you have the post type that you are displaying in the table as a Source on the default SearchWP engine.

The instructions above will make SearchWP power the search box above the list of documents. You can also use SearchWP to  power the standalone search that is built into Document Library Pro.

This is how to do it:

  1. Install Posts Table Pro and enable the lazy load option.
  2. Install SearchWP and make sure you have the post type that you are displaying in the table as a Source on the default SearchWP engine.
  3. Finally, add the 'Posts Table Pro: Search Box' widget or [ptp_search] shortcode anywhere on your site, e.g. the homepage or a sidebar.

Once you have done this, customers can use the search box (which will be powered by SearchWP) wherever it appears on your site. The results will appear within the table view.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.