The following example adds a toggle all option to the end of a filter group.
The Filters add-on for Ajax Load More can add a toggle checkbox to the start or end of filter group listing that allows users to toggle the selected state of all filters with a single click.
Example
Filter by Category
- Open Source
- Tutorial
- Announcement
- Toggle All
Shortcodes
The following shortcodes were used in the above example.
Filters Shortcode[ajax_load_more_filters id="checkbox_toggle" target="my_checkbox_toggle"]
Ajax Load More Shortcode[ajax_load_more id="my_checkbox_toggle" target="checkbox_toggle" filters="true" post_type="post"]
Filter Group
The screenshot below illustrates how to set up a toggle checkbox in the Ajax Load More Filters admin.