When searching for posts with a parent term: When will posts with the child terms be found?
e.g.
FRUIT
- APPLE
- BANANA
When will posts with BANANA (but WITHOUT fruit!) be found when searching for FRUIT?
We believe to have seen various behaviour in that point.
----
I HAVE ASKED THAT BEFORE, but the answer doesn´t match our experience:
E.g. in backend, we see 356 pages for "Methoden - Kommunizieren", but custom search gives us 578!
----
A search View filtered by taxonomy will automatically find posts that have child terms assigned, even when the parent that is being searched for is not assigned.
So filtering by Fruit will include any posts that have "Fruit", or "Apple", or "Banana" assigned in the results.
A fatal error means almost probably a typo or syntax error, I could not spot it by eye. Maybe it is an issue with single quotes. Would you allow me FTP access and WordPress access to your website to check this further? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Please let me know where the view is used, so I can test it and see further. And let me know a test scenario, for example:
- If I choose the term xxx
- I would expect to see the post yyy that has the term zzz which is a child of term xxx.
This will help me faster than me guessing what outcome on your site which I am not familiar with.