I have tried this in my category.php and it does work but the print results show individual file locations in parentheses. Is there any way to print without all this extra info?
More