Forums › Forums › Search & Filter Pro › Taxonomy archive for shared taxonomy broken
Tagged: hook, shared taxonomy
- This topic has 11 replies, 3 voices, and was last updated 8 years ago by
Anonymous.
-
Trevor(Private) November 1, 2017 at 9:38 am #139562
If (and that is a BIG assumption) I understand you right, you want the page to show results based on your query if no filter has been run, and use S&F query IF a filter has been run?
If, so MAYBE this would help:
https://support.searchandfilter.com/forums/topic/results-appear-only-on-submit/#post-116180
Where you can have different code in the template in each yes/no section.
Anonymous(Private) November 1, 2017 at 10:16 am #139566Let me try again.
I want to use the automagic “Enable filtering on Taxonomy Archives” on some taxonomy archives of a post type, but not all.
I’ve read the source and I can see that the way the magical ‘attachment’ to tax archives works is something like, ( in
Search_Filter->archive_query_init_later()):Is the current taxonomy archive associated with one of the post types that one of my forms uses, and if so, and $enable_taxonomy_archives is true, then baam, I'll add a post_type argument to the query to match only those post types selected in the form setup (this query tweaking happens in a subsequent hook - initially, it just sets the search_filter_id at that point).I need to selectively stop this from happening on some shared taxonomy archives, because it is excluding results from other post types on those tax archive screens.
I’m not even showing the form on the archive pages in question, but the hook, and associated unwanted query conditions, are still running, in the background, and breaking the share archives.
Anonymous(Private) November 12, 2017 at 11:40 pm #141522I’m a paid customer, and I’d appreciate some feedback please. The beta version of the plugin that you supplied addressed my original issue, but there are several others that have cropped up.
I’ll start another thread with the latest I’ve detected, but either way, I’d like some help. The site I’m using your plugin on is complex with a large number of taxonomies and custom post types. Your plugin appeared, at first glance to be a good fit for a us, but as further issues emerge, we’re getting nervous as to whether it is going to work.
Ross Moderator(Private) November 12, 2017 at 11:45 pm #141525Hi Rob
I missed your last post, apologies.
I’ll take a look at your latest issue tomorrow and get this sorted.
Thanks
Ross Moderator(Private) November 13, 2017 at 6:59 pm #141704This reply has been marked as private. -
AuthorPosts