Cornerstone Custom Post Type Sort And Filter radio button only
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:
- cornerstone-sort-filter-radio-button-component-v-1-2.tco.zip
- cornerstone-sort-filter-radio-button-code-v-1-2.php.zip
Unzip the first file, cornerstone-sort-filter-radio-button-component-v-1-2.tco.zip
, and import it into the template section of your Cornerstone Theme Builder.
Do not unzip the second file, cornerstone-sort-filter-radio-button-code-v-1-2.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.1
- Added an identical filter as you set up in a modal. This will allow you to display the filter in a modal for mobile view (portrait and landscape).
- You can use one of the 4 predefined styles to style your radio buttons. The predefined styles are as follows: circle, circle+checkmark, square, square+checkmark.