June 12, 2019
Autosort data on a page from a hash URL using the following snippet and related HTML.
if(window.location.hash) {
jQuery('a.' + window.location.hash.substr(1)).click();
}
foreach($terms as $term) { ?>
<li class="section_toggle">
<a href="#" class="<?php echo $term->slug; ?>"><?php echo $term->name; ?></a>
</li>
<?php }