I posted the other day about an issue with the output of a loop that queried a radio button, but after a bit of digging around I’ve realised that it’s actually a different issue that relates to post hierarchy in a CPT.
We have a CPT that uses a hierarchy. When we query it within a loop it will only show the top level parents. Is there any way to include the child posts in this loop?
Thanks for the reply. I did actually try that but it didn’t seem to help. This is a post loop rather than a taxonomy_term loop, which may make a difference?
Slimming it down to the most basic form of the template it looks like this:
Oh yeah, apologies. I thought you were using hierarchical CPT taxonomies. The previous example will work when a post loop is added inside the taxonomy term loop but that’s another scenario.