- This topic has 1 reply, 2 voices, and was last updated 8 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Enable filtering on Taxonomy Archives and Google Analytics events
Hi, I have two questions.
1) I have a custom post type that has 3 associated taxonomies. I would like to enable filtering on taxonomy archives for only one of the taxonomies. Going into the reasons why would just muddy the waters. I was able to hard code this into the plugin – not ideal. If there is another way to hook into the class-search-filter-display-shortcode.php get_field function, please let me know. There don’t seem to be many filters in the code at all. Maybe this would be a good place to add one. Or, when Enabling the filtering on Taxonomy Archives in the admin panel, a dynamic conditional list of taxonomies checkboxes could show. It would only one more conditional statement in the above referenced function.
2) I would like to trigger some Google analytics event tracking. The inputs are pretty easy. Is there another js event that fires for the infinite scroll I can listen for?
Thanks for the help!
In 1, do you have a single taxonomy archives template, and wish to determine whether to show the form or not? Why not use a different template for each taxonomy? See here:
https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/
In 2, I do not see any triggerEvent to do this in the javascript, so I assume not. It may be necessary to raise a feature request for this (there is a separate forum).