[Closed] In custom search: When will posts with child terms of searched terms be found?
This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hello and thank you for contacting the Toolset support.
By default, the view will look only for the posts with the searched/selected term. If you would like to search for posts with children terms you will need to alter the view's query arguments. This can be done by adding the include_children parameter to the tax query. Read more about it here https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters
Hello Achim, I reopened this ticket to check if you finally got the custom code working or not. If yes, please mark this ticket as resolved. If no, allow me access to WordPress and FTP access to check this further. Please note that I won't touch the custom code without having FTP access in order to not break the site. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
I will also need to know where the view is used, and a test scenario, so I don't have to guess:
- Select term xxx in the following filter.
- I expect to get results yyy, because they have the child term zzz.