Skip to content

Instantly share code, notes, and snippets.

View wpexplorer's full-sized avatar
✍️
We create themes & plugins and run a popular blog about WordPress.

WPExplorer wpexplorer

✍️
We create themes & plugins and run a popular blog about WordPress.
View GitHub Profile
@wpexplorer
wpexplorer / gist:e95f2bc43c82a227787e8ae0d8a87432
Last active February 8, 2024 02:32
Sample Filter HTML - Total WP Theme - IMPORTANT SEE EXAMPLE SHORTCODE IN THE COMMENTS!
/*** IMPORTANT ****/
You need to make sure the AJAX script is loaded on the page which is done via PHP using the following:
<?php totalthemecore_call_non_static( 'Vcex\Ajax', 'enqueue_scripts' ); ?>
/**** SAMPLE FILTER HTML ****/
@note: You can have multiple filter elements with the same target - for example if you want to have a search element that targets a filter above the grid and then the rest of the filter options to the side.