Query posts based on parents attribute
Your problem is you have: foreach post where A is true, that has a child where B is true Which is actually: foreach post where A is true that has a child where B is true So this is not something you should be doing in 1 query. Instead you would need to do n … Read more