Cornerstone Custom Post Type Filter Radio Button and Search Keyword
By The FunGroup Brand
Working with the latest WP update
This is a component working with Themeco Cornerstone Theme Builder. It won’t work on its own. If you are already a user or wish to become one (and I think you should :)), of Cornerstone Theme Builder, 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 a simple filter component created using only Cornerstone component parameters, a few lines of jQuery, and a bit of PHP.
Fields can be displayed as radio button style, it will filter all the selected posts. You can add up to 7 taxonomy parents in this version, and as many child terms as you want.
To see the limitations, please refer to the ‘Key Features’ section below.
This comes with two files:
- Search-keyword-and-filter-radio-btn-v-1.tco.zip
- Search-keyword-and-filter-radio-btn-V1.zip
Unzip the first file, search-keyword-and-filter-radio-btn-v-1.tco.zip
, and import it into the template section of your Cornerstone Theme Builder.
Do not unzip the second file, search-keyword-and-filter-radio-btn-v1.php.zip
. Instead, go to your WordPress dashboard > Plugins > Add New, click on Upload Plugin, locate the second file on your computer, and upload it. After uploading, make sure it is activated.
Version v.1
New name search-keyword-and-filter-radio-btn-v-1
- Added a search keyword field that works with meta-query data, such as ACF fields, allowing users to search for specific keywords within the metadata you want to include. The search results will be displayed in the result container.
- To optimize the search process, metadata must be input manually, ensuring the search is restricted to relevant data instead of scanning the entire database.