Cornerstone Filter radio button and checkbox and search keyword with ajax
By The FunGroup Brand
Working with the latest WP update
This component works with the Themeco Cornerstone Theme Builder and won’t function on its own. If you are already a user or wish to become one (and I think you should!), then this filter is for you.
If you are looking for an alternative to premium plugins like Search and Filter Pro or Search WP, then you are in the right place. This is an advanced filter component created using only Cornerstone component parameters, some jQuery, and PHP.
Fields can be displayed as checkboxes or radio buttons. It will filter all the selected posts for your desired post types and supports AJAX.
You have a lot of customization options available, such as order by, order, multiple custom post types, excluded posts, reset button, load more button, and customization of “No Results Found” and “Loading Posts” messages.
To see the limitations, please refer to the ‘Key Features’ section below.
Version 4 Features
- Intelligent pagination that adapts based on current page position
- Shows head pages (1-5), tail pages (last 5), and a dynamic middle window around the current page
- Eliminates ellipses between consecutive pages for cleaner navigation
- Configurable maxPages threshold to determine when ellipses are needed
- Custom ellipsis characters support
- OR-based search across post titles, content, and excerpts
- ACF field search with automatic fallback to core fields when ACF fields are empty
- Keyword search through AJAX without page reload
- Real-time filtering that preserves search state across page navigation
- Form submission prevention – Enter key triggers AJAX search instead of page reload
- State persistence – Filters and search terms maintained across pagination clicks
- URL parameter sync – Proper URL updates for pagination while keeping forms clean
- Smart button visibility – Load more/less buttons hide appropriately based on results
After purchasing the product, you will receive three ZIP files:
- Cornerstone Search and Filter-v4F.tco.zip
- Info Card-CS Search and Filter-for V4F.tco.zip
- Cornerstone Search and Filter-v4-1.php.zip
Unzip the first two files, Info Card-CS Search and Filter-for V4F.tco.zip
and Cornerstone Search and Filter-v4F.tco.zip
, and import them into the template section of your Cornerstone Theme Builder.
Do not unzip the third file, Cornerstone Search and Filter-v4-1.php.zip
. Instead, go to your WordPress dashboard > Plugins > Add New, click on Upload Plugin, locate the third file on your computer, and upload it. After uploading, make sure it is activated.