NO BUG: Query loop within a template not showing any results using the template element

Browser: Chrome 110
OS: Windows

So, I’ve got a template setup that loops through some media inside one of my HappyFiles folder. In the template all is looking great, but when I load the template inside of my different page templates using the template element there are no results in my query loop.

Weirdly enough this happens on my archive page, but not on my single post page.

Curious to hear about other ways of doing this type of thing, as I’ve also reported another bug when using the template element. Just wondering if maybe I’m stretching it’s functionality too far, missed something fundamental, etc.

Thanks! :slight_smile:

Just wanted to let anyone finding this post know that after setting “Disable query merge” on my loop the issue was resolved, so I’m guessing it was clashing with the other query loops in my archive page.

1 Like