Problem:
I am using custom code to modify a View’s query based on taxonomy term slugs. This works, but now the taxonomy search filters (ld_course_category and ld_course_tag) no longer function properly in the view.
Solution:
The issue arises because your custom tax_query overrides the existing query, including filters for ld_course_category and ld_course_tag. To fix this, merge your custom tax_query with any existing tax_query conditions to preserve the original filters. Use a check to append your custom taxonomy query to the existing tax_query instead of replacing it.
Relevant Documentation:
https://toolset.com/documentation/legacy-features/views-plugin/passing-arguments-to-views/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 1 reply, has 2 voices.
Last updated by 3 months, 2 weeks ago.
Assisted by: Christopher Amirian.