Thanks, but that didn’t work.
This is so weird. My two image functions that call get_children both work when they’re on my blog and my archive and my single posts. It’s only in category that they don’t work. Is there something about category that would prevent get_children from retrieving attached images?